$ kubectl cluster-info
$ kubectl get nodes
$ kubectl get pods --all-namespaces
$ kubectl get services --all-namespaces
$ kubectl get deployments --all-namespaces
$ kubectl get configmaps --all-namespaces
$ kubectl get secrets --all-namespaces
$ kubectl get namespaces
$ kubectl get pods
$ kubectl describe pod <pod_name>
$ kubectl logs <pod_name>
$ kubectl exec -it <pod_name> -- /bin/bash
$ kubectl port-forward <pod_name> <local_port>:<pod_port>
$ kubectl delete pod <pod_name>
$ kubectl scale deployment <deployment_name> --replicas=<replica_count>
$ kubectl rollout restart deployment <deployment_name>
$ kubectl get services
$ kubectl describe service <service_name>
$ kubectl expose deployment <deployment_name> --type=NodePort --port=<port>
$ kubectl delete service <service_name>
$ kubectl get configmaps
$ kubectl describe configmap <configmap_name>
$ kubectl get secrets
$ kubectl describe secret <secret_name>
$ kubectl get namespaces
$ kubectl create namespace <namespace_name>
$ kubectl delete namespace <namespace_name>
$ kubectl get deployments
$ kubectl describe deployment <deployment_name>
$ kubectl scale deployment <deployment_name> --replicas=<replica_count>
$ kubectl rollout status deployment <deployment_name>
$ kubectl rollout history deployment <deployment_name>
$ kubectl get ingresses
$ kubectl describe ingress <ingress_name>
$ kubectl apply -f ingress.yaml
$ kubectl get networkpolicies
$ kubectl describe networkpolicy <networkpolicy_name>
$ kubectl get pv
$ kubectl describe pv <pv_name>
$ kubectl get pvc
$ kubectl describe pvc <pvc_name>
$ kubectl get storageclasses
$ kubectl describe storageclass <storageclass_name>
$ kubectl get statefulsets
$ kubectl describe statefulset <statefulset_name>
$ kubectl get roles
$ kubectl describe role <role_name>
$ kubectl get rolebindings
$ kubectl describe rolebinding <rolebinding_name>
$ kubectl get serviceaccounts
$ kubectl describe serviceaccount <serviceaccount_name>
$ kubectl get secrets --namespace=<namespace>
$ kubectl describe secret <secret_name> --namespace=<namespace>
$ kubectl get customresourcedefinitions
$ kubectl describe customresourcedefinition <crd_name>
$ kubectl get customresources
$ kubectl describe customresource <cr_name>
$ helm list
$ helm install <release_name> <chart>
$ helm upgrade <release_name> <chart>
$ helm rollback <release_name> <revision>
$ helm uninstall <release_name>
$ kubectl autoscale deployment <deployment_name> --min=<min_replicas> --max=<max_replicas> --cpu-percent=<cpu_percentage>
$ kubectl get hpa
$ kubectl describe hpa <hpa_name>
$ kubectl delete hpa <hpa_name>
$ kubectl logs <pod_name> -c <container_name>
$ kubectl top nodes
$ kubectl top pods
$ kubectl top deployments
$ kubectl top hpa
$ kubectl apply -f prometheus.yaml
$ kubectl get prometheus
$ kubectl describe prometheus <prometheus_name>
$ kubectl get alertmanagers
$ kubectl describe alertmanager <alertmanager_name>
$ kubectl get roles --all-namespaces
$ kubectl describe role --namespace=<namespace> <role_name>
$ kubectl get rolebindings --all-namespaces
$ kubectl describe rolebinding --namespace=<namespace> <rolebinding_name>
$ kubectl get clusterroles
$ kubectl describe clusterrole <clusterrole_name>
$ kubectl get clusterrolebindings
$ kubectl describe clusterrolebinding <clusterrolebinding_name>
$ kubectl get podsecuritypolicies
$ kubectl describe podsecuritypolicy <podsecuritypolicy_name>
$ kubectl get crds
$ kubectl describe crd <crd_name>
$ kubectl get customresources
$ kubectl describe customresource <cr_name>
$ kubectl get poddisruptionbudgets
$ kubectl describe poddisruptionbudget <pdb_name>