Skip to main content

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.

Filter by
Sorted by
Tagged with
5 votes
1 answer
3k views

GKE pod connecting via VPN?

I have a GKE cluster with a handful of nodes and I would like pods in this cluster to be able to connect to remote hosts on a private network that can be reached via a site-to-site VPN provided by GCE....
Bittrance's user avatar
  • 3,130
14 votes
2 answers
4k views

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 ...
Mitkins's user avatar
  • 255
7 votes
1 answer
15k views

Kubernetes, Docker and vm.max_map_count

While attempting to run ElasticSearch on K8 I ran into an error that would kill the container: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144] Fortunately ...
Spencer Ruport's user avatar
1 vote
1 answer
3k views

GCE : health check and Liveness Probe

When creating the Target Pool for Network Load Balance, there is a health check option. Also there is a property named livenessProbe in the container spec. A liveness probe checks if the container ...
Mr.Wang from Next Door's user avatar
25 votes
5 answers
19k views

Is microk8s suitable for production environments, or is it just for development?

microk8s appears to be an easy way to install Kubernetes on Ubuntu. Several places refer to it as an alternative to minikube, which is not aimed at production environments, and this post seems to ...
Travis's user avatar
  • 385
20 votes
10 answers
44k views

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 '...
best_of_man's user avatar
19 votes
1 answer
91k views

Back-off restarting failed container - Error syncing pod in Minikube

I'm facing this error when trying to create pods. It is occurring with even very common images like Ubuntu,Alpine also. I'm fairly new to Kubernetes and using a Minikube Node ( version v0.24.1 ) ...
Ram Krishnan's user avatar
14 votes
1 answer
7k views

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 ...
sevenam's user avatar
  • 441
12 votes
3 answers
5k views

HorizontalPodAutoscaling on Amazon EKS

When trying to setup a HorizontalPodAutoscaler on Amazon EKS, the TARGETS column always displays <unknown>/50% and when describing the HPA, I see Warning FailedGetResourceMetric 17s (x50 ...
James Mills's user avatar
8 votes
3 answers
12k views

Kubernetes - how to map docker run command-line parameters to kubectl command line

I need to run this Docker command in Kubernetes: docker run -p 8080:8080 sagemath/sagemath sage -notebook I can map everything across except "-notebook" - does anyone know how to do that? Here is ...
A X's user avatar
  • 529
7 votes
6 answers
26k views

containerd 1.4.9 Unimplemented desc = unknown service runtime.v1alpha2.RuntimeService

I have installed containerd 1.4.9 on CentOS steam 8 server. based on this document https://containerd.io/docs/getting-started/. I have created default config file containerd config default > /etc/...
sfgroups's user avatar
  • 243
7 votes
1 answer
9k views

400 Error with nginx-ingress to Kubernetes Dashboard

I have an ingress that connects to Kubernetes Dashboard, but I'm getting a 400 error when trying to access it. --- apiVersion: networking.k8s.io/v1beta1 kind: Ingress metadata: name: kubernetes-...
cclloyd's user avatar
  • 613
6 votes
1 answer
5k views

Routing traffic through OpenVPN on Kubernetes with Calico

I am running a kubernetes cluster on the IBM container service. I have an OpenVPN pod set up, which successfully allows clients to connect. Clients have fixed IPs assigned using CCD (in the range 10....
Hayden Ball's user avatar
5 votes
8 answers
56k views

debug kubelet not starting

I'm using kubeadm to try to setup a dev master. I'm running into an issue where the healthcheck for kubelet is failing. I'm looking for direction on how to debug that. Running the command that's ...
Ben's user avatar
  • 3,870
4 votes
3 answers
10k views

Unable to access internet on pod in private GKE cluster

I'm currently unable to access/ping/connect to any service outside of Google from my private Kubernetes cluster. The pods are running Alpine linux. Routing Tables /sleepez/api # ip route show table ...
Evan Darwin's user avatar
4 votes
2 answers
3k views

Kubernetes - External Connection through single IP

I need to find a way to have 1 IP that is used by all pods everytime they need to connect to the "outside world". FULL VERSION: I'm trying to integrate my application with a Payments Gateway service....
Zed_Blade's user avatar
  • 103
3 votes
1 answer
13k views

How to properly configure access to kubernetes dashboard behind nginx ingress

I'm trying to configure nginx ingress to access several services, like this: apiVersion: extensions/v1beta1 kind: Ingress metadata: name: ingress-monit spec: rules: - host: grafana.localhost ...
bachr's user avatar
  • 183
3 votes
3 answers
45k views

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. ...
arjunbnair's user avatar
3 votes
1 answer
4k views

kubectl top command output does not match Linux free command

I have a one a one node Kubernetes cluster and the memory usage reported by the metrics server does not seem to be the same as the memory usage shown with the free command # kubectl top nodes NAME ...
bitscuit's user avatar
  • 131
3 votes
2 answers
13k views

Cannot create PersistentVolume in Kubernetes

I'm trying to create a new PersistentVolume in Kubernets (version 1.14), but it returns me the following error: The PersistentVolume "postgres-pv-volume" is invalid: * spec.persistentvolumesource: ...
Djent's user avatar
  • 109
2 votes
1 answer
945 views

kubectl "failed to negotiate an api version"

Hello since yesterday morning I'm running into issues trying to access one of my Kubernetes cluster hosted on Google container engine. I had never had problem until it started to fail but now each ...
Fabrice Armisen's user avatar
2 votes
1 answer
2k views

systemd process with uncommon CPU usage on Kubernetes cluster

I'm running a single master/node Kubernetes cluster in a CentOS 7 virtual machine, and I realized that the systemd process (as PID 1) is constantly making using of CPU. [root@ip-10-0-0-66 ~]# ps aux |...
Eduardo Baitello's user avatar
2 votes
0 answers
637 views

ECR IAM policy document for EKS node access

What is the correct way to manage EKS node access to ECR via the IAM policy documents when I want to limit who can start jobs using different images? In a simplified example, I have users A and B and ...
Ai Su's user avatar
  • 21
2 votes
1 answer
2k views

Why do pods on a node that was recreated after being preempted get stuck in ContainerCreating?

I had a pod created by a deployment running on a preemptible node in a Google Kubernetes Engine cluster. The node was preempted and recreated. There were several FailedCreatePodSandBox events ...
Jonathan Rogers's user avatar
2 votes
1 answer
1k views

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: |- ...
Sara June's user avatar
  • 531
2 votes
1 answer
16k views

How can I restart or reset the K3s cluster pods

I have a k3s (v1.21.1+k3s1) cluster with following pods: kube-system pod/calico-node-xxxx kube-system pod/calico-kube-controllers-xxxxxx kube-system pod/metrics-...
solveit's user avatar
  • 265
2 votes
0 answers
663 views

iptables REDIRECT to Kubernetes NodePort causes request to hang

I am attempting to direct client traffic to a kubernetes cluster NodePort listening on 192.168.1.100.30000 (https port). Client's needs to make a request to 192.168.1.100.8000 so I added the following ...
tiger_groove's user avatar
2 votes
1 answer
9k views

It seems like the kubelet isn't running or healthy. [kubelet-check] The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with erro

I am trying to do sudo kubeadm init of kubeadm 1.26.0 on an Ubuntu 22.04 machine. But I get the following result: [init] Using Kubernetes version: v1.26.0 [preflight] Running pre-flight checks [...
best_of_man's user avatar
2 votes
1 answer
3k views

VPN to a Kubernetes-cluster from a remote network

I need to build a VPN connection between a network and a Kubernetes-cluster, so the applications hosted in this in this network could address to K8S-services via a secured tunnel. So, I have a bunch ...
Volodymyr Melnyk's user avatar
2 votes
2 answers
451 views

Pre-populating GCE persistent disks while building and/or before running Docker image on GKE

I would like to build a Docker container and then run it in GKE after mounting some directories from GCE persistent disks (PDs). For instance, I'd like for the application's (read-write) configuration ...
Drux's user avatar
  • 706
1 vote
2 answers
3k views

How to fix "failed to unpack image on snapshotter overlayfs: unexpected media type text/html" when MicroK8S is starting a deployment?

I continue down the frustratingly stop-start road of learning Kubernetes (specifically MicroK8S). I build an image locally on a development laptop thus: docker build -t k8s-workload . This is a ...
halfer's user avatar
  • 179
1 vote
1 answer
618 views

Running single replica Kubernetes service at public IP address and without load balancing

I am running a service in GKE/Kubernetes that exposes a single UDP port at a staric IP address. (I've promoted the static IP address from an ephemeral one in GCE.) If I deploy it with fields as ...
Drux's user avatar
  • 706
1 vote
1 answer
2k views

How to set up port-forwarding in MicroK8S across a cluster (ideally without a manifest)?

I am learning K8S using MicroK8S. I have a three-node cluster, each node having 16G of RAM. The cluster has entered HA mode automatically. The cluster sits on my home LAN. Here are my nodes: name IP ...
halfer's user avatar
  • 179
1 vote
1 answer
1k views

Can kubernetes cluster nodes be geologically spread out?

Me and a couple of friends are thinking of setting up a kubernetes cluster where our homeservers will act as the nodes. As our nodes will be spread out between our apartments I am worried this will ...
Hannes Knutsson's user avatar
1 vote
2 answers
369 views

Monitoring MongoDB 3.2 using Stackdriver in Google Compute Engine failed silently

I'm having problem monitoring MongoDB 3.2 with Stackdriver as of 28 Aug 2016. There is no mention of mongo whatsoever in /var/log/syslog but if I made a configuration error on the .conf file, it ...
Hendy Irawan's user avatar
1 vote
1 answer
619 views

Attribute a static public ip for a pod in kubernetes

In my data center, I implemented a Kubernetes infrastructure with 3 workers and one master node. I'm looking to build 5 pods running postfix mail server, but because of risking to be blacklisted, I'm ...
Demba's user avatar
  • 11
1 vote
3 answers
13k views

Kubernetes OCI runtime exec failed - starting container process caused "exec: \"etcdctl\": executable file not found in $PATH": unknown

Background Created a fresh Kubernetes cluster using kubeadm init --config /home/kube/kubeadmn-config.yaml --upload-certs and then joining the 2nd control plane node by running the below. kubeadm join ...
PieDev's user avatar
  • 71
1 vote
0 answers
483 views

Domain whitelisting in Kubernetes DNS Service

Can I use Kubernetes dns service to whitelist the domains for my pods? I want to restrict the outgoing (egress) calls using Kubernetes dns service. if I can achieve this, can someone let me know the ...
solveit's user avatar
  • 265
1 vote
1 answer
325 views

Istio Keeps On Showing TcpProxyValidationError Errors

I initially created an EnvoyFilter to apply idle_timeout of 5s to outbound requests originating from workloads with label app: mecha-dev. apiVersion: networking.istio.io/v1alpha3 kind: EnvoyFilter ...
bakadevops's user avatar
1 vote
1 answer
602 views

Is there a way to add multicast to loopback interface on a kubernetes pod?

Using an in-prem kubernetes installation on baremetal (Ubuntu) servers, installed with kubeadm. Kubernetes version is 1.25.3 Need to have multicast on a pod's loopback for the automated tests running, ...
Mikha's user avatar
  • 123
1 vote
0 answers
347 views

Using private image to start kube-proxy

I need to run kubernetes cluster using private images. I started with config generated by kubeadm init (I'm a newbie to kubernetes) and modified .yaml files to use my own images. When kubelet starts ...
mati865's user avatar
  • 111
1 vote
1 answer
27k views

Is it possible to expose 2 ports in Kubernetes pod?

I have the following scenario - The position simulator will get its longitude and latitude data based on time from a gps tracker. So this position simulator has a connection to activemq, but to ...
Nazia Jahan Trisha's user avatar
1 vote
2 answers
564 views

Own etcd cluster for Kubernetes

I want to build my own Kubernetes cluster across two locations (300 km distance) and integrate it into GitLab. Let me list my ideas. My question is if I have a mistake in my thinking somewhere and ...
uav's user avatar
  • 564
1 vote
2 answers
575 views

Aggregated logs from microservices into single web interface

I am wondering if a project exists that can collect all the logs from a bunch of microservices and tail them on a web interface. All of the logging solutions out there seem to neglect realtime viewing....
Andrew Holway's user avatar
0 votes
0 answers
529 views

Getaddrinfo does not resolve in some kubernetes pod on some hosts

I have a pod where getaddrinfo cannot resolve the address to a Kubernetes Service in the same namespace but can connect to the service if I use the IP address instead. Using tcpdump, I can confirm ...
Christian Alis's user avatar
0 votes
1 answer
716 views

Kubernetes managing many distinct UDP servers on GKE

I'm trying to set up a system that can automatically spin up and down video game servers as docker images. In this case, factoriotools/factorio-docker. Each game is a different, distinct single-pod ...
xenrelay's user avatar
0 votes
0 answers
85 views

Configure Ingress controller on Native Kubernetes

I'm trying to implement the solution from this tutorial on Kubernetes v1.29.2: https://platform9.com/learn/v1.0/tutorials/nginix-controller-helm I run: root@node1:~# helm repo add nginx-stable https://...
Peter Penzov's user avatar
0 votes
1 answer
39 views

SOLVED - Error configuring node-exporter DaemonSet scraping for Prometheus on kubernetes

I am posting the following question already solved, because I've mistakenly posted in on StackOverflow and therefore wanted to share it here so it can be properly found by the community and hopefully ...
Paula Gouveia's user avatar
0 votes
1 answer
860 views

"CrashLoopBackOff" while deploying mysql on multi-node cluster

This is my configmap.yaml file: apiVersion: v1 kind: ConfigMap metadata: name: mysql labels: app: mysql app.kubernetes.io/name: mysql data: primary.cnf: | # Apply this config only ...
best_of_man's user avatar
0 votes
2 answers
3k views

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

EDIT: The following describes my original question, but as long as I haven't resolved the issue yet, I thought maybe I should change settings inside the created mysql POD instead of mysql config files ...
best_of_man's user avatar