Add sc and pv, pvc not clear implements

This commit is contained in:
2021-10-25 10:36:23 +07:00
parent faf8db8cc9
commit e0f46beaab
10 changed files with 291 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
kind: Deployment
apiVersion: apps/v1
metadata:
name: nfs-client-provisioner
spec:
replicas: 1
selector:
matchLabels:
app: nfs-client-provisioner
strategy:
type: Recreate
template:
metadata:
labels:
app: nfs-client-provisioner
spec:
serviceAccountName: nfs-client-provisioner
containers:
- name: nfs-client-provisioner
image: k8s.gcr.io/sig-storage/nfs-subdir-external-provisioner:v4.0.2
resources:
limits:
cpu: 100m
memory: 100Mi
volumeMounts:
- name: nfs-client-root
mountPath: /persistentvolumes
env:
- name: PROVISIONER_NAME
value: k8s-sigs.io/nfs-subdir-external-provisioner
- name: NFS_SERVER
value: 192.168.0.203
- name: NFS_PATH
value: /mnt/registry2/k8s-data
volumes:
- name: nfs-client-root
nfs:
server: 192.168.0.203
path: /mnt/registry2/k8s-data