File tree Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -27,17 +27,32 @@ Modify resource
27
27
kubectl patch $TYPE $NAME --path $JSON_PATH
28
28
29
29
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
32
32
33
33
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
35
38
36
39
37
40
Minikube
38
41
42
+ Create kubectl context
43
+ minikube start
44
+
39
45
Open exposed application
40
46
minikube service $APP_NAME
41
47
42
48
Get adress of exposed application
43
49
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
You can’t perform that action at this time.
0 commit comments