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.

2352 questions
18
votes
3 answers

How to choose the external IP address of a Kubernetes load balancer in Google Kubernetes Engine

I'm deploying a web app using Google Kubernetes Engine and I want to make it accessible via a load balancer on an existing static IP address that I control as part of the same project in Google Cloud Platform, because the domain name I want to use…
18
votes
3 answers

How could I find the Kubernetes POD restart reasons

In have scaled my pods to 20 in my cluster and when I see the next day the few of the scaled pods were recreated. When I say POD recreated, it is getting deleted and created freshly and the timestamp of the recreated pod and the scaled pods vary. I…
Nikhil
  • 241
  • 1
  • 2
  • 7
17
votes
5 answers

How to find the service principal assigned to a newly created AKS cluster?

I have just created an AKS cluster using a standard az aks create ... --ssh-key-value .... According to https://docs.microsoft.com/en-us/azure/aks/kubernetes-service-principal, an AKS cluster is created, and because an existing service principal…
JoaoCC
  • 295
  • 1
  • 3
  • 8
15
votes
9 answers

failed to run Kubelet: validate service connection: CRI v1 runtime API is not implemented for endpoint

I have installed kubelet 1.26.0 on Ubuntu 22.04 using apt install kubelet command, but when I try journalctl -xeu kubelet I get the following result: ░░ ░░ The unit kubelet.service has entered the 'failed' state with result 'exit-code'. Dec 14…
best_of_man
  • 367
  • 1
  • 3
  • 12
14
votes
1 answer

Enable VPC-native (alias IP) on an existing GKE cluster

Is there a way to enable Alias IP on existing GKE cluster (with disabled Alias IP)? (Besides using https://github.com/bowei/k8s-custom-iptables to create NATs on each node)
14
votes
6 answers

How to list all containers in Kubernetes?

How do i list all containers in Kubernetes cluster using kubectl? Current documentation doesn't mention anything like 'container' resource. kubectl get pod -o json lists all pods which contains container descriptions. But is it possible to list…
czerny
  • 255
  • 1
  • 2
  • 8
14
votes
2 answers

Kubernetes - can I avoid using the GCE Load Balancer to reduce cost?

I'm deploying a Kubernetes cluster on GCE using Gitlab-CI. I'd like to keep the cost to a minimum - here's my current setup: Nodes run on 3 f1-micro instances A system pod running Traefik configured with ServiceType LoadBalancer Wildcard dns…
13
votes
3 answers

How do i view logs for my Kubernetes Ingress Controller?

I have recently started to learn about Kubernetes and i'm trying understand why my ingress controller is giving a 502 error. i'm working with google cloud platform. i can see my service of type: LoadBalancer is working if i connect using its static…
X0r0N
  • 245
  • 1
  • 3
  • 7
13
votes
1 answer

Graceful shutdown of Kubernetes cluster

We have a 4 node Kubernetes cluster, installed using Juju 2.0 and the official canonical Kubernetes charm. The sole purpose of this very local and private installation is development and testing. One of the biggest and documented issues of this…
13
votes
3 answers

Kubernetes nginx ingress: How to redirect foo.example.org to example.org?

My ingress currently looks like this: apiVersion: networking.k8s.io/v1beta1 kind: Ingress metadata: name: ingress annotations: kubernetes.io/ingress.class: nginx cert-manager.io/cluster-issuer: letsencrypt-prod spec: tls: - hosts: …
mpen
  • 423
  • 1
  • 6
  • 15
12
votes
3 answers

HorizontalPodAutoscaling on Amazon EKS

When trying to setup a HorizontalPodAutoscaler on Amazon EKS, the TARGETS column always displays /50% and when describing the HPA, I see Warning FailedGetResourceMetric 17s (x50 over 1h) horizontal-pod-autoscaler unable to get…
James Mills
  • 223
  • 2
  • 6
12
votes
4 answers

Error creating GCE load balancer: requested address ip is neither static nor assigned to LB

I have a situation where Kubernetes apparently can no longer assign an external IP address to a service upon kubectl create -f Deployment.yaml. kubectl describe service reports the following error: CreatingLoadBalancerFailed Error…
Drux
  • 656
  • 1
  • 9
  • 24
12
votes
1 answer

Kubernetes v1.24.3 upgrade broke ingress-nginx

After upgrading our AKS kubernetes cluster to from v1.23.8 to v1.24.3 our ingress stopped working properly. No errors logged in events and the ingress-nginx pod does not report any errors on the console. Everything looks fine from within the…
sevenam
  • 411
  • 1
  • 11
12
votes
2 answers

How to rewrite url to backend while preserving browser url in nginx ingress?

I'm trying to rewrite the path to the service while preserving the browser url with nginx ingress on kubernetes. What I need is this: http://example.com/path => http://service http://example.com/path/bar =>…
Natan
  • 223
  • 1
  • 3
  • 9
11
votes
1 answer

minikube/k8s/kubectl "failed to watch file [ ... ]: no space left on device"

I'm fairly new to k8s and minikube, and could use help understanding the frequent-but-not-ubiquitous error I get when running kubectl logs -f I get this, sometimes, and unpredictably, on pods in my own namespace, and in kube-system, e.g.…
Ben
  • 251
  • 1
  • 3
  • 11