39 lines
1.0 KiB
YAML
39 lines
1.0 KiB
YAML
|
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
|