generated from container/tmpl
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.0 KiB
39 lines
1.0 KiB
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: nfs-client-provisioner
|
|
labels:
|
|
app: nfs-client-provisioner
|
|
# replace with namespace where provisioner is deployed
|
|
namespace: default
|
|
spec:
|
|
replicas: 1
|
|
strategy:
|
|
type: Recreate
|
|
selector:
|
|
matchLabels:
|
|
app: nfs-client-provisioner
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: nfs-client-provisioner
|
|
spec:
|
|
serviceAccountName: nfs-client-provisioner
|
|
containers:
|
|
- name: nfs-client-provisioner
|
|
image: registry.cn-hangzhou.aliyuncs.com/gcr_k8s_containers/nfs-subdir-external-provisioner:v4.0.2
|
|
volumeMounts:
|
|
- name: nfs-client-root
|
|
mountPath: /persistentvolumes
|
|
env:
|
|
- name: PROVISIONER_NAME
|
|
value: k8s-sigs.io/nfs-provisioner
|
|
- name: NFS_SERVER
|
|
value: 10.8.30.152
|
|
- name: NFS_PATH
|
|
value: /data
|
|
volumes:
|
|
- name: nfs-client-root
|
|
nfs:
|
|
server: 10.8.30.152
|
|
path: /data
|
|
|