Skip to content

Instantly share code, notes, and snippets.

View RajendraLadkat's full-sized avatar
🎯
Focusing

RajendraLadkat

🎯
Focusing
View GitHub Profile

kubectl commands and tips&tricks for CKA and CKAD exams

Quickly retrieve imperative commands to create k8s resources.

Command: k run -h | grep '# ' -A2

When is it useful: copy/paste command to notepad, edit values and execute to create desired resource

Result: list of different ways to create k8s resources imperatively using kubectl

Questions are not from any actual exam!!!
Q: Create a secret that has the following username password data:
username=missawesome
password=123kube321
Create a pod running nginx that has access to those data items in a volume mount path at /tmp/secret-volume
log into the nginx pod you created and list the items and cat the output of the data items to a file "credentials.txt"
@RajendraLadkat
RajendraLadkat / helm-cheatsheet.md
Created December 2, 2019 05:27 — forked from tuannvm/argo.md
#Helm #Kubernetes #cheatsheet, happy helming!