adding nfs provisioner
This commit is contained in:
31
10_nfs-provisioner/test-nginx.yaml
Normal file
31
10_nfs-provisioner/test-nginx.yaml
Normal file
@@ -0,0 +1,31 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: nginx-pvc
|
||||
namespace: default
|
||||
spec:
|
||||
storageClassName: nfs-client
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 1Gi
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: nginx-pod
|
||||
namespace: default
|
||||
spec:
|
||||
volumes:
|
||||
- name: nginx-pvc
|
||||
persistentVolumeClaim:
|
||||
claimName: nginx-pvc
|
||||
containers:
|
||||
- name: nginx
|
||||
image: nginx:latest
|
||||
ports:
|
||||
- containerPort: 80
|
||||
volumeMounts:
|
||||
- mountPath: "/usr/share/nginx/html"
|
||||
name: nginx-pvc
|
||||
Reference in New Issue
Block a user