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

Multimaster issue with etcd #69805

Closed
vovkanaz opened this issue Oct 15, 2018 · 4 comments
Closed

Multimaster issue with etcd #69805

vovkanaz opened this issue Oct 15, 2018 · 4 comments
Labels
area/kubeadm sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle.

Comments

@vovkanaz
Copy link

vovkanaz commented Oct 15, 2018

Trying to do multi-master cluster,
First of all, we try to make a etcd cluster based on this lhttps://kubernetes.io/docs/setup/independent/setup-ha-etcd-with-kubeadm/
but we've got a result:
member 45bb04c0f4ab315b is healthy: got healthy result from https://XXX.XXX.XXX.XXX:2379
member ad96f29c89b43070 is healthy: got healthy result from https://XXX.XXX.XXX.XXX:2379
member ee4fa581d5988965 is unreachable: no available published client urls
cluster is healthy

docker run --rm -it --net host -v /etc/kubernetes:/etc/kubernetes quay.io/coreos/etcd:v3.2.18 etcdctl --cert-file /etc/kubernetes/pki/etcd/peer.crt --key-file /etc/kubernetes/pki/etcd/peer.key --ca-file /etc/kubernetes/pki/etcd/ca.crt --endpoints https://XXX.XXX.XXX.XXX:2379 cluster-health

member 45bb04c0f4ab315b is healthy: got healthy result from https:/XXX.XXX.XXX.XXX:2379
member ad96f29c89b43070 is healthy: got healthy result from https://XXX.XXX.XXX.XXX2:2379
member ee4fa581d5988965 is unreachable: no available published client urls
cluster is healthy

The first node where we are doing all configs, not working. ETCD Cluster is not available.
member ee4fa581d5988965 is unreachable: no available published client urls

Syslog:
Oct 15 13:27:20 ip-XXX.XXX.XXX.XX kubelet[2417]: F1015 13:27:20.798672 2417 server.go:190] failed to load Kubelet config file /var/lib/kubelet/config.yaml, error failed to read kubelet config file "/var/lib/kubelet/config.yaml", error: open /var/lib/kubelet/config.yaml: no such file or directory
Oct 15 13:27:20 ip-XXX.XXX.XXX.XXX systemd[1]: kubelet.service: Main process exited, code=exited, status=255/n/a
Oct 15 13:27:20 ip-XXX.XXX.XXX.XXX systemd[1]: kubelet.service: Failed with result 'exit-code'

Kubernetes 1.11, 1.12 Thanks a lot, and waiting for your response. Ubuntu 18.04

@k8s-ci-robot k8s-ci-robot added the needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. label Oct 15, 2018
@vovkanaz
Copy link
Author

/sig contributor-experience

@k8s-ci-robot k8s-ci-robot added sig/contributor-experience Categorizes an issue or PR as relevant to SIG Contributor Experience. and removed needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Oct 15, 2018
@justinsb justinsb added area/kubeadm sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. and removed sig/contributor-experience Categorizes an issue or PR as relevant to SIG Contributor Experience. labels Oct 15, 2018
@vovkanaz
Copy link
Author

vovkanaz commented Oct 16, 2018

#66108
As we saw, we'll need to execute sudo kubeadm token create --print-join-command before setup... #66108 But in official docs no any word about this https://kubernetes.io/docs/setup/independent/setup-ha-etcd-with-kubeadm/#before-you-begin

@neolit123
Copy link
Member

neolit123 commented Oct 26, 2018

this seems to be an user issue on your side.

tokens expire after 24 hours. call again kubeadm init and the command at the end should be used for kubeadm join for other nodes.
this works perfectly fine for other users.

kubeadm token create --print-join-command is something that can be called if you want to generate a new token, so that's a different use case and we have it in the reference docs.

for questions you can also try our support channels:
e.g. stackoverflow or #kubeadm on slack:
https://github.com/kubernetes/community/blob/master/contributors/guide/issue-triage.md#user-support-response-example

/close

@k8s-ci-robot
Copy link
Contributor

@neolit123: Closing this issue.

In response to this:

this seems to be an user issue on your side.

tokens expire after 24 hours. call again kubeadm init and the command at the end should be used for kubeadm join for other nodes.
this works perfectly fine for other users.

for questions you can also try our support channels:
e.g. stackoverflow or #kubeadm on slack:
https://github.com/kubernetes/community/blob/master/contributors/guide/issue-triage.md#user-support-response-example

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/kubeadm sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle.
Projects
None yet
Development

No branches or pull requests

4 participants