kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch05/exercises/5.07.sh

6 lines
204 B
Bash

cd /kiamol/ch05
kubectl apply -f sleep/sleep-with-hostPath-subPath.yaml
kubectl exec deploy/sleep -- sh -c 'ls /pod-logs | grep _pi-'
kubectl exec deploy/sleep -- sh -c 'ls /container-logs | grep nginx'