Multiple environments (Staging, QA, production, etc) with Kubernetes

What is considered a good practice with K8S for managing multiple environments (QA, Staging, Production, Dev, etc)? As an example, say that a team is working on a product which requires deploying a few APIs, along with a front-end application. Usually, this will require at least 2 environments: Staging: For iterations/testing and validation before releasing … Read more

Restart pods when configmap updates in Kubernetes?

How do I automatically restart Kubernetes pods and pods associated with deployments when their configmap is changed/updated? I know there’s been talk about the ability to automatically restart pods when a config maps changes but to my knowledge this is not yet available in Kubernetes 1.2. So what (I think) I’d like to do is … Read more

How can I debug “ImagePullBackOff”?

All of a sudden, I cannot deploy some images which could be deployed before. I got the following pod status: [root@webdev2 origin]# oc get pods NAME READY STATUS RESTARTS AGE arix-3-yjq9w 0/1 ImagePullBackOff 0 10m docker-registry-2-vqstm 1/1 Running 0 2d router-1-kvjxq 1/1 Running 0 2d The application just won’t start. The pod is not trying … Read more

How to switch kubectl clusters between gcloud and minikube

I have Kubernetes working well in two different environments, namely in my local environment (MacBook running minikube) and as well as on Google’s Container Engine (GCE, Kubernetes on Google Cloud). I use the MacBook/local environment to develop and test my YAML files and then, upon completion, try them on GCE. Currently I need to work … Read more

Kubernetes pod gets recreated when deleted

I have started pods with command $ kubectl run busybox \ –image=busybox \ –restart=Never \ –tty \ -i \ –generator=run-pod/v1 Something went wrong, and now I can’t delete this Pod. I tried using the methods described below but the Pod keeps being recreated. $ kubectl delete pods busybox-na3tm pod “busybox-na3tm” deleted $ kubectl get pods … Read more

What is the difference between a pod and a deployment?

I have been creating pods with type:deployment but I see that some documentation uses type:pod, more specifically the documentation for multi-container pods: apiVersion: v1 kind: Pod metadata: name: “” labels: name: “” namespace: “” annotations: [] generateName: “” spec: ? “// See ‘The spec schema’ for details.” : ~ But to create pods I can … Read more