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

7 lines
199 B
Bash

cd /kiamol/ch05
kubectl apply -f sleep/sleep-with-hostPath.yaml
kubectl exec deploy/sleep -- ls -l /var/log
kubectl exec deploy/sleep -- ls -l /node-root/var/log
kubectl exec deploy/sleep -- whoami