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

6 lines
179 B
Bash

cd /kiamol/ch05
kubectl apply -f sleep/sleep-with-hostPath.yaml
kubectl wait --for=condition=Ready pod -l app=sleep
kubectl exec deploy/sleep -- mkdir -p /node-root/volumes/pv01