5

I have initialize a kubernetes cluster with rke (rke up).

However when a node reboots, I have to execute rke up again to start kubelet and co.

Is there a way these services start automatically on the node?

Thanks for your help.

I use rke v0.1.9.

The OS is Coreos Container Linux 1855.4.0.

My cluster.yml is:

nodes:
    - address: 198.19.210.32
      user: core
      role:
        - controlplane
        - etcd
    - address: 198.19.210.33
      user: core
      role:
        - worker
    - address: 198.19.210.34
      user: core
      role:
        - worker
      labels:
        app: ingress

# If set to true, RKE will not fail when unsupported Docker version are found
ignore_docker_version: true

# Enable use of SSH agent to use SSH private keys with passphrase
# This requires the environment `SSH_AUTH_SOCK` configured pointing to your SSH agent which has the private key added
ssh_agent_auth: true
3
  • What OS are you using? Can you post more details about your setup on your question? Commented Sep 21, 2018 at 16:51
  • Thanks for your reply, I updated my question. Commented Sep 22, 2018 at 8:29
  • sorry but docker daemon it's starting as well when a node reboots???? Commented Jan 8, 2019 at 22:24

1 Answer 1

1

kubelet, kube-apiserver, etc, and other non-k8s containers that are created by RKE should have the restart policy of always.

If not, you can update it the following command.

docker update --restart=always kubelet

Also, rke v0.1.9 is very old. Please try using rke v1.1.4.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.