Questions tagged [kubespray]

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).

137 questions
0
votes
0 answers

Why do I get ansible_kernel.split error when I have ansible 4.10 installed?

I'm trying to install a Kubernetes cluster with kubespray 1.18.0 and I get the error below. I have installed ansible 4.10 with pip3 on centos7. I've checked everywhere but did not find a solution for it. I even modifyed the value to use version <=…
Nea_Johny
  • 1
  • 1
0
votes
1 answer

Kubespray scale Ansible playbook cannot find /etc/kubernetes/admin.conf

I want to extend my Kubernetes cluster by one node. So I run the scale.yaml Ansible playbook: ansible-playbook -i inventory/local/hosts.ini --become --become-user=root scale.yml But I am getting the error message when uploading the control plane…
Ronny Forberger
  • 393
  • 1
  • 8
  • 23
0
votes
1 answer

Is it possible to deploy a kubernetes cluster with kubespray with fqdn?

When deploying a kubernetes cluster with kubespray with need to declare IPS. But can we deploy a cluster with FQDN ? I tried first with declaring IP and modify the hosts.yaml with my fqdn of my host. but i have a issue when generating certificates.
0
votes
0 answers

Cannot reach NodePort service via all Node IPs of my Kubernetes cluster

I got a K8s cluster based on CentOS8 with the following nodes: node1: 129.X.X.193 (master1) node2: 129.X.X.195 (master2) node3: 129.X.X.194 (worker) I installed Kubernetes using Kubespray (v2.15.1) with mainly the default settings and it…
MaGi
  • 171
  • 1
  • 1
  • 10
0
votes
1 answer

Is there any ways to revoke certificate after we have done certificate renew task?

Our k8s cluster is installed by kubespray and k8s version is 1.13.5, some of my colleagues has copy the admin.conf file to his personal computer. Therefore, he can use kubectl tool to do anythings he want from remote. We have done renew the…
Spark1231
  • 45
  • 1
  • 6
0
votes
2 answers

Skip confirmation in Ansible during deleting node with Kubspray

I'm trying to run Ansible playbook remove-node.yml from Kubespray repository. But when I run a job I get an error: TASK [check confirmation] ****************************************************** fatal: [node61]: FAILED! => {"changed": false,…
0
votes
1 answer

Pods stuck in Terminating state when worker node is down (never redeployed on healthy nodes), how to fix this?

We run a kubernetes cluster provisioned with kubespray and discovered that each time when a faulty node goes down (we had this due to hardware issue recently) the pods executing on this node stuck in Terminating state indefinitely. Even after many…
roman
  • 892
  • 9
  • 26
0
votes
0 answers

Unable to build kubespray container from Dockerfile

I have cloned the kubespray repo and I am attempting to create a container from the Dockerfile in order to run my deploys. It gets through steps 1-5 of the Dockerfile without issue but fails on step 6 every time when downloading the ansible base…
0
votes
1 answer

Adding a master node

I use kubespray v2.16.0. I am trying to add a master node by following the instructions https://github.com/kubernetes-sigs/kubespray/blob/v2.16.0/docs/nodes.md#addingreplacing-a-master-node . In step 3 I need restart kube-system/nginx-proxy, but I…
Roman
  • 11
  • 1
0
votes
0 answers

Get actual commands running for docker-ce from ansible-playbook

I'm using https://github.com/kubernetes-sigs/kubespray Is there a way to know exactly which command the following Ansible code will execute on the remote server? - name: ensure docker packages are installed package: name: "{{…
prime
  • 769
  • 1
  • 13
  • 27
0
votes
1 answer

how to configure kubespray DNS for bare-metal

I am relatively new to kubernetes and have a project for my University class, to build a kubernetes Cluster on bare metal. For this I have set up a PoC Environment, out of 6 Machines (of which 3 are KVM Machines on one Node) all the administration…
Hannes
  • 1
  • 1
  • 2
0
votes
1 answer

How can one add a taint to a worker node in kubespray?

I use kubespray to provision kubernetes cluster. I need to mark one of the worker nodes as tainted. Curious is there a way in kubespray to taint a specific worker node?
roman
  • 892
  • 9
  • 26
0
votes
1 answer

How do I get past authentication for setting local host name via kubespray?

Hi i keep getting this error when using ansible via kubespray and I am wondering how to over come it TASK [bootstrap-os : Assign inventory name to unconfigured hostnames (non-CoreOS, non-Flatcar, Suse and ClearLinux)]…
user3700919
  • 325
  • 2
  • 4
  • 19
0
votes
1 answer

How do I pass the config var to python for kubespray dynamic inventory in a bash file?

So I'm trying to create a bash script to pass the IP array needed to make inventory file for ansible the official docs say that this is achieved through declare -a IPS=(10.10.1.3 10.10.1.4 10.10.1.5) CONFIG_FILE=inventory/mycluster/hosts.yaml…
user3700919
  • 325
  • 2
  • 4
  • 19
0
votes
1 answer

Kubespray ansible extra args for pods specifications are not deployed on the target k8s cluster

According to this documentation, Extra flags for the API server, controller, and scheduler components can be specified using the variables below, in the form of dicts of key-value pairs of configuration parameters that will be inserted into the…
nixmind
  • 2,060
  • 6
  • 32
  • 54