kubeadm

How to backup etcd on a Kubernetes cluster created with kubeadm - rpc error: code = 13

为君一笑 提交于 2021-02-06 12:53:29
问题 I have a K8s cluster created with kubeadm that consists of a master node and two workers. I am following this documentation article regarding the etcd backup: https://kubernetes.io/docs/tasks/administer-cluster/configure-upgrade-etcd/#backing-up-an-etcd-cluster I have to use etcdctl to backup the etcd db so I sh into the etcd pod running on the master node to do it from there: kubectl exec -it -n kube-system etcd-ip-x-x-x-x sh NOTE: The master node hosts the etcd database in this path /var

Kubernetes: Combining a Kops cluster to an on-premise Kubeadm cluster

十年热恋 提交于 2021-02-05 07:44:48
问题 We currently have 2 Kubernetes clusters: One setup with Kops running on AWS One setup with Kubeadm running on our own hardware We want to combine them to only have a single cluster to manage. The master could end up being on AWS or on our servers, both are fine. We can't find a way to add nodes configured with one cluster to the other. kubeadm is not made available on nodes setup with Kops, so we can't do eg kubeadm token create --print-join-command Kops doesn't seem to have utilities to let

How to move Kubernetes master node from one server to another?

*爱你&永不变心* 提交于 2021-01-29 11:27:29
问题 I have Kubernetes cluster with two nodes. One's role is Master. I want to move master node to another physical server. The possible way I see is to add another node and change its role to master. How can I do that? Is there any kind of instructions? Is this the only way? 回答1: Might be a duplicate of Migration of Kubernetes Master In fact, you just need to clone data from the disk change identity of the new server (IP address/DNS name) Update If you want to change master IP address in kubeadm

Coredns in pending state in Kubernetes cluster

拜拜、爱过 提交于 2020-12-29 07:14:40
问题 I am trying to configure a 2 node Kubernetes cluster. First I am trying to configure the master node of the cluster on a CentOS VM. I have initialized the cluster using 'kubeadm init --apiserver-advertise-address=172.16.100.6 --pod-network-cidr=10.244.0.0/16' and deployed the flannel network to the cluster. But when I do 'kubectl get nodes', I get the following output ---- [root@kubernetus ~]# kubectl get nodes NAME STATUS ROLES AGE VERSION kubernetus NotReady master 57m v1.12.0 Following is

Coredns in pending state in Kubernetes cluster

*爱你&永不变心* 提交于 2020-12-29 07:06:30
问题 I am trying to configure a 2 node Kubernetes cluster. First I am trying to configure the master node of the cluster on a CentOS VM. I have initialized the cluster using 'kubeadm init --apiserver-advertise-address=172.16.100.6 --pod-network-cidr=10.244.0.0/16' and deployed the flannel network to the cluster. But when I do 'kubectl get nodes', I get the following output ---- [root@kubernetus ~]# kubectl get nodes NAME STATUS ROLES AGE VERSION kubernetus NotReady master 57m v1.12.0 Following is