新增learn-kubernetes(https://github.com/yyong-brs/learn-kubernetes)相关文件
This commit is contained in:
10
learn/learn-kubernetes-master/kiamol/ch05/exercises/5.05.sh
Normal file
10
learn/learn-kubernetes-master/kiamol/ch05/exercises/5.05.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
cd /kiamol/ch05
|
||||
|
||||
kubectl apply -f pi/nginx-with-hostPath.yaml
|
||||
kubectl exec deploy/pi-proxy -- ls -l /data/nginx/cache
|
||||
|
||||
#
|
||||
curl http://localhost:8080/?dp=30000
|
||||
|
||||
kubectl delete pod -l app=pi-proxy
|
||||
kubectl exec deploy/pi-proxy -- ls -l /data/nginx/cache
|
||||
Reference in New Issue
Block a user