kubernetes-sigs / kubespray

Deploy a Production Ready Kubernetes Cluster
Apache License 2.0
16.14k stars 6.47k forks source link

Initialize first master failed #7006

Closed liuxinbot closed 3 years ago

liuxinbot commented 3 years ago

Environment: aws

Kubespray version (commit) (git rev-parse --short HEAD): 00e0f3b

Network plugin used: default

Full inventory with variables (ansible -i inventory/sample/inventory.ini all -m debug -a "var=hostvars[inventory_hostname]"):

Command used to invoke ansible: ansible-playbook -i ./inventory/hosts ./cluster.yml -e ansible_user=ubuntu -b --become-user=root --flush-cache

Output of ansible run: I set etcd_kubeadm_enabled: true, but i get some error msg

TASK [kubernetes/master : kubeadm | Initialize first master] ***************************************************************
fatal: [ip-10-250-206-191.ap-east-1.compute.internal]: FAILED! => {"attempts": 3, "changed": true, "cmd": ["timeout", "-k", 
"300s", "300s", "/usr/local/bin/kubeadm", "init", "--config=/etc/kubernetes/kubeadm-config.yaml", "--ignore-preflight-
errors=all", "--skip-phases=addon/coredns", "--upload-certs"], "delta": "0:00:00.247129", "end": "2020-12-09 
11:41:07.020323", "failed_when_result": true, "msg": "non-zero return code", "rc": 3, "start": "2020-12-09 11:41:06.773194", 
"stderr": "W1209 11:41:06.861342   21525 utils.go:69] The recommended value for \"clusterDNS\" in \"KubeletConfiguration\" 
is: [10.233.0.10]; the provided value is: [169.254.25.10]\nW1209 11:41:07.019037   21525 configset.go:348] WARNING: 
kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io 
kubeproxy.config.k8s.io]\n[etcd.external.endpoints: Invalid value: \"\": the URL must be using the HTTPS scheme, 
etcd.external.endpoints: Invalid value: \"\": the URL without scheme is not allowed]\nTo see the stack trace of this error 
execute with --v=5 or higher", "stderr_lines": ["W1209 11:41:06.861342   21525 utils.go:69] The recommended value for 
\"clusterDNS\" in \"KubeletConfiguration\" is: [10.233.0.10]; the provided value is: [169.254.25.10]", "W1209 11:41:07.019037   
21525 configset.go:348] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io 
kubeproxy.config.k8s.io]", "[etcd.external.endpoints: Invalid value: \"\": the URL must be using the HTTPS scheme, 
etcd.external.endpoints: Invalid value: \"\": the URL without scheme is not allowed]", "To see the stack trace of this error 
execute with --v=5 or higher"], "stdout": "", "stdout_lines": []}
anthr76 commented 3 years ago

Are you running on X86?

liuxinbot commented 3 years ago

@anthr76 yeap

fejta-bot commented 3 years ago

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale

fejta-bot commented 3 years ago

Stale issues rot after 30d of inactivity. Mark the issue as fresh with /remove-lifecycle rotten. Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten

fejta-bot commented 3 years ago

Rotten issues close after 30d of inactivity. Reopen the issue with /reopen. Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-contributor-experience at kubernetes/community. /close

k8s-ci-robot commented 3 years ago

@fejta-bot: Closing this issue.

In response to [this](https://github.com/kubernetes-sigs/kubespray/issues/7006#issuecomment-841983837): >Rotten issues close after 30d of inactivity. >Reopen the issue with `/reopen`. >Mark the issue as fresh with `/remove-lifecycle rotten`. > >Send feedback to sig-contributor-experience at [kubernetes/community](https://github.com/kubernetes/community). >/close Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
k8s-ci-robot commented 2 years ago

@kartuhn: You can't reopen an issue/PR unless you authored it or you are a collaborator.

In response to [this](https://github.com/kubernetes-sigs/kubespray/issues/7006#issuecomment-1136526659): >/reopen Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.