Skip to content

kubectl: add front matter and common commands - #257

Open
svoronkin wants to merge 1 commit into
cheat:masterfrom
svoronkin:refresh-kubectl
Open

svoronkin wants to merge 1 commit into
cheat:masterfrom
svoronkin:refresh-kubectl

Conversation

@svoronkin

Copy link
Copy Markdown

Refreshes the kubectl cheatsheet:

  • adds YAML front matter (syntax: bash, tags)
  • keeps all existing examples, switching their placeholders to docopt syntax (<resource>, <context>)
  • adds commonly used commands: contexts and default namespace, output formats (-o wide, yaml, jsonpath, custom-columns), field and label selectors, kubectl events, apply -k, diff, secrets, scale / set image, rollouts, wait, logs (--previous, --all-containers), exec, run --rm, debug (pods and nodes), port-forward, cp, top, auth can-i, drain / uncordon

Flags were checked against kubectl v1.34.

Add YAML front matter, use docopt placeholders in the existing examples and add commonly used commands: contexts, output formats, apply/diff, secrets, rollouts, logs, exec/debug, port-forward, top, auth can-i and node maintenance. Flags checked against kubectl v1.34.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant