Kubernetes Operations: Difference between revisions
Jump to navigation
Jump to search
Line 37: | Line 37: | ||
Note that --export is deprecated and will be removed in the future so find an equivalent. | Note that --export is deprecated and will be removed in the future so find an equivalent. | ||
==Kill Immediately== | |||
kubectl delete -n my-ns pod my-pod --force --grace-period=0 |
Revision as of 21:12, 19 August 2019
Internal
Subjects
Runtimes
Namespace Operations
kubectl get namespaces|ns
kubectl delete namespace|ns <namespace-name>
Pod Operations
kubectl get pods|po
kubectl describe pod <pod-name>
kubectl log <pod-name>
To Redistribute
Get the Manifest for an Existing Object
The manifest can be used to recreate the object:
kubectl get pod pod-name --export -o yaml
Note that --export is deprecated and will be removed in the future so find an equivalent.
Kill Immediately
kubectl delete -n my-ns pod my-pod --force --grace-period=0