linux - 将牧场主下载到我的机器时出现问题
问题描述
我希望这次疫情一切顺利。为了追逐,我正在尝试在我的 Mac 上安装 Rancher,此时我被卡住的时间最长。我相信我已经正确下载了所有内容。有什么我想念的吗?
这是在redhat os linux btw上运行的
这是我要运行的命令: ./kubectl -n cattle-system apply -R -f ./rancher
太感谢了!
error validating "rancher/Chart.yaml": error validating data: kind not set; [![enter image description here][1]][1]if you choose to ignore these errors, turn validation off with --validate=false
error parsing rancher/templates/clusterRoleBinding.yaml: error converting YAML to JSON: yaml: line 6: did not find expected key
error parsing rancher/templates/deployment.yaml: error converting YAML to JSON: yaml: line 6: did not find expected key
error parsing rancher/templates/ingress.yaml: error converting YAML to JSON: yaml: line 6: did not find expected key
error parsing rancher/templates/issuer-letsEncrypt.yaml: json: line 0: invalid character '{' looking for beginning of object key string
error parsing rancher/templates/issuer-rancher.yaml: json: line 0: invalid character '{' looking for beginning of object key string
error parsing rancher/templates/service.yaml: error converting YAML to JSON: yaml: line 6: did not find expected key
error parsing rancher/templates/serviceAccount.yaml: error converting YAML to JSON: yaml: line 6: did not find expected key
error validating "rancher/values.yaml": error validating data: [apiVersion not set, kind not set]; if you choose to ignore these errors, turn validation off with --validate=false
解决方案
您应该在此处遵循 HA 的安装说明:https ://rancher.com/docs/rancher/v2.x/en/installation/k8s-install/或此处的独立模式:https ://rancher.com/docs/ rancher/v2.x/en/installation/other-installation-methods/single-node-docker/
我猜你已经下载了 rancher helm chart 目录并尝试使用 kubectl 安装它,但这是行不通的。
在 HA 说明下,您将找到 helm install 命令。
推荐阅读
- java - 如何关闭并行流中使用的线程本地自动关闭?
- angular - entryComponents错误中的多个对话框组件
- makefile - 如何在 OpenWRT 中使用单个 Makefile 编译多个 C 文件?
- database - 将两个表的查询与另一个表连接起来
- android - 如何让导航视图上方的状态栏颜色在打开时发生变化
- c++ - 将单一 BGR 颜色转换为 HSV C++ OpenCV 4
- node.js - 如何将 Node-js 数据库查询绑定到 Web 表单
- ruby-on-rails - 猴子用 Rails 用业务逻辑修补核心类
- python - 将数据库中的表从不同服务器上的 MySQL 服务器复制到我的计算机
- php - 如果字符后跟数字,则替换字符