Kubectl Commands
Namespace
View Namespaces
kubectl get namespaceChange Namespace
kubectl config set-context --namespace=[namespace name]Create Namespace
kubectl create namespace [namespace name]Execute pod
kubectl exec -it [pod name] -- [path]k exec -it prism-69b8c846c-gc9zj -- /bin/shExecute specific container
Delete
Delete pod
Force delete pod
Fully shut down the Deployment
Delete Service Account
Delete Deployment
Log
View Pod logs
View logs for a specific container
Events
View Events
View Events sorted by timestamp
Get commands w/ basic output
List all services
List all pods in all namespaces
List all pods in the current namespace w/ more detail
List all deployment in all namespaces
Last updated