Skip to content

Commit dbea912

Browse files
committed
doc(cheatsheet): cheatsheet addition
1 parent 5f9d392 commit dbea912

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

10_cheatsheet.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,32 @@ Modify resource
2727
kubectl patch $TYPE $NAME --path $JSON_PATH
2828

2929
Get resource info
30-
kubectl get pods|services|deployments
31-
kubectl describe pods|services|deployments
30+
kubectl get pods|services|deployments|secrets
31+
kubectl describe pods|services|deployments|secrets
3232

3333
Get logs
34-
kubectl logs
34+
kubectl logs $POD_NAME
35+
36+
Execute command on container in a pod
37+
kubectl exec $POD_NAME $COMMAND
3538

3639

3740
Minikube
3841

42+
Create kubectl context
43+
minikube start
44+
3945
Open exposed application
4046
minikube service $APP_NAME
4147

4248
Get adress of exposed application
4349
minikube service $APP_NAME --url
50+
51+
52+
Docker
53+
54+
Point your docker client to the VM's docker daemon
55+
eval $(minikube docker-env)
56+
57+
Build docker image
58+
docker build -t $NAME $FILE_PATH

0 commit comments

Comments
 (0)