Questions tagged [kubernetes]

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

85 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
1answer
356 views

Connect external Jenkins Master to GKE with Kubernetes plugin

I find the documentation at https://github.com/jenkinsci/kubernetes-plugin quite unclear when it comes to step by step configuration of external Jenkins master. What are the exact steps that need to ...
5
votes
0answers
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: ...
3
votes
0answers
49 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 ...
3
votes
0answers
551 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 ...
3
votes
0answers
67 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 ...
3
votes
0answers
139 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 ...
3
votes
0answers
233 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:...
3
votes
0answers
150 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 ...
2
votes
1answer
62 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. ...
2
votes
0answers
58 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 ...
2
votes
0answers
653 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 / ...
2
votes
0answers
40 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, ...
2
votes
0answers
86 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 ...
1
vote
1answer
35 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 ...
1
vote
0answers
68 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-&...
1
vote
0answers
18 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 ...
1
vote
0answers
8 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 ...
1
vote
0answers
17 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, ...
1
vote
0answers
21 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 ...
1
vote
1answer
45 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 ...
1
vote
0answers
25 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 ...
1
vote
0answers
16 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)...
1
vote
0answers
37 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 ...
1
vote
0answers
43 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, ...
1
vote
0answers
19 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:...
1
vote
2answers
185 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 ...
1
vote
2answers
190 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 ...
1
vote
1answer
46 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 ...
1
vote
0answers
25 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 ...
1
vote
1answer
53 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 ...
1
vote
0answers
56 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 ...
1
vote
0answers
19 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 ...
1
vote
0answers
267 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 ...
1
vote
0answers
116 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 ...
1
vote
0answers
20 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 ...
1
vote
2answers
59 views

Gather resource usage by process in a kubernetes cluster

I am searching for a tool similar to Prometheus + Grafana that gather and record resource usage especially memory usage by process-ID or process-name. We have two components that are running ...
0
votes
1answer
6 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 ...
0
votes
0answers
10 views

Making Istio Gateway accessible from another machine

I have a minikube cluster with Istio and I have configured an Istio Gateway as described here. If I curl from the machine, where the cluster is, to the gateway everything works fine. However I want to ...
0
votes
0answers
13 views

kustomize apply nameprefix and commonlabels to a list in path

i have this: kustomization.yaml: apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization configurations: - configuration.yaml namePrefix: app-prefix- resources: - logging-output.yaml - ...
0
votes
0answers
21 views

Can a Kubernetes Operator enforce Pod settings

I am developing a Kubernetes Operator and I would like to enforce some particular Pod settings whenever a Pod is referencing some custom ressource (according to a CRD - Custom Resource Definition - ...
0
votes
0answers
7 views

Restoring backed up data to influxdb pod via post-hook helm job

I have a influxdb pod created via helm chart from bitnami running in my kubernetes cluster with bind address enabled at 8088. I would like to import data into it after deployment of the pod. For this ...
0
votes
0answers
16 views

Mongodb Kubernetes Operator ReplicaSet change port

I have tried every configuration examples from https://docs.mongodb.com/kubernetes-operator/master/reference/k8s-operator-specification/ but no matter what i do, the port of the running ReplicaSet ...
0
votes
0answers
13 views

Unable to fully remove old certmanager version

A long while back, I had been using the old version of cert-manager, when it was just named certmanager. Since then, I've deleted that old deployment and all of its CRDs, and installed the new version,...
0
votes
0answers
15 views

Expose each individual member of a headless service to external traffic

I'm using a statefulset + headless service to stand up horizontally-scaled dedicated servers. I'm looking for a solution that will allow external traffic to be directed to a specific server and hit it ...
0
votes
0answers
5 views

Is there a way to store backups locally with Velero?

I am using k3d for a local development workflow in Kubernetes, and I am wondering if there is a way to store backups locally instead of having to use a cloud storage bucket.
0
votes
0answers
14 views

Data Aggregation Strategies: How to avoid duplicate values when using multiple app instances?

I am building a data aggregation environment on Kubernetes. In my use case I am aggregating blockchain history one block at a time incrementally. To speed things up, I am deploying multiple instances ...
0
votes
0answers
26 views

Problem with kong's keep alive (api gateway)

I have 5 k8s worker nodes that each of them run a kong instance. I also have 24 upstream servers. One month ago the number of my threads on the upstream servers increased dramatically, therefore, I ...
0
votes
2answers
41 views

Automate starting and stopping of multiple containers on single production server

I am doing a project for my university where I have the following requirements: I want to start and stop (docker) containers with different apps I have a singe (university) server to my disposal I ...
0
votes
0answers
29 views

Kubernetes & etcd Stability

I'm running into some stability problems with Kubernetes and etcd and I was hoping someone could give me some guidance. This isn't a new problem, but an ongoing one that was observed with current and ...
0
votes
1answer
17 views

Azure Kubernetes pod is inaccessible from another pod

Internally we have a Spark Executor and Spark Driver running in Kubernetes. When you run a Spark Job in Kubernetes, Spark will create 2 types of pods Spark Drivers and Spark Executors. The Spark ...