k8s statuses in your inbox automatically and continuously
908
Monitor k8s cluster by executing kubectl commands
kubectl top nodesconfigure kubectl to connect to your k8s cluster
this is already ready in k8s containers in most cases
$ kubectl proxy --address="0.0.0.0" --accept-hosts '.*' --reject-methods=NONE
if you use docker for mac
KUBERNETES_SERVICE_PORT=8001
KUBERNETES_SERVICE_HOST=docker.for.mac.localhost
INDIVISUAL_COUNT_LIMIT=3 # default is 5 and -1 means no limit
Simply pass just RUNNING_INSIDE_K8S=true to run kubectl properly inside a k8s cluster
No need to provide kube related env inside k8s cluster to execute kubectl
you can debug this by entering the pod and run necessaray commands like below
kubectl get podkubectl get nodekubectl get hpakubectl top nodekubectl top podkubectl cluster-infoif any of commands above doesn't work, that's probably because your service account tied to your deployment has not enough permissions; in that case you might want to look at https://kubernetes.io/docs/reference/access-authn-authz/rbac/
Content type
Image
Digest
Size
316 MB
Last updated
almost 8 years ago
docker pull rainist/kubeletter