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

Adding a unique request header to hundreds of Ingresses with Traefik 2

we're (finally) migrating from Traefik 1 to 2. We run 400+ apps on GKE. Our one remaining challenge is this: In Traefik 1 we set an annotation on each app's Ingress that adds a header to the request to the backend. The value of that header is unique…
Martijn Heemels
  • 7,438
  • 6
  • 39
  • 62
2
votes
1 answer

archlinux: kubernetes - coredns does not work properly

I have installed kubernetes v1.23.0 with Arch Linux as distribution. The cluster consists of a master and a node. Booth systems are KVM based VMs. When a pod wants to make a DNS query, it gets a timeout when the service forwards the requests to a…
Volker Raschek
  • 307
  • 1
  • 5
  • 13
2
votes
1 answer

Contents in Kubernetes pod gets empty when persistent volume is mounted

persistent volume claim and persistent volume yaml file apiVersion: v1 kind: PersistentVolume metadata: name: my-volume labels: type: local spec: storageClassName: manual capacity: storage: 5Gi accessModes: - ReadWriteOnce …
aks
  • 37
  • 1
  • 6
2
votes
1 answer

Access Kubernetes Dashboard Via HTTP Instead of HTTPS

Question How can I enable HTTP requests? I have a primary web server that is a proxy and sends HTTP requests to the MicroK8S server but cannot due to the HTTP error. Install command used: sudo snap install microk8s --classic…
Pie
  • 292
  • 1
  • 5
  • 17
2
votes
1 answer

Running a job automatically after deployment in a kubernetes cluster

Does anyone know how to launch a job automatically after a deployment with kubernetes? I tried using postStart script but the task is executed on every replica of the deployment. I want to execute it only once time after deployment is completed. The…
2
votes
0 answers

Kubernetes on Flatcar Linux will not start up kube API server after a reboot of the master node

Thank you for reading and taking your time to review this problem. I have a problem using my Kubernetes cluster. It is running Flatcar Linux, made by Kinvolk, recently acquired by Microsoft. I have setup the cluster using their Lokomotive (lokoctl)…
jonasclaes
  • 101
  • 7
2
votes
1 answer

How to load configmap from a properties file using kustomize?

I have tried using kustomize to load properties file as a configmap. For that, I created a sample set as in github link. With base files: #kustomize build base apiVersion: v1 data: config: |- dbport=1234 dcname=sfsdf dbssl=false …
Sara June
  • 389
  • 4
  • 15
2
votes
2 answers

How do I configure Kubernetes to use kubenet with kubeadm?

I deployed a Kubernetes cluster using kubeadm. $ kubectl get nodes NAME STATUS ROLES AGE VERSION ip-172-31-33-9.us-east-2.compute.internal NotReady 48m …
timkay
  • 129
  • 2
2
votes
1 answer

Rancher x509 Certificate Expired yet not

When running kubectl, I get the error Unable to connect to the server: x509: certificate has expired or is not yet valid: current time 2021-10-05T11:59:14-04:00 is after 2021-09-29T19:21:40Z So clearly it says the cert is expired. Only problem is…
cclloyd
  • 583
  • 1
  • 13
  • 24
2
votes
1 answer

Kubernetes ingress 502 bad gateway on DigitalOcean

I am trying to deploy a NestJS app with Kubernetes on DigitalOcean and I have followed this tutorial, but I am always getting a 502 Bad Gateway from the nginx-ingress-controller. That's my deployment.yaml --- apiVersion: v1 kind: Service metadata: …
fasenderos
  • 123
  • 4
2
votes
0 answers

Kubernetes coredns not receiving requests

I've set up a kubernetes cluster, single node, debian 11. However, my CoreDNS doesn't seem to resolve anything. I'm noticing this by portainer being unable to load resources. http: proxy error: dial tcp: lookup kubernetes.default.svc on…
2
votes
0 answers

Select pods by label for use by Fluent Bit in Kubernetes DaemonSet

I have pods in Kubernetes with a label: metadata: labels: fluentbit-loggable: true I only want my Fluent Bit configuration to pick up those pods. I followed this great tutorial on getting things set up, but I only have certain pods I want…
el n00b
  • 141
  • 4
2
votes
1 answer

Pod fails to mount ConfigMap: `failed to sync configmap cache: timed out waiting for the condition`

I am trying to deploy a pod on a v1.18 GKE kubernetes cluster My pod loop-crashes because it fails to mount its config map: $ kubectl describe pod ... Volumes: cm-cxf-conf: Type: ConfigMap (a volume populated by a ConfigMap) …
Elouan Keryell-Even
  • 453
  • 2
  • 8
  • 20
2
votes
1 answer

Ensuring at least one ingress-nginx per kubernetes node

I'm trying to write an autoscaling configuration for ingress-nginx, deployed via helm chart. my goals are: 3 minimum replicas (because I have 3 nodes minimum) ensure only one nginx per node, but: be elastic, if autoscale says we need 4 nginx allow…
John Smith
  • 248
  • 1
  • 3
  • 9
2
votes
1 answer

Kubernetes manual certificate renewal - apiserver ceritificate update failed

We have a bare-metal k8 cluster deployed using Kubespray, its certificates are expiring soon. openssl x509 -in /etc/kubernetes/pki/apiserver.crt -noout -text |grep ' Not ' To update certificates, followed given instructions in official…