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
2
votes
0 answers
kubespray k8s installation ends with NotReady worker node
im trying to install 3 node k8s cluster with kubespray-2.16.0 following https://github.com/kubernetes-sigs/kubespray .
all the installation steps go fine, except this
TASK [kubernetes-apps/ansible : Kubernetes Apps | Register coredns deployment…

spaghi
- 21
- 2
2
votes
0 answers
ansible-notebook is failing in [bootstrap-os : Enable RHEL 8 repos] task
I'm running kubespray - https://github.com/kubernetes-sigs/kubespray/ on GCP RHEL8 VMs.
When I'm executing my ansible-notebook, I'm getting the following issue for every VM in [bootstrap-os : Enable RHEL 8 repos] task.
fatal: [node3]: FAILED! => {
…

prime
- 769
- 1
- 13
- 27
2
votes
0 answers
Kubelet does not start when network plugin is calico
Trying to install an offline K8s HA cluster with kubespray. Installed all packages including calico and also docker images. But, it stacked at step kubernetes/master: Create kubeadm token for joining nodes with 24h expiration
After a little digging,…

fth
- 2,478
- 2
- 30
- 44
2
votes
1 answer
Mount glusterfs on kubernetes hosts
When mounting glusterfs on servers where kubernetes is installed via kubespray, an error occurs:
Mount failed. Please check the log file for more details.
[2020-12-20 11:40:42.845231] I [MSGID: 100030] [glusterfsd.c:2454:main]…

Александр Остапенко
- 41
- 3
2
votes
0 answers
Using kubespray to install kubernetes always fails, which looks like a bug
I use kubespray(v2.11.0) install kubernetes(1.14.0).I have three vm.(plan two master,one nodes) Due to network reasons, I used the internal image repo and storage server. then i exec “ansible-playbook -i inventory/mycluster/hosts.yaml --become…

Esc
- 521
- 13
- 30
2
votes
1 answer
why kubespray ansible can't match the hosts
I was install kubernetes by kubespray, my kubespray version is v2.11.0, I follow the official documentation to install step by step. but when i exec the "ansible-playbook -i inventory/mycluster/hosts.yml --become --become-user=root cluster.yml" i…

Esc
- 521
- 13
- 30
2
votes
2 answers
Why I cant access a kubernetes pod from other Nodes IP?
I've installed kubernetes cluster with help of Kubespray.
Cluster having 3 Nodes (2 Master & 1 Worker).
node1 - 10.1.10.110,
node2 - 10.1.10.111,
node3 - 10.1.10.112
$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
node1 Ready master…

Kumaran
- 25
- 2
- 6
2
votes
1 answer
Where are the logs for kubernetes static pods?
I have created a cluster using KubeSpray. When I SSH to the master node to add EventRateLimit to the admission controller list in the static pod manifest yaml of Kubernetes API Server, the API Server pod does not properly restart.
I don't know where…

David Medinets
- 5,160
- 3
- 29
- 42
2
votes
1 answer
Kubespray : Netchecker connectivity check fails
I deployed a Kubernetes (v1.17.5) cluster on OpenStack instances using Kubespray. Those instances are CentOS 7.6.1811 qcow2 images imported in Glance.
The install was successful, and I can see my nodes and pods with kubectl commands.
I used the…

Florent Mallard
- 21
- 3
2
votes
1 answer
unable to deploy EFK stack on kubernetes (using kubespray)
i'm trying to deploy EFK stack on production kubernetes cluster (installed using kubespray), we have 3 nodes, 1 master + 2 workers, i need to use elasticsearch as a statefulset and use a local folder in master node to store logs (local storage for…

abdel2020
- 33
- 4
2
votes
0 answers
Change network plugin on existing cluster
I wonder if there is a best practice/way how to change the network plugin of a running k8s cluster installed by kubespray.
Concrete scenario: in beginning i installed with flannel, now i realized i need need to move to canal.
Tried to find out if…

markush81
- 201
- 4
- 10
2
votes
2 answers
Passing Terraform variables between Modules within Modules?
I have an issue I have gotten stuck on building a module from the Kubespray project.
I have the following folder structure:
terraform/
modules/
kubespray/
modules/
compute/
ips/
network/
main.tf
…

bison
- 739
- 5
- 21
2
votes
4 answers
Calico: networkPlugin cni failed to set up pod, i/o timeout
I have got an issue with deploy some pods on my k8s node. The error is following:
Failed create pod sandbox: rpc error: code = Unknown desc = failed to
set up sandbox container
"7da8bce09dd6820a65754073b1b4e52e640291dcb82f1da87ae99570c6964d1b"
…

Mariyo
- 486
- 7
- 15
2
votes
1 answer
Add Worker Node to Kubespray Cluster
I have deployed a Kubernetes cluster with 1 control plane and 2 worker nodes using Kubespray. Now, I am trying to add another worker node. I have included the IP of the virtual machine to be added as worker node in inventory/mycluster/hosts.ini file…

Priyanka
- 101
- 1
- 9
2
votes
0 answers
Pods not getting schedueld/assigned ip address on the new node added to k8s cluster using kubespray
Used kubespray to add worker node to existing cluster. The node joined to the cluster but new pods schedueld on the nodes are failing with error "get https://10.233.0.1 : dial tcp 10.233.0.1: 443 connection refused"
Network plugin -…

Pushpa
- 21
- 1