原部署master和node1,通过add-nodes.sh增加节点node2,然后报如下错误,求助
TASK [kubernetes/kubeadm : Create kubeadm token for joining nodes with 24h expiration (default)] **********************************************************************************************************
Tuesday 25 February 2020 11:33:49 +0800 (0:00:00.629) 0:06:51.315 ******
fatal: [node1 -> master]: FAILED! => {
“changed”: true,
“cmd”: [
“/usr/local/bin/kubeadm”,
“token”,
“create”
],
“delta”: “0:01:15.135387”,
“end”: “2020-02-25 11:35:04.663476”,
“rc”: 1,
“start”: “2020-02-25 11:33:49.528089”
}
STDERR:
timed out waiting for the condition
To see the stack trace of this error execute with –v=5 or higher
MSG:
non-zero return code
fatal: [node2 -> master]: FAILED! => {
“changed”: true,
“cmd”: [
“/usr/local/bin/kubeadm”,
“token”,
“create”
],
“delta”: “0:01:15.084997”,
“end”: “2020-02-25 11:35:04.763161”,
“rc”: 1,
“start”: “2020-02-25 11:33:49.678164″
}
STDERR:
timed out waiting for the condition
To see the stack trace of this error execute with –v=5 or higher
MSG:
non-zero return code
### node2 /var/log/messages
Feb 25 11:41:42 node2 kubelet: I0225 11:41:42.917929 16567 feature_gate.go:216] feature gates: &{map[CSINodeInfo:true ExpandCSIVolumes:true RotateKubeletClientCertificate:true VolumeSnapshotDataSource:true]}
Feb 25 11:41:42 node2 kubelet: Flag –rotate-certificates has been deprecated, This parameter should be set via the config file specified by the Kubelet’s –config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Feb 25 11:41:42 node2 kubelet: Flag –kube-reserved has been deprecated, This parameter should be set via the config file specified by the Kubelet’s –config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Feb 25 11:41:42 node2 kubelet: Flag –system-reserved has been deprecated, This parameter should be set via the config file specified by the Kubelet’s –config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Feb 25 11:41:42 node2 kubelet: Flag –feature-gates has been deprecated, This parameter should be set via the config file specified by the Kubelet’s –config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Feb 25 11:41:42 node2 kubelet: I0225 11:41:42.920839 16567 feature_gate.go:216] feature gates: &{map[CSINodeInfo:true ExpandCSIVolumes:true RotateKubeletClientCertificate:true VolumeSnapshotDataSource:true]}
Feb 25 11:41:42 node2 kubelet: I0225 11:41:42.920966 16567 feature_gate.go:216] feature gates: &{map[CSINodeInfo:true ExpandCSIVolumes:true RotateKubeletClientCertificate:true VolumeSnapshotDataSource:true]}
Feb 25 11:41:42 node2 kubelet: I0225 11:41:42.942404 16567 mount_linux.go:168] Detected OS with systemd
Feb 25 11:41:42 node2 kubelet: I0225 11:41:42.942513 16567 server.go:410] Version: v1.16.7
Feb 25 11:41:42 node2 kubelet: I0225 11:41:42.942580 16567 feature_gate.go:216] feature gates: &{map[CSINodeInfo:true ExpandCSIVolumes:true RotateKubeletClientCertificate:true VolumeSnapshotDataSource:true]}
Feb 25 11:41:42 node2 kubelet: I0225 11:41:42.942654 16567 feature_gate.go:216] feature gates: &{map[CSINodeInfo:true ExpandCSIVolumes:true RotateKubeletClientCertificate:true VolumeSnapshotDataSource:true]}
Feb 25 11:41:42 node2 kubelet: I0225 11:41:42.942750 16567 plugins.go:100] No cloud provider specified.
Feb 25 11:41:42 node2 kubelet: I0225 11:41:42.942772 16567 server.go:526] No cloud provider specified: "“ from the config file: ”"
Feb 25 11:41:42 node2 kubelet: I0225 11:41:42.942804 16567 server.go:773] Client rotation is on, will bootstrap in background
Feb 25 11:41:42 node2 kubelet: F0225 11:41:42.942861 16567 server.go:271] failed to run Kubelet: unable to load bootstrap kubeconfig: stat /etc/kubernetes/bootstrap-kubelet.conf: no such file or directory