Set 2 Flashcards
namespace shorthand
export sns=’kubectl config set-context –current –namespace’
tmp shorthand
export temp=’kubectl run tmp –restart=Never –rm -i –image=nginx:alpine –’
tmp shorthand
export temp=’kubectl run tmp –restart=Never –rm -i –image=nginx:alpine –’
service selector point to pod or deployment?
pod
check pod on port 80 with liveness probe
livenessProbe:
tcpSocket:
port: 80
create quick debug container for running pod with
kubectl debug
make changes to resource with
kubectl patch
dont delete pod and then apply:
kubectl replace -f file
container env var from conf map
valuesFrom: configMapKeyRef
container env var from secret
valueFrom: secretKeyRef
redinessprobe for http request
readinessProbe:
httpGet: path, port
container env var from conf map
valuesFrom: configMapKeyRef
container env var from conf map
valuesFrom: configMapKeyRef
container env var from conf map
valuesFrom: configMapKeyRef