Linux Terminal Glossary
›
Kubernetes & Containers
Kubernetes & Containers
191 commands
kubectl version
kubectl cluster-info
kubectl cluster-info dump
kubectl get nodes
kubectl get nodes -o wide
kubectl get pods
kubectl get pods -o wide
kubectl get pods --watch
kubectl get pods --field-selector=status.phase=Running
kubectl get deploy
kubectl get svc
kubectl get ingress
kubectl get ns
kubectl get pvc
kubectl get secrets
kubectl get configmaps
kubectl get events --sort-by=.lastTimestamp
kubectl get all -n staging
kubectl get pod web-7d8f9c -o jsonpath={.status.podIP}
kubectl get crds
kubectl describe node node-a
kubectl describe pod web-7d8f9c
kubectl api-resources
kubectl explain pods
kubectl explain deploy.spec.template.spec.containers
kubectl create ns staging
kubectl create deployment web --image=nginx:1.25
kubectl run web --image=nginx:1.25
kubectl run web --image=nginx:1.25 --dry-run=client -o yaml
kubectl apply -f deploy.yaml
kubectl apply -k ./kustomize-dir
kubectl diff -f deploy.yaml
kubectl apply --server-side -f deploy.yaml
kubectl delete -f deploy.yaml
kubectl delete pod web-7d8f9c
kubectl delete pod web-7d8f9c --force --grace-period=0
kubectl delete ns staging
kubectl logs web-7d8f9c
kubectl logs -f deploy/web
kubectl logs deploy/web --tail=100
kubectl exec -it web-7d8f9c -- /bin/sh
kubectl cp web-7d8f9c:/app/config.json ./config.json
kubectl port-forward svc/web 8080:80
kubectl debug node/node-a -it --image=busybox
kubectl debug web-7d8f9c -it --image=busybox
kubectl rollout status deploy/web --timeout=120s
kubectl rollout restart deploy/web
kubectl rollout undo deploy/web
kubectl rollout undo deploy/web --to-revision=2
kubectl rollout history deploy/web
kubectl rollout pause deploy/web
kubectl rollout resume deploy/web
kubectl scale deploy/web --replicas 3
kubectl set image deploy/web web=nginx:1.26
kubectl edit deploy/web
kubectl patch deploy/web -p '{"spec":{"replicas":5}}'
kubectl autoscale deploy/web --min=2 --max=10 --cpu-percent=70
kubectl expose deployment web --type=NodePort --port=80
kubectl config get-contexts
kubectl config current-context
kubectl config use-context prod
kubectl config set-context --current --namespace=staging
kubectl config view
kubectl config delete-context staging
kubectl top nodes
kubectl top pods
kubectl cordon node-a
kubectl uncordon node-a
kubectl drain node-a --ignore-daemonsets
kubectl label node-a disktype=ssd
kubectl taint node-a key=value:NoSchedule
kubectl auth can-i create pods
kubectl auth can-i --list -n staging
kubectl auth whoami
kubectl create secret generic db-pass --from-literal=password=secret
kubectl create secret generic creds --from-file=creds.json
kubectl create secret docker-registry regcred --docker-server=ghcr.io --docker-username=barry --docker-password=ch4nge-me
kubectl create configmap app-config --from-file=config.yaml
kubectl get secret db-pass -o yaml
kubectl completion bash > ~/.kube/completion.bash
kubectl proxy
kubectl wait --for=condition=Ready pod/web-7d8f9c --timeout=60s
helm version
helm search hub nginx
helm search repo bitnami/nginx
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo update
helm repo list
helm repo remove bitnami
helm install my-web bitnami/nginx
helm install my-web bitnami/nginx --values values.yaml
helm upgrade my-web bitnami/nginx --set replicaCount=3
helm rollback my-web 2
helm history my-web
helm list
helm list -n monitoring
helm status my-web
helm uninstall my-web
helm template my-web bitnami/nginx
helm lint ./chart
helm pull bitnami/nginx --untar
helm dependency build ./chart
helm create mychart
helm show values bitnami/nginx
helm get manifest my-web
k9s
k9s -n staging
k9s -c pod
k9s --context prod
k9s --readonly
k9s info
podman ps -a
podman images
podman search nginx
podman pull nginx:1.25
podman run -d --name web -p 8080:80 nginx
podman run -it --rm alpine sh
podman exec -it web sh
podman logs -f web
podman stop web
podman start web
podman restart web
podman rm web
podman rmi nginx
podman build -t myapp .
podman system df
podman system prune -a
podman volume create data
podman volume ls
podman network create web-net
podman stats
podman inspect web
podman login ghcr.io
buildah build -t myapp .
buildah from alpine
buildah run alpine-working-container sh
buildah commit alpine-working-container myapp
buildah push myapp docker://registry.example.com/myapp:latest
buildah images
buildah containers
buildah inspect myapp
buildah tag myapp myapp:1.0
skopeo inspect docker://nginx:1.25
skopeo inspect --config docker://nginx:1.25
skopeo list-tags docker://nginx
skopeo copy docker://nginx:1.25 docker://registry.example.com/nginx:1.25
skopeo delete docker://registry.example.com/nginx:canary
crictl ps
crictl ps -a
crictl images
crictl pods
crictl pull nginx:1.25
crictl logs 3f8d9c2a1b4e
crictl exec -it 3f8d9c2a1b4e sh
crictl stats
crictl rmi nginx:1.25
crictl version
lxc list --format json
lxc launch ubuntu:24.04 web01
lxc launch ubuntu:24.04 db01 --vm -c limits.memory=2GiB
lxc exec web01 -- systemctl status nginx
lxc info web01
lxc restart web01
lxc delete web01
lxc snapshot web01 snap1
lxc restore web01 snap1
lxc file push ./config.yaml web01/etc/config.yaml
lxc file pull web01/etc/nginx/nginx.conf ./nginx.conf
lxc image list
lxc config set web01 limits.memory 512MB
lxc config device add web01 www proxy listen=tcp:0.0.0.0:8080 connect=tcp:127.0.0.1:80
lxc network list
lxc config show web01
minikube start
minikube status
minikube stop
minikube dashboard
minikube tunnel
minikube delete
minikube addons list
minikube addons enable ingress
minikube addons enable metrics-server
minikube ip
minikube service web
kind create cluster
kind create cluster --name dev
kind create cluster --config kind-config.yaml
kind get clusters
kind delete cluster
kind load docker-image myapp:latest
kind export kubeconfig --name dev
Search all 7,657 commands
instead.