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

Updating ingress-nginx helm chart for kubernetes 1.23.5

I am having lots of issues that seem to stem from upgrading my kubernetes cluster to the latest version (1.23.5). I initially had some issues with the cluster itself and the nodes but that seems to be fixed and the cluster seems to be healthy, at…
kirie
  • 111
  • 3
1
vote
1 answer

Meaning of: supplementalGroups: [ 65534 ]?

I am looking at this yaml apiVersion: apps/v1 kind: Deployment metadata: name: kube-dns-autoscaler namespace: kube-system labels: k8s-app: kube-dns-autoscaler kubernetes.io/cluster-service: "true" spec: selector: matchLabels: …
guettli
  • 3,113
  • 14
  • 59
  • 110
1
vote
1 answer

How to implement caching of HTTP responses in Kubernetes?

How can I cache HTTP responses from my services in Kubernetes? I have a simple web service in my cluster and am wondering how I could cache static assets (static html, images, fonts, etc.) beyond relying on client caches. My setup is very simple: …
nfelger
  • 111
  • 2
1
vote
1 answer

The connection to the server localhost:8080 was refused - did you specify the right host or port?

I created a second context in my local kind-cluster: The first context works: kubectl get pods NAME READY STATUS RESTARTS AGE dashboard-kubernetes-dashboard-76bd8dc445-wp9l6 1/1 Running …
guettli
  • 3,113
  • 14
  • 59
  • 110
1
vote
0 answers

How to refer kubernetes secrets in properties file?

We have a properties file where all our application configuration is there, in key-value pairs. All the key-value pairs is in single config.properties file. So, I kept that data in configmap and linked to this file in kubernetes. Working fine so…
1
vote
0 answers

Use internal network for the Kubernetes cluster

All nodes have two network interfaces for internal and external networks. I need to set up a self-managed Kubernetes cluster that is using only the internal network except NodePorts must be open also on the external network. This config is used with…
Jonas
  • 265
  • 2
  • 9
1
vote
1 answer

How do I configure EKS (Amazon Kubernetes) to use a different docker image repository?

You’d expect a wuestion this simple would have an amazon tutorial or documentation, but I can’t find any. How do I configure an EKS cluster to connect to a different self hosted docker registry? I want to start running the open source version…
Some Linux Nerd
  • 3,157
  • 3
  • 18
  • 20
1
vote
2 answers

DNS problems on pool of preemptible-only nodes on GKE: endpoints of kube-dns service keeps failed pods

I do have a GKE k8s cluster (k8s 1.22) that consists of preemptible nodes only, which includes critical services like kube-dns. It's a dev machine which can tolerate some broken minutes a day. Every time a node gets shut down which hosts a kube-dns…
lena_punkt
  • 111
  • 2
1
vote
2 answers

Use .kube/config Client certs in curl

If you use kubectl get pod foo -v10 you see a curl line, but this does not work. Example: guettli@p15:~$ curl -k -v -XGET -H "Accept: application/json;as=Table;v=v1;g=meta.k8s.io,application/json;as=Table;v=v1beta1;g=meta.k8s.io,application/json"…
guettli
  • 3,113
  • 14
  • 59
  • 110
1
vote
2 answers

How do I create a Kubernetes service that routes traffic to different pods based on the port?

I would like to have a Service of LoadBalancer type that points to an nginx on port 80, and point to a separate sshd pod for port 22. However I can't route based on the port with a single selector. The use case I'm going for is similar to github.com…
Matt
  • 121
  • 5
1
vote
0 answers

Should I use an existing WireGuard connection as basis for a K8S CNI plugin?

I'm setting up a Kubernetes cluster, where the Nodes are distributed across different networks. Additionally, all Nodes are part of a WireGuard network. Each Node therefore has 2 IP addresses, one bound to its primary NIC (private or public IPv4)…
muffel
  • 302
  • 7
  • 20
1
vote
1 answer

How to choose a valid VIP for kube-vip HA Cluster setup?

I am following this reference https://kube-vip.io/control-plane/ for HA cluster setup. I want to setup 3 master - 1 worker cluster for testing purpose. The documentation uses 192.168.0.75 as VIP, but not mentioning how they got this IP As I am using…
1
vote
1 answer

How do I configure storage class on an existing k0s cluster

When I run kos kubectl get storageclass I notice it is not provisioned and I have to add it manually. I am little unsure though on the exact procedure. The [Documentation][https://docs.k0sproject.io/main/storage/] says k0s comes with OpenEBS…
Golide
  • 113
  • 1
  • 9
1
vote
0 answers

What path on disk does a containerd snapshot key map to?

I want to remove a snapshot from a node in our Kubernates cluster: /var/lib/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots/NNNN But I am unable to map this path to any snapshots as reported by ctr -n k8s.io snapshots list. I have tried…
Gunnar
  • 131
  • 1
1
vote
2 answers

How to do live migration from flannel to calico on single node kubernetes cluster?

I am trying to migrate from flannel to calico in k8s cluster. I am able to do it successfully in 3 node cluster. Live migration from flannel to calico is working as described in the documentation. But migration from flannel to calico on single node…
Siddharood
  • 61
  • 5