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
1
vote
1 answer
Kubernetes request to service timeout value
We are using Kubernetes v1.9.5 on bare metal, deployed with kubespray, network driver - flannel.
When doing HTTP request from pod to another service, if that service has no endpoint, request hangs for exactly 130 seconds (I checked in via NodeJS…

Evgenyj Afanasyev
- 21
- 1
- 8
1
vote
2 answers
Kubespray with bastion and custom SSH port + agent forwarding
Is it possible to use Kubespray with Bastion but on custom port and with agent forwarding? If it is not supported, what changes does one need to do?

kboom
- 2,279
- 3
- 28
- 43
1
vote
1 answer
Kubernetes | kubespray
When deploying a Kubernetes cluster manually we use kubeadm,
kubeadm init ...
passing the parameter --apiserver-cert-extra-sans= to include the FQDN in the generated certificate.
What approach can we use to achieve the same affect using…

Ron Hemmers
- 11
- 2
0
votes
0 answers
containerd: " error="aufs is not supported (modprobe aufs failed: exit status 1 \"modprobe: FATAL: Module aufs not found in directory /lib/modules/
my k8s cluster reboot host, cluster container is not running,all pod is Exited!
kubespray v1.22.2 deploy kuberentes v1.27.4
kernel: 4.18.0-477.15.1.el8_8.x86_64
linux: Rocky Linux release 8.8 (Green Obsidian)
containerd: v1.7.2
I look at…
0
votes
0 answers
Kubernetes upgrade using kubespray is not changing version for nodes after upgrade
I upgraded my kubernetes cluster using kubespray from v1.26.5 to v1.27.0 using the below command :
ansible-playbook cluster.yml -i inventory/mycluster/hosts.yaml --become --become-user=root -u atom -e kube_version=v1.27.0 -e…

AKSHAY KADAM
- 129
- 8
0
votes
1 answer
Kubespray: Can't run upgrade due to cordon failing on istiod
I am running Kubespray v.2.19.0 on 4 bare metal servers running Ubuntu 20.04. The 4 servers are setup as one master node and 3 worker nodes. It's a small cluster I run at my house to run my own compute and to "play"
I am trying to run a upgrade…

CodeChimp
- 8,016
- 5
- 41
- 79
0
votes
1 answer
kubespray: x node(s) didn't find available persistent volumes to bind. preemption: 0/x nodes are available: x Preemption is not helpful for scheduling
Although this questions has been asked many times, the provided solution doesn't work for me.
Context:
I have
x bare metal nodes on ubuntu
installed kubespray on top of the x nodes
an NFS share which is mounted to /data/xyz on all the nodes
created…

Romeo Kienzler
- 3,373
- 3
- 36
- 58
0
votes
0 answers
'ansible_os_family' is undefined
We have a Kubernetes cluster, deployed using Kubespray. It was working fine. We are trying to add one more worker node, and getting below error only on all worker nodes.
ansible-playbook -i hosts.ini test.yaml -b -K -v
test.yaml
---
- hosts:…

coder
- 1
- 1
0
votes
0 answers
Eror k8s nodeport not open tcp port on Host
I try to expose service in k8s.
When I launch kubectl expose command kubectl expose deployment demo-api-app -n default --type=NodePort --name=my-service everything is OK.
I have endpoints and a port to nodeport:
[root@mys-servver test_connect]#…

Laurent
- 1
- 2
0
votes
0 answers
How to add SAN(Subject Alternative Names) to kubelet client-certificate file?
I have running kubernetes installed by kubespray.
Due to default "kubelet_rotate_certificates" configuration, kubelet certificates is recreated periodically.
What i want to know is whether it is possible to add SAN(Subject Alternatives Names) to…

aspirant75
- 127
- 1
- 2
- 10
0
votes
0 answers
Kubespray not able to update Datacenter Vsphere Virtual Machine package manager
I was trying to install Kubernetes on data centre(VSphere) virtual machines, but it always fails at the first attempt with the below error, and when I re-run the same job it works without any error.
I can manage this issue using ignore in the…

Vivek Bangare
- 1
- 1
0
votes
1 answer
How can I use nvidia gpu in kubernetes pod?
I am using Jetson Xavier NX.
I rewrote config.toml as follows and restarted the container
However, when I execute describe to gpu pod, it seems to be warning.
The pod is in a pending state all the time.
Edge Device: Jetson Xavier NX(control-plane…

tuioku
- 119
- 10
0
votes
1 answer
Get the error when run "compose up" with nerdctl
I get the following error when I run "compose up" with nerdctl.
How can this be resolved?
sudo nerdctl compose up
WARN[0000] Ignoring: service deepstream-peoplenet: [Tty]
WARN[0000] Ignoring: volume: Bind: [CreateHostPath]
WARN[0000] Ignoring:…

Fuma Kimishima
- 1
- 1
0
votes
1 answer
how to know kubernetes docker config path
I install kubernetes using kubespray(release-2.19)
git clone https://github.com/kubernetes-sigs/kubespray.git -b release-2.19 /kubes/kubespray
ansible-playbook -i /kubes/kubespray/inventory/ailab-cluster/hosts.yaml --become --become-user=root…

snow_kor
- 1
- 1
0
votes
0 answers
The task includes an option with an undefined variable. The error was: 'None' has no attribute fallback_ips.yml'
I had a problem when installing a kubernetes cluster of 3 masters and 6 workers and 1 ingress, I did not find that someone would have a similar problem. "TASK [kubespray-defaults : create fallback_ips_base] *****
fatal: [k8s-worker1]: FAILED! =>…

Игорь Админ
- 1
- 2