对齐文件规范
This commit is contained in:
26
ansible/files/03-06/nfs-direct-demo.yaml
Normal file
26
ansible/files/03-06/nfs-direct-demo.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: nfs-direct-demo
|
||||
namespace: default
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: nfs-direct-demo
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: nfs-direct-demo
|
||||
spec:
|
||||
containers:
|
||||
- name: app
|
||||
image: nginx:alpine
|
||||
volumeMounts:
|
||||
- name: nfs-data
|
||||
mountPath: /usr/share/nginx/html
|
||||
volumes:
|
||||
- name: nfs-data
|
||||
nfs:
|
||||
server: <NFS_SERVER_IP>
|
||||
path: <NFS_EXPORT_PATH_OR_SUBDIR>
|
||||
Reference in New Issue
Block a user