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

kubernetes coredns is in CrashLoopBackOff status with "no nameservers found" error

I have tried to build kubernetes using kubeadm on my bare-metal server with containerd as cri, but it seemed that coredns failed to start after installing cni (weave-net). Two coredns containers are now in "CrashLoopBackOff" state, and the logs of…
Daigo
  • 278
  • 1
  • 17
1
vote
0 answers

Can't pull images from gcr.io using kubeadm

I cannot pull images from gcr.io using kubeadm. I do not understand the problem, as it seems to have correct internet access to get the latest version info correctly. This is running on a ubuntu 20.04 machine. Kubernetes has been installed with: …
user3142695
  • 121
  • 6
1
vote
1 answer

Pods on two different nodes communicate very slow, any idea why?

I am learning k8s and I have 3 nodes k8s cluster. I have just recently deployed k8s with kubeadmin and so far it is working great. everything working perfectly but the only problem that I am facing is network throughput. my three nodes and replica…
user3852599
  • 33
  • 1
  • 5
1
vote
1 answer

Kubernetes failing to start: failed to build map of initial containers

Starting today, k3s is failing to start with the following error: "Failed to start ContainerManager" err="failed to build map of initial containers from runtime: no PodsandBox found with Id…
1
vote
0 answers

MetalLB on a host with multiple NIC

I need help with some deeper networking stuff. Hopefully somebody can help me or at least push me to the right direction. At the moment I have a two node bare metal (VPS) kubernetes cluster setup with microk8s. Testingwith website deployments work…
MattDog
  • 11
  • 1
1
vote
1 answer

Can't use images from k8s.gcr.io registry in my kubernetes cluster

I've setup a k8s cluster on a bare metal ubuntu machine using RKE. There is no problem creating deployments with images from docker.io. But I can't create deployments which are based on gcr.io: Warning Failed 10s kubelet Failed to…
user3142695
  • 121
  • 6
1
vote
1 answer

How to know what roles are missing in RBAC

How can I figure out what role is missing in a service account? Like I have the following: kubectl auth can-i create taskrun --all-namespaces --as=system:serviceaccount:default:default no Ok, but where to go from here :-)
Chris G.
  • 157
  • 5
1
vote
1 answer

kubernetes ingress replace path

I have two backend api-services: api-service-v1 api-service-v2 Both respond on "/api/" path I have this configuration running fine as a docker-compose setup where nginx service serves as a proxy with the following config…
1
vote
1 answer

K3S can't pull public docker hub images

K3S cluster is failling to pull public docker hub images. in this instance i will user linuxserver/webtop which presents the error Failed to pull image "linuxserver/webtop": rpc error: code = Unknown desc = failed to pull and unpack image…
locose
  • 11
  • 2
1
vote
1 answer

How to load ConfigMap in Kustomize YAML file?

My original YAML base/deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: labels: app: nginx name: nginx spec: replicas: 1 selector: matchLabels: app: nginx template: metadata: labels: app: nginx …
Sara June
  • 389
  • 4
  • 15
1
vote
1 answer

pods in kubernetes can not communicate with other pods and outside cluster hosts

I have 2 master and 3 worker node and one HA proxy for controlePlan, I have many java microservices that communicate together and communicate with DB or KAFKA outside of the kubernetes cluster. network access is any to any open in all hosts. I…
Jcyber1
  • 11
  • 2
1
vote
1 answer

Prevent UID 0 containers running Kubernetes

Traditionally I would have prevented root/UID 0 containers from running in kubernetes using pod security policies. However it seems that in 1.21 PSPs have been deprecated. Are there any other recommended ways to prevent these from running at a…
thewire247
  • 146
  • 1
  • 6
1
vote
1 answer

Why does bgp OPEN message get Connect Socket: Connection reset by peer when node is on a different subnet/gateway

My network setup: Kubernetes network setup With this setup, only nodes on same subnet can establish bgp connection. Other nodes (that do a full 3 way tcp handshake), responds to hte OPEN message with [FIN, ACK] then a [RST] hence the Connection…
tFlolo
  • 11
  • 3
1
vote
1 answer

Kubernetes certificate with Letsencrypt

I want to create a certificate with letsencrypt. When I run the this yml apiVersion: cert-manager.io/v1 kind: Certificate metadata: name: grafana-tls namespace: grafana type: "kubernetes.io/tls" spec: secretName: grafana-tls issuerRef: …
Stefan
  • 117
  • 5
1
vote
1 answer

How to fix "Failed to apply 'Node' resource: [update conflict: Node(...)]" while trying to apply Calico node config?

I'm playing with Kubernetes and got two VirtualBox machines - master and worker. Every one has two network interfaces - one for Internet and other for communication between each other VM and host machine. And I got troubles with Calico setup because…