Top "Kubectl" questions

The Kubernetes command-line tool, kubectl, allows you to run commands against Kubernetes clusters.

Restart container within pod

I have a pod test-1495806908-xn5jn with 2 containers. I'd like to restart one of them called container-test. Is it …

kubernetes kubectl
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 …

kubernetes kubectl
kubectl apply vs kubectl create?

What I understood by the documentation is that: kubectl create = Creates a new k8s resource in the cluster kubectl …

kubernetes kubectl
Kubernetes Pod fails with CrashLoopBackOff

I 'm Following this guide in order to set up a pod using minikube and pull an image from a …

docker repository kubernetes kubectl
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.…

kubernetes kubectl
What is command to find detailed information about Kubernetes master(s) using kubectl?

Let say I want to find the kubelet and apiserver version of my k8s master(s), what's the best …

kubernetes kubectl
Execute bash command in pod with kubectl?

my question is simple. How to execute a bash command in the pod? I want to do everything with one …

kubernetes kubectl
kubectl logs - continuously

kubectl logs <pod-id> gets latest logs from my deployment - I am working on a bug and interested …

kubernetes google-kubernetes-engine kubectl
How to configure kubectl with cluster information from a .conf file?

I have an admin.conf file containing info about a cluster, so that the following command works fine: kubectl --kubeconfig ./…

kubernetes kubectl
How to pull environment variables with Helm charts

I have my deployment.yaml file within the templates directory of Helm charts with several environment variables for the container …

kubernetes kubectl kubernetes-helm