Top "Kubectl" questions

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

kubectl error: You must be logged in to the server (Unauthorized)

Today I met a strange issue about my Windows kubectl client suddenly raise authorization issue in connecting ICp. I was …

kubernetes kubectl ibm-cloud-private
How to save content of a configmap to a file with kubectl and jsonpath?

I'm trying to save the contents of a configmap to a file on my local hard drive. Kubectl supports selecting …

kubernetes jsonpath kubectl configmap
Kubernetes custom-columns select element from array

I try to write a template, to list the names of my services as well as their external endpoints + ports. …

kubernetes kubectl
Where are Kubernetes' pods logfiles?

When I run $ kubectl logs <container> I get the logs of my pods. But where are the files …

logging kubernetes kubectl kubelet
How to create a kubectl config file for serviceaccount

I have a kubernetes cluster on Azure and I created 2 namespaces and 2 service accounts because I have two teams deploying …

azure kubernetes kubectl
What kubectl command can I use to get events sorted by specific fields and print only specific details of events?

I need to print only specific fields of Kubernetes Events, sorted by a specific field. This is to help me …

kubernetes kubectl go-templates
kubectl ls -- or some other way to see into a POD

I'm using kubectl cp to copy a jar file from my local file system into a the home directory of …

kubernetes kubectl minikube
Kubernetes 1.11 could not find heapster for metrics

I'm using Kubernetes 1.11 on Digital Ocean, when I try to use kubectl top node I get this error: Error from …

kubernetes metrics kubectl sys sysadmin
coredns pods have CrashLoopBackOff or Error state

I'm trying to set up the Kubernetes master, by issuing: kubeadm init --pod-network-cidr=192.168.0.0/16 followed by: Installing a pod network add-on (…

docker kubernetes kubectl kubeadm coredns
kubectl YAML config file equivalent of "kubectl run ... -i --tty ..."

I've been using "kubectl run" with assorted flags to run Jobs interactively, but have recently outgrown what I can do …

yaml kubernetes interactive kubectl