Top "Kubectl" questions

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

How to use "kubectl" command instead of "sudo kubectl"

For every command with kubectl I need to use sudo kubectl. I understand the security perspective but I am working …

kubernetes kubectl minikube
How to stop kubectl proxy

I executed below command: kubectl proxy --port=8081 & kubectl proxy --port=8082 & and of course I have 2 accessible endpoints: curl …

kubernetes kubectl
How to update a set of pods running in kubernetes?

What is the preferred way of updating a set of pods (e.g. after making code changes & pushing underlying …

kubernetes kubectl
kubectl: Connection to server was refused

When I run kubectl run ... or any command I get an error message saying The connection to the server localhost:8080 …

docker containers yaml kubernetes kubectl
delete kubernetes cluster on docker-for-desktop OSX

What is the equivalent command for minikube delete in docker-for-desktop on OSX As I understand, minikube creates a VM to …

docker kubernetes kubectl minikube
kubeadm init shows kubelet isn't running or healthy

I am trying to run Kubernetes and trying to use sudo kubeadm init. Swap is off as recommended by official …

kubernetes kubectl kubeadm
Create kubernetes pod with volume using kubectl run

I understand that you can create a pod with Deployment/Job using kubectl run. But is it possible to create …

kubernetes kubectl
How to see logs of terminated pods

I am running selenium hubs and my pods are getting terminated frequently. I would like to look at the logs …

kubernetes kubectl
Getting "ErrImageNeverPull" in pods

Am using minikube to test out the deployment and was going through thislink And my manifest file for deployment is …

docker kubernetes kubectl minikube dockerhub
Kubernetes Port Forwarding - Connection refused

I am getting the following error when forwarding port. Can anyone help? mjafary$ sudo kubectl port-forward sa-frontend 88:82 Forwarding from 127.0.0.1:88 -&…

kubernetes portforwarding kubectl