【发布时间】:2019-05-25 06:38:33
【问题描述】:
我是 Kubernetes 新手。基本上,我正在尝试将 Windows 节点添加到集群(包含 linux 节点)。我的主机是linux。目前,我正在尝试仅添加 1 个 windows 节点,但将来它应该适用于多个 windows 节点)。 使用 kubeadm 将 windows 节点加入 kubernetes 集群时会抛出错误消息,
当它试图在 Windows 节点上执行“kubeadm join..”时,我试图在 Windows 机器上安装 kubeadm。但没有运气。
它抛出错误
"fatal: [windows]: FAILED! => {
"changed": true,
"cmd": "kubeadm join <IP>:<port> --token <jdhsjhsjdhsd> --discovery-token-ca-cert-hash sha256:<somekey> --node-name <kubernetes_node_hostname>",
"delta": "0:00:00.732545",
"end": "2018-12-27 07:39:26.496097",
"msg": "non-zero return code",
"rc": 1,
"start": "2018-12-27 07:39:25.763552",
"stderr": "kubeadm : The term 'kubeadm' is not recognized as the name of a cmdlet, function, script file, or operable program. \r\nCheck the spelling of the name, or if a path was included, verify that the path is correct and try again.\r\nAt line:1 char:65\r\n+ ... :InputEncoding = New-Object Text.UTF8Encoding $false;"
【问题讨论】:
-
您使用的是哪个版本的 kubernetes?
标签: kubernetes kubeadm