Skip to content

skonair/k8s-ckad

Repository files navigation

List all resources

kubectl get all

Use -o wide for additional details

Use -o json for json output

USe -o name to only the resource name

Use --dry-run=client to test your command

kubectl create namespace test-ns --dry-run=client -o yaml [±master ✓]

apiVersion: v1 kind: Namespace metadata: creationTimestamp: null name: test-ns spec: {} status: {}

Use -o yaml to output the resource definition

Execute a bash on a pod:

kubectl exec --stdin --tty -- /bin/bash

About

Some notes for the udemy k8s course

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published