Questions tagged [kubernetes]

For questions about Kubernetes, an open-source system for automating deployment, scaling, and management of containerized applications.

164 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6 votes
0 answers
2k views

Is there a standard pattern for doing flyway migrations on a kubernetes stack?

There's these instructions from redhat but they're cooking their own flyway. Here's what I've done: I have a dockerfile that looks like this: FROM boxfuse/flyway ADD ./flyway /flyway #TODO: ...
user avatar
5 votes
1 answer
99 views

How to run a container from within another container while also mounting a volume from the first container?

I'm running a build in Jenkins which is running inside Kubernetes. When the job starts, a container starts in the cluster and the build runs inside it. A step in the build requires building an RPM ...
user avatar
3 votes
0 answers
566 views

Kubernetes deployement with minimum disruption to websocket connections

Problem statement: Make a deployment with minimum disruption to clients connected via websockets. Stack: GKE (Regional cluster - 1.22.8-gke.200), helm, Node.js/websockets, HPA, Rolling Update. Our ...
user avatar
3 votes
0 answers
894 views

Copying a large number of files (>4GB) into a Kubernetes pod results in error code 137

I'm trying to find a workaround for this that isn't incredibly slow. I'm trying to download a large data folder from a Kubernetes pod for reupload to another cluster that is not connected to the ...
user avatar
  • 131
3 votes
0 answers
90 views

Grafana K8s microservices availability dashboard based on actuator uptime

I need to create a dashboard that is using micrometer prometheus spring actuator endpoint to show all services for a given namespaces in green boxes or red boxes depending on status, the boxes should ...
user avatar
3 votes
0 answers
176 views

How to deploy StatsD listening on UDP in kubernetes with external loadbalancer on AWS?

Our goal is to have StatsD deployed on k8s cluster running on AWS. Currently all existing applications using UDP to send StatsD metrics. As we understood from the kubernetes docs and tests we ...
user avatar
  • 657
3 votes
0 answers
277 views

Confluent Kafka helm chart - broker pods not being able to communicate to Zookeper overtime

We are running confluent helm chart on a lot of clusters, we occasionally get brokers pods failing after some time and no self-heal after is following, the error in the broker usually is the following:...
user avatar
3 votes
0 answers
218 views

Enable SSLv3 in Minikube Nginx Ingress

I have some problems with enabling SSLv3 in my Nginx Ingress used as a Minikube addon. I have read in docs how to do it. It should be as simple as adding single map. Unfortunately I haven't had much ...
user avatar
  • 131
3 votes
0 answers
709 views

Kubernetes metric or command to show liveness delay time (app startup time)

HTTP Kubernetes liveness and readiness checks are configured as per the documentation. The initialDelaySeconds field tells the kubelet how long it should wait before performing the first liveness / ...
user avatar
  • 161
2 votes
1 answer
109 views

Gitlab pipeline + Jump host + execute HELM

What is worked: Steps: directly go to server via SSH (behind the JH) via SSH to another server pull from Artifactory for testing only executing HELM chart to pull from artifactory and deploy on k8s ...
user avatar
2 votes
0 answers
129 views

Create a Kubernetes Service that loads an external host url AND port

I have a url like this: http://myserver.mydomain.com:98765 I need to have this url be a Kubernetes service so I can address it in Kubernetes like this: my-service.mynamespace.svc.cluster.local. (So, ...
user avatar
  • 172
2 votes
1 answer
76 views

SFTP server with third party user management system?

I understand how to set up SFTP servers on Linux and create users and their passwords manually. So basically, the users get authenticated as normal Linux users get authenticated through /etc/passwd. ...
user avatar
2 votes
0 answers
72 views

Issue with Spinnaker automated trigger

I am trying to get Spinnaker to have a pipeline use an automated trigger which is an image pushed to an ECR repo. I can add different repos fine but can't seem to see the images. I am following this ...
user avatar
  • 435
2 votes
0 answers
43 views

In simple terms, what is the advantage of a Virtual Kubelet?

I have read about the Virtual Kubelet project. I can see that it allows you to delegate from Kubernetes to an Azure Container Instance (ACI), that it allows you to deploy both unix/windows boxes, ...
user avatar
2 votes
0 answers
89 views

What security loopholes does Istio tackle?

My application consists of four microservices. (hr, salary, stock and employee). Users of the application access the "hr" service using http. To fulfill this request the hr microservice communicates ...
user avatar
  • 203
1 vote
0 answers
13 views

PreStop container hook on Pod termination

I have two containers in my Pod (one main app container and another one is just a simple nginx reverse proxy) containers: - name: my-app - name: my-nginx lifecycle: ...
user avatar
1 vote
0 answers
20 views

upgrade k8s cluster version

I've upgraded our kubernetes cluster before to 1.22.7 and get nodes says so. kubectl get nodes ubd Ready 337d v1.22.7 Now I wanted to upgrade to 1.23.7 so I did the following steps on master ...
user avatar
1 vote
0 answers
206 views

Should docker pull fail in an offline server when the specified image is already pulled?

I am trying to set-up kubernetes in an offline server. Part of the installation requires the following docker images, which I have already loaded in the offline server: # docker images REPOSITORY ...
user avatar
1 vote
0 answers
10 views

Error with persistent volume on NFS

I'm learning about pv and pvc in Kubernetes, I'm using minikube with one node I run NFS service on my laptop, and exported correctly I can mount the NFS exports inside minikube, run minikube ssh then ...
user avatar
  • 31
1 vote
1 answer
32 views

How to do maintenance work in kubernetes cluster

We just moved to kubernetes, but the engineer that helped launch it is on paternity leave before we had hoped (never trust a baby not to be eager!). Now we're trying to do maintenance tasks and one ...
user avatar
  • 111
1 vote
1 answer
31 views

Make a readiness probe to fail when there is a newer version of the app being rolled out

How to make a readiness probe fail when there is a newer version of the app available Stack: Node.js, GKE Context Clients are connected to pods via websockets. During a rolling update, clients that ...
user avatar
1 vote
0 answers
21 views

How to colorize kubernetes logs?

It's easy enough to enable colorful logs on docker containers (by setting TERM=xterm-256color and running with tty: True). Still, I'm not getting any color when I run kubectl logs/stern on the ...
user avatar
  • 11
1 vote
0 answers
42 views

Dokku and Kubernetes: How to Build A PaaS?

I am fairly new to the world of DevOps. I am trying to build a platform that is similar to Heroku. I have gotten introduced to Dokku and Kubernetes and thought I might be able to install dokku on ...
user avatar
1 vote
0 answers
11 views

capability to pull docker images to host

We've got a docker container running with a mount to /var/run/docker. It's a daemonset pulling an image every day to the host the pod is running on. containers: - name: updater image: ...
user avatar
1 vote
0 answers
30 views

HashiCorp Vault SideCar stuck on Init

I am creating a Monstache Deployment in Kubernetes which uses some Vault secrets, which will be injected via the sidecar. But the Deployment is stuck on Init, and I don't get any error. Can someone ...
user avatar
1 vote
0 answers
14 views

Kubernetes Vetical Pod Autoscaler wont recreate pods

I'm running the Kubernetes VPA on a GKE project. It has Vertical Pod Autoscaling enabled and I've run the vpa-up.sh script from their Github VPA. Furthermore, the pods running are JupyterHub notebook ...
user avatar
  • 11
1 vote
1 answer
43 views

Why pods are started for old ReplicaSet

A new deployment has been created and the release was successfully deployed on our AKS cluster. We have noticed in logs that pods, for old ReplicaSet(which still exists on the cluster), are regularly ...
user avatar
1 vote
0 answers
83 views

Kubernetes zombie pods problem

I try to run ha redis with kubernetes and I have a problem with deleted pods. When the node which redis master is working on dies, pod that should die keeps working invisibly and also creating new pod ...
user avatar
1 vote
0 answers
73 views

Kubernetes cluster on Raspberry Pi stops working 5 minutes after init

I had set up a Kubernetes cluster on four Raspberry Pis for toy projects awhile back, and I originally set things up using Docker. But ever since Kubernetes decided to drop support for Docker I ...
user avatar
  • 133
1 vote
1 answer
42 views

TCP communication blocked during Pod termination in Kubernetes

I have a cluster running on AWS EKS, v1.20.7-eks-d88609 I have a Pod and a NodePort Service to expose it to the outside. Some clients will connect to it through a TCP connection which will be kept ...
user avatar
  • 111
1 vote
1 answer
183 views

Helm: Long Running Jobs vs Long Running Hooks

I was wondering which would be more appropriate / idiomatic when writing a Helm-Chart: Perform long running operations (such as db-migration) as part of the helm install process via helm hooks and ...
user avatar
  • 111
1 vote
0 answers
74 views

From dev to production workflow

We are creating micro services environment which needs to be delivered to prod, now we want to start the CICD design, is there any reference which talks about getting from a Commit ->PR-> tests-&...
user avatar
  • 111
1 vote
0 answers
26 views

Kubernetes API watch from multiple replicas

I have a service that uses the Kubernetes API to watch the execution of some pods in my cluster. I want multiple replicas of this service running at the same time, to increase resilience. However, if ...
user avatar
  • 11
1 vote
0 answers
14 views

Fetching a URL from a kubernetes worker pod process with lvh.me for development

This is not an issue we face in production but in development using www.lvh.me which resolves to 127.0.0.1 I am using Docker Desktop for Mac. To simplify the issue, we have 2 pods. Web application ...
user avatar
1 vote
0 answers
21 views

Can kubernetes `--force` delete of pods be disabled by administrators?

Using kubectl delete pods PODNAME --force removes the pod from the Kubernetes API without checking the underlying pod deleted successfully. In most cases this means resources are locked indefinitely, ...
user avatar
1 vote
0 answers
90 views

Why is hpa scaling in the wrong direction?

I have two Horizontal Pod Autoscalers, for different deployments with identical metric value and target, and they are scaling in opposite directions. The condition of one ("dev") is ...
user avatar
  • 113
1 vote
0 answers
26 views

Launching VM instances only when needed

I am looking for the right tool to launch VM instances on a cloud platform only when I need them. Once launched, they should run a containerized script (let's call it a job) that runs for about 5 to ...
user avatar
  • 111
1 vote
0 answers
24 views

Is traffic routed through Rrancher when Rancher is used to setup a cluster?

I am learning k8n and want to clarify that I am understanding the traffic flow correctly. I setup Rancher on domain a.com (single node for now) and create a new Cluster (RKE) via it (master, 2 workers)...
user avatar
  • 111
1 vote
0 answers
78 views

How do I use a raw volume with a database on Kubernetes?

I'm trying to figure out how to launch a web application in a Kubernetes cluster on AWS. Right now I'm not certain about a database. I can see that one can use raw block volumes, which are supposedly ...
user avatar
  • 133
1 vote
0 answers
23 views

calling shell commands on host from container

I've created a daemonset which adds a systemd unit and timer file to every host in the cluster. apiVersion: apps/v1 kind: DaemonSet metadata: name: logclean-updater spec: selector: matchLabels:...
user avatar
1 vote
2 answers
374 views

Unable to configure cert-manager. Wrong status code '403', expected '200'

I', trying to configure a cert-manager in a Baremetal server. I followed this link & this one the k describe challenge my-domain.com-xqwh4-4005106243-2059835058 get Status: Presented: true ...
user avatar
  • 111
1 vote
2 answers
705 views

Monitoring Kubernetes CronJob & Job in Grafana for today day only

I'm trying to create a Dashboard in Grafana that will show the status of Cronjob & Job success & fail. Currently i'm using kube_job_status_succeeded to get a status job, but the issue here ...
user avatar
1 vote
1 answer
47 views

Should we deploy Storage Class Per Application OR one Storage Class for All applications?

I am using aws-ebs-csi-driver on k8s for persistent volumes. I came across a scenario where I can create ebs storage class once and then use it across all the statefulsets deployments to create ...
user avatar
  • 123
1 vote
0 answers
53 views

in k8s cant load dump db to postgres for init it

I have a k8s cluster for educational purposes. It has postgres one pod, but I can't load or dump db to postgres to initialise it. I added a pv and pvc for /docker-entrypoint-initdb.d and added locate ...
user avatar
1 vote
1 answer
110 views

How to setup ExternalDNS on Microk8s cluster?

I have a Highly Available, 3 nods, Microk8s cluster with MetalLB and Ingress. The cluster is supposed to serve a website with high availability. I want to enable ExternalDNS for the website with the ...
user avatar
  • 11
1 vote
0 answers
69 views

Kubernetes the hard way, how different to production like kubernetes cluster?

I am learning about kubernetes clusters and tried two alternatives to create the cluster. Kubeadm and Kubernetes the hard way. I see the following description in the repository of kubernetes the hard ...
user avatar
1 vote
1 answer
31 views

set loadbalancing to true round-robin

What is the default behaviour when a kubernetes service is called over and over from the same clientip? I ran some tests and it seems that always the same pod is called and after a while it switches ...
user avatar
1 vote
0 answers
399 views

Unable to fetch metrics from custom metrics API: Internal error occurred

I am running a local Kubernetes cluster with Minikube on a Windows machine using --driver=hyperv. I am trying to set up an HPA (HorizontalPodAutoscaler) based on Pods custom metrics. Using Helm, I ...
user avatar
  • 11
1 vote
0 answers
146 views

Modifying Microk8s System Manifests

To start, I am new to Kubernetes, so please feel free to point out and correct any terminology I get wrong. In a nutshell, I want to be able to run microk8s enable ingress with custom configuration ...
user avatar
  • 61
1 vote
0 answers
23 views

In what time ranges do you verify your canary deployments?

I am currently implementing a canary deployment strategy for the services of an Have you already worked with carary deployments? After which timeframe do you decide to roull out 100%? Which factors do ...
user avatar
  • 11