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

Kubernetes service external ip pending

I am trying to deploy nginx on kubernetes, kubernetes version is v1.5.2, I have deployed nginx with 3 replica, YAML file is below, apiVersion: extensions/v1beta1 kind: Deployment metadata: name: deployment-example spec: replicas: 3 revisionHistoryLimit: 2 template: metadata: labels: app: nginx spec: containers: – name: nginx image: nginx:1.10 ports: – containerPort: 80 and now I want … Read more

How do I force Kubernetes to re-pull an image?

I have the following replication controller in Kubernetes on GKE: apiVersion: v1 kind: ReplicationController metadata: name: myapp labels: app: myapp spec: replicas: 2 selector: app: myapp deployment: initial template: metadata: labels: app: myapp deployment: initial spec: containers: – name: myapp image: myregistry.com/myapp:5c3dda6b ports: – containerPort: 80 imagePullPolicy: Always imagePullSecrets: – name: myregistry.com-registry-key Now, if I … 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