Category "kubernetes"

Suddenly getting "Unable to connect to the server: net/http: TLS handshake timeout" from kubectl

My vanilla kubernetes cluster running on 'Docker for Mac' was running fine without any real load. Now, I deployed a few services and istio. Now, I am getting th

Pods are not rescheduling to failure node ,when node come alive

My situation is ,I have 5 nodes having K8 cluster .Initially pods are distributed across the 5 node. Sometime we need to restart particular node server. Then th

Prometheus many-to-many problem for kube cronjobs

Hy there, I'm trying to configure Kubernetes Cronjobs monitoring & alerts with Prometheus. I found this helpful guide But I always get a many-to-many matc

error: resource mapping not found || make sure CRDs are installed first

error: resource mapping not found for name: "ingress-srv" namespace: "" from "ingress-srv.yaml": no matches for kind "Ingress" in version "networking.k8s.io/v1

docker desktop kubernetes can't pull from private registry

I'm running docker desktop with the built-in kubernetes cluster. I've got an image in an on-prem gitlab instance. I create a project API key and on the local ma

Inject cronjob once namespace created

This mainly for GKE cluster with preemptible nodes. Google Cloud would shutdown any node without warning, which leaves lots of pods with Terminated and / or Nod

k3d tries to pull Docker image instead of using the local one

Just study the core of K8S on local machine (Linux Mint 20.2). Created one node cluster locally with: k3d cluster create mycluster And now I want to run sprin

how to list full url about helm search url in v3.2.1

When I use this command to search hub's avaliable chart: helm search hub kubernetes-dashboard it only show part of the url like this: [miaoyou@MeowK8SMaster1 ~

Security group inbound rules wiped out and added 0.0.0.0/0 by eksclusterrole automatically

I have deployed AWS EKS 2 node cluster(Version 1.18). It contains some ELBs, microservices and a UI hosted on Kubernetes. ELB's have their own security group. I

Unable to pull docker image from local registry for Kubernetes deployment

I've a K8s cluster on Linode and another VM for operating. I've installed Docker & K8s on operating VM to build images and do deployment on cluster. Note: I

How can I mount Pv on one node and use that same PV for pods in another anode

I have attached an EBS volume to one of the nodes in my cluster and I want that whatever pod are coming up, irrespective of the nodes they are scheduled onto, s

Rendered manifests contain a resource that already exists. Could not get information about the resource: resource name may not be empty

I Installed Helm 3 on my windows laptop where i have kube config configured as well. But when i try to install my local helm chart, i;m getting the below error.

GitLab CI in GKE private cluster can't connect to master

So far we have been using GKE public cluster for all our workloads. We have created a second, private cluster (still GKE) with improved security and availabilit

How To Reduce Prometheus(Federation) Scrape Duration

I have a Prometheus federation with 2 prometheus' servers - one per Kubernetes cluster and a central to rule them all. Over time the scrape durations increase.

Kubernetes AntiAffinity - limit max number of same pods per node

I have a kubernetes cluster with 4 nodes. I have a pod deployed as a deployment, with 8 replicas. When I deployed this, kubernetes sometimes schedule 4 pods in

How to make redis pod auto-delete when list is empty

I want to deploy redis pod which loads a list. Then I will have kubernetes job which will execute bash script with variable taken from that list in redis. How c

Docker in Docker configuration

I am having Jenkins running in K8s and now i am trying to run: docker build as one of the step in Jenkins build. Since Jenkins is running inside Docker, i came

Python Kubernetes Client: equivalent of kubectl get [custom-resource]

With kubectl I can execute the following command: kubectl get serviceentries Then I receive some information back. But serviceentries is a custom resource.

How to pass dynamic arguments to a helm chart that runs a job

I'd like to allow our developers to pass dynamic arguments to a helm template (Kubernetes job). Currently my arguments in the helm template are somewhat static

How to disable the use of a default service account by a statefulset/deployments in kubernetes

I am setting up a namespace for my application that has statefulsets, deployments, and secrets into that namespace. Using RBAC, I am defining specific roles and