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

No route to host from some Kubernetes containers to other containers in same cluster

This is a Kubespray deployment using calico. All the defaults are were left as-is except for the fact that there is a proxy. Kubespray ran to the end without issues. Access to Kubernetes services started failing and after investigation, there was no…
user179763
  • 21
  • 1
  • 1
  • 3
2
votes
1 answer

How do I install ansible version 2.7 via brew in order to use kubespray on macos?

I'm trying to run kubespray on macos. However, brew only has ansible at version 2.8 and kubespray requires 2.7. How can I install ansible 2.7 via brew?
David Watson
  • 3,394
  • 2
  • 36
  • 51
2
votes
1 answer

kubeadm compatibility between "--cri-socket" flag and "init phase" argument

I'm trying to set which cri-o socket to use by kubeadm ! To achieve this I should use the flag --cri-socket /var/run/crio/crio.sock The current command is in the form kubeadm init phase . I must add the --cri-socket flag to it. I…
Doctor
  • 7,115
  • 4
  • 37
  • 55
2
votes
2 answers

kubespray dashboard warning forbidden popups

I am trying to set up a new kubernetes cluster on one machine with kubespray (commit 7e84de2ae116f624b570eadc28022e924bd273bc). After running the playbook (on a fresh ubuntu 16.04), I open the dashboard and see those warning popups: - configmaps is…
nha
  • 17,623
  • 13
  • 87
  • 133
1
vote
0 answers

Kubespray - Kubectl localhost AND external load balancer

I have an external load balancer configured via loadbalancer_apiserver but on the kube_control_nodes kubectl tries to connect to localhost:8080 and fails. I assume this is because there is no internal load balancer? Is there anyway I could make the…
user3498593
  • 113
  • 1
  • 1
  • 11
1
vote
1 answer

Add extra node labels to kubespray k8s cluster with ansible

We have a cluster setup with kubespray/ansible. We now want to start adding node affinity and therefor I'd like to label each worker-node with a label describing on which physical host it's running. I don't want to do it manually with kubectl…
Wies Werk
  • 11
  • 1
1
vote
0 answers

kubespray support for docker-ee / enterprise

Is kubespray able to work with docker Enterprise? I don't see any docker-ee package in roles/container-engine/docker/vars/redhat-7.yml I have docker-ee already installed and want to use it with kubespray, but can't find any clue how to use it…
kubex75
  • 11
  • 1
1
vote
1 answer

how to set containerd in offline.yml at old version of kubespray

In the new Kubespray release containerd is set as default, but the old one isn't. I want to change docker to containerd in old version and install it with that version. When I looked the offline.yml I don't see any option for containerd in Redhat.…
Orkun
  • 492
  • 4
  • 16
1
vote
0 answers

error Ansible {"msg": "with_dict expects a dict"} when running ansible playbook using kubespray

I'm getting an error when running this command ansible-playbook kubespray-2.12.3/cluster.yml Error: k8s-master : ok=12 changed=2 unreachable=0 failed=1 k8s-worker-1 : ok=12 changed=2 unreachable=0 …
Mick8695
  • 357
  • 2
  • 5
  • 19
1
vote
0 answers

kubespray reset.yml executes very slowly in local VMs

I'm using this https://github.com/kubernetes-sigs/kubespray to create my Kubernetes cluster. First I ran this on redhat8 in GCP(6 nodes cluster). When I execute reset.yml it is compleAnsbileted within 10 mins. Then I ran this on redhat8 local vms(9…
prime
  • 769
  • 1
  • 13
  • 27
1
vote
1 answer

Can i only init kubernetes cluster by kubespray?

let's say I have a cluster installed via kubespray. I reseted cluster by kubeadm reset. Now i have to initialize cluster but i don't have access to images or packages or install binaries. I assume that everything is on my cluster machine. Is it…
Cloud66
  • 31
  • 1
  • 3
1
vote
1 answer

How to add external GCP loadbalancer to kubespray cluster?

I deployed a kubernetes cluster on Google Cloud using VMs and Kubespray. Right now, I am looking to expose a simple node app to external IP using loadbalancer but showing my external IP from gcloud to service does not work. It stays on pending…
bcan
  • 505
  • 1
  • 4
  • 14
1
vote
1 answer

Is it possible to install only master when installing kubernetes with Kubespray?

I am trying to install kubernetes using kubespray. I have successfully configured master and worker, but I wanted to know if only masters without workers could be installed. In inventory.ini, only the hostname of the master was specified and the…
kwoo
  • 13
  • 3
1
vote
1 answer

Pods can't ping each other in a kubernetes cluster spawned over nodes from two different subnets

I am trying to bring up an on-prem k8 cluster using kubespray with 3 master and 5 worker nodes. The node IPs are from 2 different subnets. Ansible inventory: hosts: saba-k8-vm-m1: ansible_host: 192.168.100.1 ip: 192.168.100.1 access_ip:…
Raji
  • 115
  • 7
1
vote
0 answers

Unable to run Ansible for kubespray with a terraform modification. (AnsibleUndefinedVariable: 'ansible.vars.hostvars.HostVarsVars object)

Hi Im tried to automate different type of node groups in terraform to dynamically populate the inventory file with the config of instance tags and configs we pass in custom tfvars. I was able to render the inventory file properly, However when I run…
1 2
3
9 10