Questions tagged [kubernetes]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

Creating empty ConfigMaps but not overwriting existing ones

I frequently have this problem when doing Kubernetes or OpenShift deployments (with or without helm, but in this question I'd like to focus on a solution involving helm): Most of our microservices ...
0
votes
0answers
16 views

GKE - Persistent Volume not able to mount to the if cluster have less than 4 nodes

I have a simple storage setup: [ GKE [ NFS Server -> PV -> PVC -> Deployment (Min 2 pods-HPA) ] ] GKE version: 1.19.12-gke.2101 The GKE cluster has 4 nodes before and I resize down to 3 nodes ...
0
votes
0answers
8 views

Kibana kubernetes all containers dashboard

How to create dashboard which will show all running containers in a namespace along with how many different channel (header in route/rest api calls) calling the routes of that container?
2
votes
1answer
22 views

How to get public key from cert-manager?

I need to get a public key from cert manager from bash. How to do it properly? I can see the private key in kubernetes secrets; how to get public key that can be safely shared?
0
votes
0answers
16 views

K8s hosted services external access using dns name

Here is my setup : I have multiple influxdb running inside k8s (deployment), which are currently exposed via a ingress (nginx). My k8s is on-prem. Here is what I'm trying to achieve : I'd like to ...
0
votes
1answer
14 views

Scaling a stateful service which has primary/secondary architecture by setting a property

I have a java web stateful service which connects to mongodb and currently it is being deployed as a jar directly on the VM. This service has a property in properties file i.e. primary. If we set ...
0
votes
1answer
24 views

connection refused from webserver in container

I've got a simple python http server running on port 8080. class Handler(BaseHTTPRequestHandler): def do_GET(self): print(self.path) self.wfile.write(b'\n') return class ...
1
vote
2answers
45 views

k8s pods not load balanced

I've got a service running in an on premise k8s environment. It is basically an nginx image, and a call takes like 10 seconds. replicas is two and of course two pods are running. But almost if not ...
1
vote
0answers
14 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 ...
2
votes
1answer
24 views

HAProxy Not Working with Kubernetes NodePort for Backend (Bare Metal)

I have a host running HAProxy already. It's been up and running since before I did anything with Kubernetes. It works flawlessly as a reverse proxy and SSL terminator for various web things in ...
0
votes
1answer
21 views

Read disk of distroless container in Kubernetes for debugging

I am using a helm chart, which deploys containers based on Distroless. This means, I cannot open a shell on these containers, like I normally would for debugging, since Distroless containers seem to ...
0
votes
0answers
9 views

Why does kube-proxy authenticate to the kube-api-server using service account

I am digging down into the Kubernetes PKI. I noticed that mostly all the control-plane components, inclusing kubelet authenticate to the api-server using TLS certificates. Only kube-proxy & ...
0
votes
1answer
50 views

How to assign static IP to Kubernetes cluster?

Is there any way to assign static IP to Kubernetes cluster, in which any user can able to access its application over static IP only. for an example, I have set up a cluster over 192.168.0.131 (master)...
5
votes
3answers
678 views

Is docker absolutely necessary to deploy applications with Linode's Kubernetes?

Is learning and using docker required to deploy applications with Linode's Kubernetes Engine? (LKE) As fun as docker sounds, I'd like to avoid having to learn that additional complexity if possible. I ...
0
votes
0answers
26 views

curl command is getting delayed after node reboot in k8s cluster

I have deployed a private docker registry from here :- https://git.app.uib.no/caleno/helm-charts/tree/84725d0e7921fb75860199fc8f52f2ee58e3d0a4/stable/docker-registry with 2 replica sets. Everything ...
-1
votes
2answers
35 views

K8s with docker hub

I have configured jenkins with github.com. Jenkins notices if commit occurs and then jenkins make the docker image and upload the new image to docker hub. How can I make k8s listens to docker hub i.e. ...
0
votes
1answer
31 views

How to monitor ELK using metricbeat on kubernetes (v8 compatible and simple solution)

For probably more than a year there's been a deprecation warning on xpack monitoring in elasticsearch, logstash, kibana etc. saying the built-in monitoring is going to disappear. Since I don't like ...
1
vote
1answer
29 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 ...
0
votes
1answer
13 views

Configuration for Cloudflare endpoint using SSL to Kubernetes (load balancer & flask service)

Here is a summary of what I'm trying to do: I can get my flask app to respond without HTTPS/SSL. But am receiving a '503 Service Unavailable' when I am trying to use SSL. My understanding is since ...
1
vote
1answer
36 views

How prometheus scrapes individual pods actuator endpoints when they are exposed via a single service in kubernetes?

I have created a deployment with 2 replica sets. But the Service exposes the 8080 and the management endpoint using NodePort. How should I set up the pods deployment if Prometheus deployment should ...
0
votes
0answers
62 views

nginx ingress same path different ports + proxy_pass

I'm still new to k8s, and currently discovering ingress basics. We have multiple influxdb instances running which I'd like to give access using a fancy URL, such as : influxdb.dev.toto/staging, ...
0
votes
0answers
18 views

Does Metrics Server kill pods that use too much memory?

I have a pod (in my on premises Kubernetes cluster) that I setup to eventually try to exceed its memory limit. When it did that, my pod started throwing an error saying it was out of memory. It ...
1
vote
1answer
51 views

Automating deployment of microservices from start to finish

I'm currently part of a team that trains multiple pods of new hires. Each pod creates a client simulated project that involves the following steps: Creating kubernetes namespaces for each pod for ...
1
vote
2answers
43 views

Dynamic environments per client, which is the best approach, if any?

I don't know how to explain this problem better, but I'll try to explain it clearly: Where I work our customers are companies, with lots of users We offer a SaaS solution for them to manage stuff For ...
0
votes
0answers
13 views

Curious about which kubernetes policy management is better (pros and cons)

I have a cluster in Azure Kubernetes services. I was looking various policy management in kubernetes want to know the pros and cons would be really helpful. Here are the options I came to know Open ...
0
votes
1answer
31 views

How to setup basic auth for Prometheus deployed on K8s cluster using yamls?

How to setup basic auth for Prometheus deployed on K8s cluster using yamls?? I was able to achieve this easily when Prometheus was deployed on a host locally using tar file. But when it is deployed as ...
0
votes
0answers
13 views

Gitlab review k8s role with postgres-operator

I want to integrate review enironments of kubernetes cluster and crunchy postgres-operator. I have integrated group k8s cluster with enabled “Namespace per environment” option. My review deploy ...
2
votes
1answer
23 views

mounting overlayfs within kubernetes POD - "cannot mount overlay read-only"

I try to "manually" mount an overlayfs within a Kubernetes POD, to create a copy-on-write layer on top of a shared persistent volume. (For running a read-only postgres - postgres cannot run ...
1
vote
1answer
28 views

How to do docker build image from dockerfile on Kubernetes 1.20

Kubernetes 1.20 moved from docker to CRI-O as container runtime. I have a scenario where my Jenkins run on kubernetes and does docker build my dockerfile .But the build breaks as docker daemon is not ...
0
votes
0answers
10 views

How to route traffic from vps to kubernetes load balancer

I'm moving my project from docker compose setup to kubernetes setup. I've read a lot and view some tutorials but I'm stuck when it comes to sharing load balancer/ingress to the outside world. I always ...
0
votes
0answers
6 views

Spruce: How to grab a specific value from a different YAML file?

Spruce, the yaml templating engine has the 'grab' operator however every example I've seen references a local path: cluster: name: cluster1 client: connect_to: (( grab cluster.name )) ...
1
vote
1answer
20 views

Installing NVIDIA driver on EKS nodes

I have a EKS cluster that has two node pools. One CPU general compute, the other one has GPU support (g4dn). I want to install NVIDIA driver on to the GPU node group. The best I can do right now is to ...
1
vote
1answer
80 views

Minikube will not start again after a stop

Running gentoo linux... I am new to kubernetes and learning it on my dev cloud. I am able to start minikube with no issues (other than the second node is missing...not sure why). Then I stop minikube. ...
1
vote
0answers
44 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 ...
0
votes
0answers
22 views

Kubernetes Service Templates

Are there any common practices around creating a Service "template"? We are looking into either having a service file (yaml) with tokens in it that are replaced with actual values by a ...
0
votes
0answers
13 views

Tweak traffic volume on a single pod of rollout

I have two separate applications (app1, app2) running, configured on different rollout. There are multiple pods running under both rollout. App1 sends traffic to App2 on it's local endpoint (http://...
1
vote
1answer
24 views

Autoscaling Postgres Database using Kubernetes

Is it possible to autoscale a Postgres Database using Kubernetes ? I usually run a Docker container with very specific settings to install a postgres database for my application. Does using Kubernetes ...
0
votes
0answers
11 views

EKS multitenant SFTP (atmos) to EFS and S3FS sync to S3

I need to create SFTP solution within EKS 1.20.4 where I use atmos SFTP helm chart for SFTP for different tenants, then mounting the user paths to EFS. This is done already, persistence is ok, I am ...
0
votes
0answers
20 views

CI upgrade vs new secnario verfication

we are creating a new CI system for our k8s services, the services (most of them are API's )are deployed to k8s and on each PR we are trigger our CI process Currently we thought about 2 scenarios ...
1
vote
2answers
69 views

Best Practice for Container Image Versioning

I'm looking for some guidance on best practices for container image versioning and despite reading a number of the best practice guides they leave some ambiguity. I understand that most container ...
0
votes
0answers
9 views

Is there an alternative to minikube on AWS Workspaces (unable to install Minikube on AWS Workspaces)?

I learnt from my team that it is not possible to install Minikube in AWS Workspaces. I was wondering - is there another alternative tool to Minikube which can we installed on AWS Workspaces so that we ...
1
vote
3answers
83 views

Best Practice for Kubernetes Development Environment

When using kubernetes with minkube locally, what is best practice for a development environment? When using docker, in development I have mounted a volume with the source code, so I can modify code ...
0
votes
1answer
40 views

Kubernetes pods scaling doesnt increase throughput

I have a simple Django web application running on AWS EC2 instance (2 vCPU, 4Gi). For that type of deployment I have a performance (measured with Hey) $ hey -t 30 -z 1m https://mydomain.com/my/...
0
votes
1answer
30 views

Change kubernetes resource requests after pod/job has started

I'd like to change my pod's CPU request value after a pod has started. Is this possible? In our shared kubernetes system there is a requirement that our actual resource usage be "reasonably close&...
1
vote
1answer
54 views

how to change a rancher UI installed prometheus server config

I am learning rancher (still) and after deploying the monitoring chart (prom, grafana etc) i need to add more targets to the prometheus config (such as other bare-metal server and some QEMU too), I ...
0
votes
1answer
20 views

EKS NodeAffinity for Services

https://www.eksworkshop.com/beginner/140_assigning_pods/affinity/ Links like above usually show node affinity for "kind: Pod". Isn't it possible to use node affinity for "kind: Service&...
1
vote
1answer
38 views

Surprising restarts of Kubernetes pods despite restartPolicy=Never

I have a cronjob with cronjob.spec.jobTemplate.spec.template.spec.restartPolicy=Never. And I am using kubectl create job --from=cronjob/my_cronjob my_test for manually starting an instance outside the ...
1
vote
1answer
59 views

SSL issue while reaching kubernetes dashboard

I'm configuring a kubernetes cluster (using microk8s) and cert-manager. Certificates work fine to traefik dashboard and to other sites but I have an issue with kubernates dashboard as it's already ...
0
votes
1answer
39 views

Create and delete ingress for temporary containers

(I have just stared learning kubernetes, so apologies if my question sounds silly) In my cluster I am running some pods that execute some batch operations and expose a webUI to keep track of the ...
2
votes
4answers
61 views

How to run a daemon AND another command in a kubernetes pod

I am trying to setup an automated influxdb instance using kubernetes, nothing too exotic I thought, but : I need to run the "influx setup ...." command for the initial setup, and this needs ...

1
2 3 4 5
11