Questions tagged [kubernetes]

Kubernetes is an open source orchestration system for Docker containers. It handles scheduling onto nodes in a compute cluster and actively manages workloads to ensure that their state matches the users declared intentions. Using the concepts of "labels" and "pods", it groups the containers which make up an application into logical units for easy management and discovery.

Kubernetes is an open source orchestration system for Docker containers. It handles scheduling onto nodes in a compute cluster and actively manages workloads to ensure that their state matches the users declared intentions. Using the concepts of "labels" and "pods", it groups the containers which make up an application into logical units for easy management and discovery.

For more details, visit the official Kubernetes page.

2075 questions
1
vote
1 answer

K8s: discovery Failed to request cluster-info (forbidden)

The command kubeadm join 192.168.178.38:6443 ... fails The host/port is reachable. I tested it with telnet. But I get this on the node: [discovery] Failed to request cluster-info, will try again: configmaps "cluster-info" is forbidden: …
guettli
  • 3,113
  • 14
  • 59
  • 110
1
vote
2 answers

How to inspect which pod networking add-on is used in my cluster?

There are many for Cluster Networking in Kubernetes. How can I inspect with kubeadm or kubectl which networking (flannel, calico, ..) gets used in my cluster? Background: I play with K8s on some virtual machines.
guettli
  • 3,113
  • 14
  • 59
  • 110
1
vote
1 answer

coredns will not start on the vagrant ubuntu/impish64 image but will start and run successfully with ubuntu/bionic

I am trying to run k8s on ubuntu/impish64. I have a reference env that is successfully running ubuntu/bionic. The only differences between the environments is the ubuntu image and ip address ranges This is the Bionic…
1
vote
1 answer

Issues starting Kube-scheduler [ Kubernetes the hard way ]

I am trying to setup kubernetes cluster the hardway by following guide from Kelsey Hightower's Kubernetes The Hard Way After setting up the kube-scheduler, when I start the scheduler I am seeing the following error: Jan 20 10:20:01 xyz.com…
Amit
  • 113
  • 3
1
vote
1 answer

How do you access the Kubernetes dashboard?

Following the docs here: https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashboard/ I've run kubectl proxy but as per the docs: "The UI can only be accessed from the machine where the command is executed." Kubernetes is running on…
cat pants
  • 2,139
  • 10
  • 33
  • 44
1
vote
1 answer

Setting resource limits on kube-apiserver

Resource Management for Pods and Containers describes how to set resource requets and limits for "regular" pods in Kubernetes. Is there a supported/reccomended way to set these limits for control plane components such as kube-apiserver? Things I…
rvs
  • 4,027
  • 1
  • 25
  • 30
1
vote
2 answers

Kubernetes Pod fails with OutOfMemory status immediately after being scheduled

I'm testing my application on a bare-metal Kubernetes cluster (version 1.22.1) and having an issue when launching my application as a Job. My cluster has two nodes (master and worker) but the worker is cordoned. On the master node, 21GB of memory is…
Daigo
  • 278
  • 1
  • 17
1
vote
1 answer

Can the portworx "internal" kvdb coexist with etcd?

I have a tiny (three worker node, one controlplane) kubernetes cluster running and I want to configure portworx for storage. All my hosts are kvm virtual machines running Ubuntu 20.4.3 LTS with 5.4.0-73-generic kernel. I used…
mr.zog
  • 902
  • 3
  • 16
  • 36
1
vote
2 answers

What happens when there's no custom chain to jump in a table in iptables?

I'm looking into how iptables work in Kubernetes for packets from a pod to a service. For the outbound, it goes through OUTPUT chain first(nat then filter in my case). Part of the iptables-save result is like: # Generated by iptables-save v1.4.21 on…
Tony Han
  • 103
  • 5
1
vote
1 answer

K8s - How trigger refresh of LoadBalancer svc IP?

I'm using metallb to assign IPs to LoadBalancers in a home lab k8s cluster. I've had to shrink the IP pool though as I need to use some of them in another test cluster. I've done this but the IPs of the existing LB svcs have remained the same…
spoovy
  • 334
  • 4
  • 14
1
vote
3 answers

Kubernetes API server not able to register master node

I was trying to create a Kubernetes Cluster using kubeadm. I had spin up an Ubuntu 18.04 server, installed docker (made it sure that docker.service was running), installed kubeadm kubelet and kubectl. The following are the steps that I did: sudo…
arjunbnair
  • 25
  • 1
  • 2
  • 8
1
vote
1 answer

How to handle in-progress request when applying rolling update?

Given a set of web servers subject to rolling update, such as through kubernetes rolling updates, if a request is issued to one such termination-pending web server milliseconds before a SIGTERM signal is issued to said web server, Should the server…
1
vote
1 answer

kubeadm token create fails on self signed ca cert

I am trying to deploy a k8s cluster using kubespray on top of an openstack cluster of ubuntu servers. The install fails when kubeadm tries to init the cloud provider by submitting a post request to the keystone endpoint xxx:5000/v3/ to create the…
Ted
  • 111
  • 5
1
vote
1 answer

Dynamic, individual nodeAffinity for each pod in a StatefulSet

I have two node pools: NP1 and NP2. I have a StatefulSet with pods using ordinal index to retrieve their own configuration from external configuration source. On certain conditions, I need to reschedule individual pods to either NP1 or NP2. Actual…
Andrey Kuznetsov
  • 169
  • 2
  • 12
1
vote
1 answer

VMWare Workstation and Windows 10: can't connect to a server hosted on VM

I have a private 2 nodes Kubernetes cluster configured on VMWare Workstation 15. I'm using MetalLB and Calico. Ingress service and ingress look like: xxx@c1-cp1:~/Desktop$ kubectl get svc -n ingress-controller-2 NAME …