kubernetes_cheat_sheet
kubernetes_cheat_sheet
Output format in YAML. D isplay the detailed state of one or more namespaces.
-o=wide kubectl delete names ace <names ace_name> p p
Output in the plain-text format with any additional information, and for pods, D elete a namespace.
the node name is included.
kubectl edit names ace <names ace_name>
p p
-n
Edit and update the definition of a namespace.
Alias for namespace.
kubectl to names ace <names ace_name>
p p p
-f
D isplay Resource ( PU/Memory/Storage) usage for a namespace.
C
kubectl a i-resources
p
D elete a pod.
List the API resources that are a ailable. v
kubectl a i- ersions
p v
D isplay the detailed state of a pods.
List the API ersions that are a ailable.
v v
C reate a pod.
D a emonsets kubectl e ec < od_name> -c <container_name> <command>
x p
kubectl delete daemonset <daemonset_name> D isplay Resource usage ( PU/Memory/Storage) for pods.C
Edit and update the definition of one or more deployments on the ser er. v
List the replication controllers by namespace.
kubectl create de loyment <de loyment_name>
p p
See the rollout status of a deployment. D isplay the detailed state of one or more ReplicaSets.
kubectl set image de loyment/<de loyment name> <container name>=image:
kubectl scale --re licas=
<new image ersion>
p p
p [x]
v
kubectl get e ents --field-selector ty e!=Normal E xpose a replication controller, ser ice, deployment, or pod as a new v
v p
K ubernetes ser ice. v
L ogs
kubectl logs < od_name> p
Services Accounts
P rint the logs for a pod.
kubectl get ser iceaccounts
v