KUBESPRAY QUESTIONS MUST BE PROGRAMMING RELATED. Use this tag when you have questions about developing for the Kubespray project (see https://kubespray.io), a tool to to provision infrastructure and install Kubernetes clusters. Questions about deploying Kubernetes clusters are OFF TOPIC for Stack Overflow; consider asking on Server Fault (https://serverfault.com/) or DevOps Stack Exchange (https://devops.stackexchange.com).
Questions tagged [kubespray]
137 questions
11
votes
2 answers
Kubernetes Dashboard - Unknown server error after login
I´ve successfully deployed Kubernetes via Kubespray and everything seems to work fine. I am able to access the cluster via kubectl and list nodes, pods, services, secrets and so on. It`s also possible to apply new ressources and dashboard endpoint…

Jürgen Zornig
- 1,174
- 20
- 48
6
votes
1 answer
Kubernetes DNS no longer resolving names
I have a cluster consisting of 6 servers, 3 masters and 3 workers.
Up to this morning everything worked fine, until I removed two workers from the cluster.
Now the internal DNS is not working anymore.
I cannot resolve an internal name.
Apparently…

Paul
- 20,883
- 7
- 57
- 74
5
votes
3 answers
Kubespray fails with "Found multiple CRI sockets, please use --cri-socket to select one"
Problem encountered
When deploying a cluster with Kubespray, CRI-O and Cilium I get an error about having multiple CRI socket to choose from.
Full error
fatal: [p3kubemaster1]: FAILED! => {"changed": true, "cmd": " mkdir -p…

Doctor
- 7,115
- 4
- 37
- 55
4
votes
1 answer
calico-kube-controllers and calico-node are not ready (CrashLoopBackOff)
I deployed a brand new k8s cluster using kubespray, everything works fine but all of the calico related pods are not ready. And after many hours of debugging I couldn't find the reason why calico pods are crashing. I even disabled/stopped the entire…

HoseinGhanbari
- 1,058
- 1
- 11
- 23
4
votes
2 answers
How to explicitely define an Endpoint of an Kubernetes Service
I've provisioned a kubernetes cluster on my own couple of virtual machines via kubespray. Kubespray uses project-calico as default network-plugin which fits my requirements of proxying services in the cluster network to the outer world pretty…

Jürgen Zornig
- 1,174
- 20
- 48
4
votes
2 answers
Install Kubernetes on VPS server
I am planning to setup a kubernetes cluster, that looks as follows:
As you can see on the image, the cluster will consist of 3 Ubuntu 18.04 Virtual Private Server, one is the master and the other two servers are nodes.
For the kubernetes…

softshipper
- 32,463
- 51
- 192
- 400
4
votes
1 answer
K8s - add kubeadm to existing cluster
I have the cluster created many time ago without kubeadm (maybe it was kubespray, but the configuration for that also lost).
Is any way exists to add nodes to that cluster or attach kubeadm to current configuration or extend without erasing by…

Theodor Losev
- 386
- 3
- 3
4
votes
0 answers
Git clone public repo to enterprise
A similar question has been answered at
Is it possible to fork a public GitHub repo into an enterprise repository?
but I wonder what is the best way to clone from public repo to enterprise in a way that I am able to pull all the changes from public…

kk1957
- 8,246
- 10
- 41
- 63
3
votes
2 answers
kubernetes: failed to load existing certificate apiserver-etcd-client:
My cluster certificates are expired and now I cannot execute any kubectls commands.
root@node1:~# kubectl get ns
Unable to connect to the server: x509: certificate has expired or is not yet valid
root@node1:~#
I have created this cluster using…

Ajeesh Kannan
- 31
- 1
- 3
3
votes
0 answers
How to upgrade kubespray kubernetes cluster container runtime?
What is the process to upgrade an existing kubernetes cluster using a specific container runtime (ie: Docker) to another (ie: Containerd)
Will changing the runtime in the Hamel and doing an uograde_cluster be sufficient?
Presumably this will be…

user2391799
- 31
- 1
3
votes
0 answers
Kubespray etcdctl: "Error: client: etcd cluster is unavailable or misconfigured; error #0: no route to host
Configuring Kubespray on 4 nodes, with 2(node1, node2) master nodes and installing etcd on node1 node2 node3, and node3-4 are worker nodes.
I get this following error,
fatal: [node1]: FAILED! => {"attempts": 8, "changed": false, "cmd":…

sameer khan
- 41
- 4
3
votes
1 answer
Kubernetes dashboard the server could not find the requested resource
I have installed the kubernetes cluster with https://github.com/kubernetes-sigs/kubespray with vagrant. The installation was successful.
Next I would like to call the dashboard and generate the dashboard token as follows:
kubectl -n kube-system…

softshipper
- 32,463
- 51
- 192
- 400
3
votes
1 answer
SSLError: ('The read operation timed out',) when trying to deploy Kuberntes with Kubespray
Hello and thanks in advance for your help !
I am trying to deploy a Kubernetes cluster using Kubespray (an ansible playbook). I am trying to deploy the Cluster on 17 KVM host (all nodes are running centos 7 , and are hosted on a baremetal…

Popopame
- 492
- 4
- 18
2
votes
4 answers
The connection to the server 127.0.0.1:6443 was refused - did you specify the right host or port?
I have setup the Kubernetes cluster with Kubespray
Once I restart the node and check the status of the node I am getting as below
$ kubectl get nodes
The connection to the server 127.0.0.1:6443 was refused - did you specify the right host or…

Zainul1114
- 61
- 1
- 4
2
votes
1 answer
etc/kubernetes/admin.conf didn't created - kubespray
I want to install the new cluster on 3 machines.
I ran this command:
ansible-playbook -i inventory/local/hosts.ini --become --become-user=root cluster.yml
but the installation failed:
TASK [remove-node/pre-remove : remove-node | List nodes]…

shai kam
- 29
- 1
- 3