cheatsheet
[!NOTE|label:references:]
run: Create a new Pod to run a Container.
expose: Create a new Service object to load balance traffic across Pods.
autoscale: Create a new Autoscaler object to automatically horizontally scale a controller, such as a Deployment.
create:create <objecttype> [<subtype>] <instancename>
i.e.:
kubectl create service nodeport <myservicename>
scale: Horizontally scale a controller to add or remove Pods by updating the replica count of the controller.
annotate: Add or remove an annotation from an object.
label: Add or remove a label from an object.
set <field>:Set an aspect of an object.
edit: Directly edit the raw configuration of a live object by opening its configuration in an editor.
patch: Directly modify specific fields of a live object by using a patch string. For more details on patch strings, see the patch section in API Conventions.
get
describe
logs
oneline command
create
[!NOTE|label:references:]
daemonset
ds
cm
single secret
multiple secrets
from secret
[!NOTE]
namesapce
kubectl
disable daemonset
[!NOTE|label:referfences:]
secrets
[!NOTE|label:referencs:]
via kubectl
via config file
kubecolor
[!NOTE|label:references:]
kubecolor
config
Last updated
Was this helpful?