Category "kubernetes"

Clean up "Replica Sets" when updating deployments?

Every time a deployment gets updated, a new replica set is added to a long list. Should the old rs be cleaned?

How do I update a Kubernetes autoscaler?

I have created a Kubernetes autoscaler, but I need to change its parameters. How do I update it? I've tried the following, but it fails: ✗ kubectl auto

Error from server (NotFound): pods "$(kubectl" not found

In the minikube hyper-v machine I did deployment of sawtooth-0, using sawtooth config file. Now when I am checking running pods it seems to have some default o

Istio + minikube + Nginx (React). Cannot get access from browser nor CURL

When I deploy without ingress-gateway I can get access via port-forwarding directly to LoadBalancer of application in the browser. But through ingress-gateway i

How to bind roles with service accounts - Kubernetes

I know there are a lot of similar questions but none of them has a solution as far as I have browsed. Coming to the issue, I have created a service account (usi

did you specify the right host or port? error on Kubernetes

I have followed the helloword tutorial on http://kubernetes.io/docs/hellonode/. When I run: kubectl run hello-node --image=gcr.io/PROJECT_ID/hello-node:v1 --por

k8s how to exec to distroless container

I want to delete a specific file from a cronJob to the following container, the problem is that when I run exec I got error, how can I exec to distroless contai

Argocd getting started guide getting FATA[0000] configmap "argocd-cm" not found error

I just tried to go over the getting started guide of Argocd found here https://argo-cd.readthedocs.io/en/stable/getting_started/. I did steps 1 and 2 and then r

How to implement Auto scale on Memory based metric in EKS cluster

I have a EKS cluster with min 3 and max 6 nodes, Created auto scaling group for this setup, How can i implement auto scale of nodes when spike up/down on Memory

Prometheus scrape config for multiple metric endpoints per pod

We have a Kubernetes Pod which provides multiple metric endpoints (:3093/metrics and :9113/metrics), but it also has an port which doesn't provide any metric (:

NoExecuteTaintManager falsely deleting Pod?

I am receiving NoExecuteTaintManager events that are deleting my pod but I can't figure out why. The node is healthy and the Pod has the appropriate tolerations

How can I migrate an ingress from an helm chart to terraform without deleting the resource during deployment

I have a custom application helm chart with an ingress object which is deployed in production. Now I need to migrate the ingress source code object from the hel

How to reference a value defined in a template in a sub-chart in helm for kubernetes?

I'm starting to write helm charts for our services. There are two things I'm not sure how they are supposed to work or what to do with them. First: the release

Access SQL Server database from Kubernetes Pod

My deployed Spring boot application to trying to connect to an external SQL Server database from Kubernetes Pod. But every time it fails with error Failed

Curl cant resolve host with kubernetes dns

Hello I have a problem in kubernetes. When I do a nslookup from a pod I get correct ip: ~ kubectl -n exampleNamespace exec -it pod/curl -- nslookup exampleServi

How do I get logs from all pods of a Kubernetes replication controller?

Running kubectl logs shows me the stderr/stdout of one Kubernetes container. How can I get the aggregated stderr/stdout of a set of pods, preferably those cr

How to pass command and argument to a container in deployment file of kubernetes

I have to write a deployment file for my application which takes run time commands and arguments at runtime. e.g. ./foo bar -a=A -b=B This is my deployment file

How can I upgrade the AKS cluster using terraform without downtime

I want to upgrade my AKS cluster using terraform without or with minimal downtime. What happens to the workloads during the cluster upgrade. Can i do the AKS cl

Kube-apiserver complains about remote error bad certificate

I reinstalled some nodes and a master. Now on the master I am getting: Sep 15 04:53:58 master kube-apiserver[803]: I0915 04:53:58.413581 803 logs.go:41] h

virtctl works when executed via command line but not from php exec()

I am trying to run kubectl virt commands to manage my virtual machine via PHP. First, I log in to my server with phpseclib with the following code: $ssh = new S