full_container_scheme/other/demo-nginx部署.md

232 B

nginx

kubectl create deployment nginx  --image=nginx:latest -o yaml --dry-run >> nginx.yml
# 生成配置文件

## 启动pod
kubectl create -f nginx.yml

## 挂载存储目录
kubectl apply -f  storage/nginx-nfs.yml