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
1 vote
3 answers
109 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 ...
user avatar
  • 111
0 votes
1 answer
141 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/...
user avatar
0 votes
1 answer
62 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&...
user avatar
1 vote
1 answer
276 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 ...
user avatar
  • 332
0 votes
1 answer
33 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&...
user avatar
  • 225
1 vote
1 answer
90 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 ...
user avatar
  • 141
1 vote
2 answers
748 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 ...
user avatar
0 votes
1 answer
65 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 ...
user avatar
  • 133
2 votes
4 answers
363 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 ...
user avatar
  • 332
0 votes
1 answer
84 views

Kubernetes deploy workflow

I have an application (Django web app alongside couple of microservices) and have done deployment previously via Ansible tasks. Playbook was invoked from Ansible Tower and essentially breaks down into ...
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
0 votes
2 answers
299 views

Kubernetes etcd bootstrapping - couldn't find local name <name> in the initial cluster configuration

I followed kelsey Hightower's setting up kubernetes the hard way tutorial kubernetes the hard way on AWS Stuck on bootstrapping etcd on the first control plane node. There are 2 lines in the error ...
user avatar
  • 13
0 votes
1 answer
2k views

helm upgrade not working

I was running the older 2.16.0 version of ChartMuseum Helm Chart. I am trying to update it to use newer 3.1.0. When I try to upgrade using helm upgrade <release> <name> -n <namespace>...
user avatar
  • 105
0 votes
1 answer
875 views

helm upgrade fail with error: UPGRADE FAILED: "chart-repository" has no deployed releases

I am trying to upgrade a chart but when I run upgrade command, upgrade fails with the following error. nit:~/copy> helm upgrade chart-repository chart-repository/ Error: UPGRADE FAILED: "chart-...
user avatar
  • 105
-2 votes
1 answer
23 views

How to read Kubernets secrets values

What could be the kubectl command to see k8s secret values I tried kubectl get secrets/<secrets-name> -n <namespace> It returns NAME TYPE DATA AGE secrets1 Opaque ...
user avatar
1 vote
2 answers
154 views

kops validate cluster fails with even after providing appropriate state and clustername

I am trying to run validate cluster command as per the documentation kops validate Strangely it fails with following error $ AWS_ACCESS_KEY_ID=<my_legit_key> AWS_SECRET_ACCESS_KEY=<...
user avatar
6 votes
1 answer
178 views

How would you build docker images in Kubernetes while distributing its layer caching among all pod builders at scale?

We are using Azure DevOps as our CICD platform. We have our own self hosted Linux agents which we integrated into our CICD Azure Kubernetes Cluster . We use these agents to build our Docker images ...
user avatar
  • 119
0 votes
1 answer
372 views

How to configure single nginx ingress with letsencrypt and multiple bitnami wordpress containers?

I'm using bitnami/wordpress helm chart to create many websites which should run on different domains. I'd like to auto secure them and use a single ingress to route traffic. I'm using this tutorial ...
user avatar
1 vote
2 answers
1k views

Enable ingress-nginx Prometheus monitoring without Helm

A few weeks ago, I installed ingress-nginx in my Kubernetes cluster. Now, I realize that was a mistake because that did not come with Prometheus monitoring enabled automatically, and even worse, it ...
user avatar
3 votes
1 answer
812 views

Use a Kustomize image transformation on an Argo CronWorkflow

I am developing an ETL pipeline using Argo Workflows, and in order to handle environment related configurations, I am using Kustomize. Here is the base/cronworkflow.yaml file apiVersion: argoproj.io/...
user avatar
  • 133
0 votes
1 answer
102 views

How can I deal with container "patching" in a strict release process?

I am building a new Container and Kubernetes system for my company. Overall it is going well, but container patching has me a bit confused. We follow a fairly strict release process. New versions ...
user avatar
  • 172
1 vote
1 answer
2k views

Nginx Ingress Controller - error creating inClusterConfig

What I'm trying to do I'm trying to get the Nginx controller up and running on my kubernetes cluster with the NLB version of the config files. The problem The ingress-nginx-admission-create and ...
user avatar
0 votes
1 answer
62 views

Scale up pods of k8s deployment across spot and dedicated instances

i need to deploy a k8s deployment to be stretched across two kinds of nodes, dedicated and spot nodes. The end-goal is to have deployment which has some pods on dedicated nodes, but when scaled uses ...
user avatar
1 vote
1 answer
84 views

unable to access cluster after installing flannel

I've got a cluster running with 1 master + 2 workers and using flannel as CNI. kubeadm init was called with apiserver address and 10.244.0.0 for flannel's and nodes are joined. kubeadm init --...
user avatar
1 vote
1 answer
72 views

How do I modify the environment variables of a Kubernetes cluster?

I created my cluster through kubeadm. Before the creation of the cluster I set an environment variable ~/.bashsrc. The variable I set is NO_PROXY. When the cluster is created this variable gets picked ...
user avatar
0 votes
1 answer
118 views

Liveness Probe through C# code giving error

I am trying to implement liveness probe through C# code (.Net core framework). I simply want to run a curl command inside container like this . Below is the code snippet using kubernetesClient: IList&...
user avatar
  • 105
0 votes
1 answer
55 views

How to setup custom authentication and authorization in Istio/K8?

As I am new to istio world. I am having difficulty understanding how that technology's auth system work. Let's say, I have a project that has 8 pods(services). I understand that authentication and ...
user avatar
1 vote
3 answers
1k views

How to resolve a problem "certificate signed by unknown authority" in GKE on pulling image (a private registry) when a pod is created?

I generated a CA certificate, then issued a certificate based on it for a private registry, that located in the same GKE cluster. Put the server certificates to the private registry and the CA ...
user avatar
1 vote
1 answer
102 views

How to connect two Kubernetes Jobs without using a Service?

I have a deployment that consists on one Job that contains two containers. Due to distribution and economical reasons, I want these two containers to be deployed independently. However, they are still ...
user avatar
1 vote
1 answer
301 views

OIDC token invalid when put into kubeconfig

I can connect to the Kubernetes API from a container running inside the cluster with an OIDC token like so: kubectl —token $token get pod I would now like to prepare a kubeconfig such that other ...
user avatar
  • 141
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
0 votes
1 answer
432 views

ansible playbook cannot apply, giving host unreachable error

I'm completely new to ansible and I'm having a hard time with it. I have an inventory.yml file which is as the following: EDIT: changed my inventory.yml now looks as follows inventory.yml: [master] ...
user avatar
-2 votes
2 answers
39 views

Code Changes for Implementing Kubernetes Probes

I want to implement Kubernetes Liveliness Probes in my .Net core application with C# language. I understood that first I need to define the liveliness probe in deployment.yaml file of my application. ...
user avatar
  • 105
1 vote
1 answer
365 views

Ansible - using facts from one host to perform actions on another host

In Ansible I'm trying to generate a variable from a task on one host and then use the variable to do something to another host. Specifically, I'm trying to create a Kubernetes cluster - On the control ...
user avatar
0 votes
1 answer
35 views

How to check application responding in Kubernetes

I am a newbie in k8s. I have a .net framework application written in C# running in K8s orchestration. I simply want to check in fixed interval (lets say in every 300sec) that my application which is ...
user avatar
  • 105
0 votes
1 answer
321 views

Getting error while trying to communicate with apiserver in kube-state-metrics pod

I am getting error: # kubectl logs kube-state-metrics-fdc49658-g98sl -n monitoring I0523 11:30:25.206556 1 main.go:86] Using default collectors I0523 11:30:25.206766 1 main.go:98] Using ...
user avatar
2 votes
1 answer
2k views

Why am I getting error trying to mount a directory onto a file?

I have this prometheus deployment manifest file: to create prometheus deployment --- apiVersion: apps/v1 kind: Deployment metadata: name: prometheus namespace: monitoring labels: app: ...
user avatar
0 votes
1 answer
164 views

Predictive autoscaling on K8s

I am learning about using Machine Learning for provisioning proactive resources on the Kubernetes and I have found some of the interesting articles about it on the internet(for instance for Thoth or ...
user avatar
  • 101
1 vote
2 answers
2k views

How to allow a non-root user to write to a mounted EFS in EKS

I am having trouble configuring a statically provisioned EFS such that multiple pods, which run as a non-root user, can read and write the file system. I am using the AWS EFS CSI Driver. My version ...
user avatar
  • 121
0 votes
1 answer
3k views

Kubernetes serve static content with ingress

I have a simple Django application and on a regular EC2 instance nginx is a reverse proxy serving static files and proxying requests to gunicorn/wsgi backend app. Should I have a separate deployment ...
user avatar
0 votes
1 answer
68 views

ingrex-nginx in kubernetes with express node.js does not return req.currentUser

This is currentUser middleware: export const currentUser = ( req: Request, res: Response, next: NextFunction ) => { if (!req.session?.jwt) { return next(); ...
user avatar
  • 101
0 votes
1 answer
44 views

How to ensure Nodes are killed when Job is finished using Cluster Autoscaler in Kubernates

I have large Kubernates jobs which take the whole resources of one node / droplet in Digitalocean (it's not running on AWS). Using resources in a deploy.yaml, the cluster autoscaler works to scale up, ...
user avatar
0 votes
1 answer
1k views

503 Service Temporarily Unavailable using Kubernetes

I am having some issue with creating ingress for a nginx service that I deployed in a kubernetes cluster. I am able to open the web page using port forwarding, so I think the service should work.The ...
user avatar
1 vote
1 answer
96 views

How to get traefik ingress to load balance across several ClusterIP services

I want to be able to load balance several nodes of a backend service represented by ClusterIP services using a traefik.containo.us/v1alpha1 ingress. I know that ClusterIP service can load balance ...
user avatar
  • 161
2 votes
1 answer
38 views

Best Kubernetes storage option

I know there are several options, I’ve heard everything from SSHFS, NFS, object storage all the way to storage OS, my issue is I need something fast and reliable to serve a media website built on ...
user avatar
  • 21
2 votes
1 answer
36 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 ...
user avatar
1 vote
1 answer
160 views

Where to install Prometheus for Kubernetes monitoring

I'm considering using Prometheus to monitor and analyze different metrics from my AWS EKS Kubernetes cluster running in Fargate, as it seems to be the standard tool during these times. However, ...
user avatar
0 votes
1 answer
68 views

when replicaset is 1 then what are 1/2 pods for prometheus server?

Using helm chart : helm install monitor prometheus-community/prometheus -n monitoring -f ./values.yaml I cannot get prometheus server to running. # kubectl get pods -owide -n monitoring NAME ...
user avatar
0 votes
1 answer
43 views

When do I run applications on a server in a pod and when to run them directly on the base operating system?

I am trying to get started in the DevOps Field by setting up a small server currently with Virtualbox, later on for a small team. For my basic setup I plan to use gitea as self-hosted git and Jenkins ...
user avatar
  • 101
4 votes
1 answer
1k views

ArgoCD Autosync based off of Docker Image `latest` Tag

Using ArgoCD, I'd like to have the App AutoSync Update/Reploy when the docker image is updated on a specific tag such as latest or stable. For example, if I have a deployment in my git repo like this: ...
user avatar
  • 161

1
3 4
5
6 7
14