core concepts Flashcards
1
Q
Run ephemeral pod and output command
A
k run my-pod –image=busybox -it –rm –restart=Never – env
2
Q
Whats the wget flag to send to standard out?
A
wget -O- 1.2.3.4:80
3
Q
Command to get logs of prevous pod instance?
A
k logs my-pod –previous
4
Q
Print an existing containers env to your standard out?
A
k exec nginx – env > log.txt
5
Q
Command to watch the k get pods output in real-time?
A
k get pods -w
6
Q
What is the spec path to an init container?
A
pod.spec.initContainers
7
Q
Command to get a hierarchy fields of a type?
A
k explain pod –recursive=true