You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ansible-playbook site.yaml
yield the error:
TASK [kubernetes/master : Init Kubernetes cluster] ********************************************************************************************************************************
fatal: [16.200.8.123]: FAILED! => {"changed": true, "cmd": "kubeadm init --service-cidr 10.96.0.0/12 --kubernetes-version v1.9.3 --pod-network-cidr 10.244.0.0/16 --token b0f7b8.8d1767876297d85c ", "delta": "0:00:00.252457", "end": "2018-03-15 03:44:54.458903", "msg": "non-zero return code", "rc": 2, "start": "2018-03-15 03:44:54.206446", "stderr": "\t[WARNING FileExisting-crictl]: crictl not found in system path\n[preflight] Some fatal errors occurred:\n\t[ERROR Port-2379]: Port 2379 is in use\n\t[ERROR DirAvailable--var-lib-etcd]: /var/lib/etcd is not empty\n[preflight] If you know what you are doing, you can make a check non-fatal with --ignore-preflight-errors=...", "stderr_lines": ["\t[WARNING FileExisting-crictl]: crictl not found in system path", "[preflight] Some fatal errors occurred:", "\t[ERROR Port-2379]: Port 2379 is in use", "\t[ERROR DirAvailable--var-lib-etcd]: /var/lib/etcd is not empty", "[preflight] If you know what you are doing, you can make a check non-fatal with --ignore-preflight-errors=..."], "stdout": "[init] Using Kubernetes version: v1.9.3\n[init] Using Authorization modes: [Node RBAC]\n[preflight] Running pre-flight checks.", "stdout_lines": ["[init] Using Kubernetes version: v1.9.3", "[init] Using Authorization modes: [Node RBAC]", "[preflight] Running pre-flight checks."]}
The text was updated successfully, but these errors were encountered:
sudo kubeadm init --service-cidr 10.96.0.0/12 --kubernetes-version v1.9.3 --pod-network-cidr 10.244.0.0/16 --token b0f7b8.8d1767876297d85C
[init] Using Kubernetes version: v1.9.3
[init] Using Authorization modes: [Node RBAC]
[preflight] Running pre-flight checks.
[WARNING FileExisting-crictl]: crictl not found in system path
[preflight] Some fatal errors occurred:
[ERROR DirAvailable--var-lib-etcd]: /var/lib/etcd is not empty
[preflight] If you know what you are doing, you can make a check non-fatal with --ignore-preflight-errors=...
cat inventory
[master]
16.200.8.123
[node]
16.200.0.106
16.200.8.122
[kube-cluster:children]
master
node
ansible-playbook site.yaml
yield the error:
TASK [kubernetes/master : Init Kubernetes cluster] ********************************************************************************************************************************
fatal: [16.200.8.123]: FAILED! => {"changed": true, "cmd": "kubeadm init --service-cidr 10.96.0.0/12 --kubernetes-version v1.9.3 --pod-network-cidr 10.244.0.0/16 --token b0f7b8.8d1767876297d85c ", "delta": "0:00:00.252457", "end": "2018-03-15 03:44:54.458903", "msg": "non-zero return code", "rc": 2, "start": "2018-03-15 03:44:54.206446", "stderr": "\t[WARNING FileExisting-crictl]: crictl not found in system path\n[preflight] Some fatal errors occurred:\n\t[ERROR Port-2379]: Port 2379 is in use\n\t[ERROR DirAvailable--var-lib-etcd]: /var/lib/etcd is not empty\n[preflight] If you know what you are doing, you can make a check non-fatal with
--ignore-preflight-errors=...
", "stderr_lines": ["\t[WARNING FileExisting-crictl]: crictl not found in system path", "[preflight] Some fatal errors occurred:", "\t[ERROR Port-2379]: Port 2379 is in use", "\t[ERROR DirAvailable--var-lib-etcd]: /var/lib/etcd is not empty", "[preflight] If you know what you are doing, you can make a check non-fatal with--ignore-preflight-errors=...
"], "stdout": "[init] Using Kubernetes version: v1.9.3\n[init] Using Authorization modes: [Node RBAC]\n[preflight] Running pre-flight checks.", "stdout_lines": ["[init] Using Kubernetes version: v1.9.3", "[init] Using Authorization modes: [Node RBAC]", "[preflight] Running pre-flight checks."]}The text was updated successfully, but these errors were encountered: