Posts
read more
Kubernetes Cheatsheet
The get parameter is a powerful way of discovering your kubenetes resources. You can use it to query:
- namespace
- pod
- node
- deployment
- service
- replicasets
$ kubectl get nodes$ kubectl get ns # ns is an abreviation for namespace$ kubectl get pods -n kube-system
The create command can do just that for:
- service
- cronjob
- deployment
- job
- namespace (or ns)
$ kubectl create ns hello-world$ kubectl create cronjob my-cronjob --image=alpine --schedule="*/15 * * * *" -- echo "hi there"