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
2 answers

kubespray and problem with python package

I want install Kubernetes with Kubespary but I have a problem with the python package. I use Ubuntu 20.10 and python3 ansible --version ansible 2.9.6 config file = /opt/kubespray/ansible.cfg configured module search path =…
pyramid13
  • 266
  • 1
  • 5
  • 21
0
votes
2 answers

Change Container Runtime without destroying cluster

we are running multiple kubespray deployed clusters with 10-100 nodes. with 1.20 kubernetes deperecates dockershim support ->…
Helmut Januschka
  • 1,578
  • 3
  • 16
  • 34
0
votes
1 answer

Kubespray and Ansible, how to seperate config(ie inventory and other config files)

First, I'm a complete ansible playbook noob. I'm busy trying to understand a clutser at my workplace. I tried following the readme's quick start guide whilst also following my companies kubespray fork. One thing that is really bothering me right…
0
votes
1 answer

How to change current-context

I use kubespray installed Kubernetes Cluster. I defined the cluster name as cluster.devops in the file, group_vars/k8s-cluster/k8s-cluster.yml. After the Kubernetes Cluster installed. the current-context in kube confi file is…
Melissa Jenner
  • 781
  • 1
  • 8
  • 31
0
votes
1 answer

Does kubespray install any log rotation policies?

I've looked through the GitHub (https://github.com/kubernetes-sigs/kubespray) project but I don't see references to log rotation. Is there a standard approach?
David Medinets
  • 5,160
  • 3
  • 29
  • 42
0
votes
1 answer

Kubernetes pods cannot access HTTPS sites

Just installed Kubernetes cluster using kubespray. 3 master nodes and 3 worker nodes + 2 haproxy nodes in front of master nodes with keepalived. Everything works perfectly except for one thing. When I try to update packages on alpine or ubuntu…
Blz
  • 193
  • 1
  • 2
  • 6
0
votes
1 answer

How Kubespray provision the /etc/kubernetes/manifests/kube-apiserver.yaml file on k8s master node

I'm fixing pentest issues on a k8s bare metal infrastructure, deployed with ansible playbooks. I've found that most of the modification to be done lay on the /etc/kubernetes/manifests/kube-apiserver.yaml file on the k8s master node. I'm not really…
nixmind
  • 2,060
  • 6
  • 32
  • 54
0
votes
1 answer

ERROR! couldn't resolve module/action 'kube'

I use the kubespray v2.11.2 to setup a kubernetes cluster. However, the error occurred with "couldn't resolve module/action 'kube'" : - name: Kubernetes Apps | Add policies, roles, bindings for PodSecurityPolicy kube: name: "{{ item.item.name…
whoami
  • 11
  • 1
  • 2
0
votes
1 answer

Cannot reach k8s dashboard after Kubespray deployment

I am a k8s newbie, so I apologize if this has been asked before. There are quite a few aspects to k8s, so I am unsure of what previous questions would apply to this. Earlier this month, I used the latest version of Kubespray to deploy k8s. I'm…
ngpriddy
  • 66
  • 10
0
votes
1 answer

Can I use kubespray to deploy a k8s with no network plugin?

We do not need any network model like Calico or weavenet, just host network is enough. But I couldn't find a way to disable network plugin. Kubespray always wants me to specify one.
fanyangCS
  • 29
  • 2
0
votes
1 answer

Kubelet certificate rotation - worker nodes

I have been running K8s cluster(v1.13.5) for a year and the control plane certs and Kubelet certs are about to expire. I found a way to rotate all the control plane certs and I wanted to know how to rotate the Kubelet certs. Can someone help me to…
rolz
  • 591
  • 2
  • 11
  • 23
0
votes
1 answer

Restore a node after being purged due to resources pressure

I have a k8s cluster setup using kubespray. Last week one of my k8s nodes have very low storage, so all the pods has been evicted, include some important pods like calico-node, kube-proxy (I thought that these pods are critical and never been…
Hiep Ho
  • 314
  • 2
  • 7
0
votes
1 answer

Kubespray: How to add multiple GlusterFS disk volume devices for one node

I am playing with Kubespray and want to add GlusterFS persistent volumes. My inventory.ini looks like this: [all] k8s-master ansible_host=x.x.x.x k8s-node-1 ansible_host=y.y.y.y disk_volume_device_1=/media/125GB_HDD.img [kube-master]…
Mariyo
  • 486
  • 7
  • 15
0
votes
1 answer

Does Kubespray support renew kubernetes component certificate after expired?

I have quick question related to "Kubespray" Does Kubespray's upgrade role renews all the expired certificates for the "Kubernetes" components such as etcd, kube-apiserver etc..? Thanks in advance.
rolz
  • 591
  • 2
  • 11
  • 23
0
votes
1 answer

kubectl running problem in master node while creating Kubernetes cluster using kubespray

I am trying to create Kubernetes cluster using kubespray with single master and 3 working node. I cloned the github kubespray repository and running the ansible playbook from my control node for forming cluster. I am trying the following…
Mr.DevEng
  • 2,651
  • 14
  • 57
  • 115