首页 > 解决方案 > 将牧场主下载到我的机器时出现问题

问题描述

我希望这次疫情一切顺利。为了追逐,我正在尝试在我的 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

标签: linuxdockeryamlkubernetes-helmrancher

解决方案


您应该在此处遵循 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 命令。


推荐阅读