Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TASK [kubernetes/master : Init Kubernetes cluster] - Port 2379 is in use #21

Open
ocsen35 opened this issue Mar 15, 2018 · 2 comments
Open

Comments

@ocsen35
Copy link

ocsen35 commented Mar 15, 2018

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."]}

@ocsen35 ocsen35 closed this as completed Mar 15, 2018
@ocsen35
Copy link
Author

ocsen35 commented Mar 15, 2018

The problem still exists even I stopped the etcd service.

@ocsen35 ocsen35 reopened this Mar 15, 2018
@ocsen35
Copy link
Author

ocsen35 commented Mar 15, 2018

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=...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant