Category "kubernetes"

How to get number of pods (available or terminating) in kubernetes?

I need to find the number of pods currently NOT terminated (can be available, terminating, etc.) in order to prevent deployment from starting if there are still

Will BackgroundService play nicely on a Kubernetes cluster

I have a kubernetes cluster into which I'm intending to implement a service in a pod - the service will accept a grpc request, start a long running process but

Kubernetes Dashboard Installation giving x509: certificate signed by unknown authority error

Trying to install kubernetes dashboard in Ubuntu 16.04 resulting in x509: certificate signed by unknown authority error. Kubernetes cluster with a single node

how to pass environment variable in kubectl deployment?

I am setting up the kubernetes setup for django webapp. I am passing environment variable while creating deployment as below kubectl create -f deployment.yml

How to pass kubernetes namespaces dynamically to k8s cronjob

I have a cronjob that cleans some job since my kubernetes is on older version so cannot use ttlafterfinished. How can I fetch the namespaces that have this job

Required value: must specify a volume type when statically provisioning PV

Trying to statically provision a PV with GCP SSD storage. Errors out with the following message: The PersistentVolume "monitoring" is invalid: spec: Required v

How to create a tcp service in traefik 2.2.1

I am trying to create a tcp service like this in kubernetes cluster followed by official docs: apiVersion: traefik.containo.us/v1alpha1 kind: TraefikService met

automation alertmanager receivers

Good afternoon, maybe someone came across the automation of filling in receivers in alertmanager from custom pod annotations? I mean, i want alermanager take re

automation alertmanager receivers

Good afternoon, maybe someone came across the automation of filling in receivers in alertmanager from custom pod annotations? I mean, i want alermanager take re

Jaeger with spring boot is not working when both are deployed at kubernetes

I am trying to trace logs of my spring-boot-application with jaeger . Both spring-boot microservice and jaeger are running on kubernetes ( local set-up on docke

Jaeger with spring boot is not working when both are deployed at kubernetes

I am trying to trace logs of my spring-boot-application with jaeger . Both spring-boot microservice and jaeger are running on kubernetes ( local set-up on docke

How to switch namespace in kubernetes

Say, I have two namespaces k8s-app1 and k8s-app2 I can list all pods from specific namespace using the below command kubectl get pods -n <namespace> W

Kubernetes mountPropagation clarifications

I have a docker image A that contains a folder I need to share with another container B in the same K8s pod. At first I decided to use a shared volume (emptyDir

Kubernetes Operator in Airflow is not sharing the load across nodes. Why?

I have airflow 1.10.5 on a Kubernetes cluster. The DAGs are written with Kubernetes operator so that they can spin pods for each task inside the DAG on executio

Kubectl create multiline secret

I'm trying to put a Service Account into a secret - I did it previously a year ago and it works but now - no matter how I approach it, the application doesn't s

Local persistent Volume 1 node(s) didn't find available persistent volumes to bind

I'm getting started with persistent volumes and k8s. Im trying to use a local folder on my RH7 box w minikube installed. Im getting the error: 0/1 nodes are av

Helm template arithmetic division

Anyone tried to make an arithmetic division in Helm? According to sprig/Math Functions, the following should work: {{ .Values.myvalue | div 2 }} However, t

WaitForFirstConsumer PersistentVolumeClaim waiting for first consumer to be created before binding

I setup a new k8s in a single node, which is tainted. But the PersistentVolume can not be created successfully, when I am trying to create a simple PostgreSQL.

Kafka infinite loop of error "SyncGroup failed: The group began another rebalance. Need to re-join the group. Sent generation was Generation"

I'm having Kafka Consumer group of applications (10 instances) written in Java which uses Spring Cloud Stream. Consumer application is deployed in AWS Kubernete

Spark executor metrics don't reach prometheus sink

Circumstances: I have read through these:https://spark.apache.org/docs/3.1.2/monitoring.html https://dzlab.github.io/bigdata/2020/07/03/spark3-monitoring-1/ ver