Top "Kubectl" questions

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

Kubectl always returns a error: yaml: mapping values are not allowed in this context

Kubectl command alway returns this error yaml: line 2: mapping values are not allowed in this context. Even when i call …

yaml kubernetes kubectl
no endpoints available for service \"kubernetes-dashboard\"

I'm trying to follow GitHub - kubernetes/dashboard: General-purpose web UI for Kubernetes clusters. deploy/access: # export KUBECONFIG=/etc/kubernetes/…

kubernetes kubectl
kubectl behind a proxy

I have installed a local Kubernetes cluster using minikube following the instructions here. I'm under a corporate proxy. Therefore I …

proxy kubernetes kubectl minikube
Create user in Kubernetes for kubectl

I need to create users to assign them permissions with RBAC, I create them as follows: echo -n "lucia" | base64 …

json kubernetes kubectl endpoint rbac
How to format the output of kubectl describe to JSON

kubectl get command has this flag -o to format the output. Is there a similar way to format the output …

kubernetes output-formatting kubectl
Update kubernetes secrets doesn't update running container env vars

Currenly when updating a kubernetes secrets file, in order to apply the changes, I need to run kubectl apply -f …

kubernetes kubectl
Pod is in pending stage ( Error : FailedScheduling : nodes didn't match node selector )

I have a problem with one of the pods. It says that it is in a pending state. If I …

kubernetes kubernetes-helm kubectl helmfile
Tell when Job is Complete

I'm looking for a way to tell (from within a script) when a Kubernetes Job has completed. I want to …

kubernetes kubectl kubernetes-jobs
Get current image of kubernetes deployment

How can I use kubectl or the API to retrieve the current image for containers in a pod or deployment? …

kubernetes kubectl
Finding the name of a new pod with kubectl

I am new to k8s and I am running into a little problem here. Here's the context: I need …

kubectl