-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yaml
36 lines (36 loc) · 1.04 KB
/
deployment.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# nfs-client-provisioner 是 Kubernetes 簡易 NFS 外部 provisioner,本身不提供 NFS,要現有的 NFS 服務器提供存儲
kind: Deployment
apiVersion: apps/v1
metadata:
name: nfs-client-provisioner
spec:
replicas: 1
strategy:
type: Recreate # terminates all the pods and replaces them with the new version.
selector:
matchLabels:
app: nfs-client-provisioner
template:
metadata:
labels:
app: nfs-client-provisioner
spec:
serviceAccountName: nfs-client-provisioner
containers:
- name: nfs-client-provisioner
image: quay.io/external_storage/nfs-client-provisioner:latest
volumeMounts:
- name: nfs-client-root
mountPath: /persistentvolumes
env:
- name: PROVISIONER_NAME
value: cch.com/nfs
- name: NFS_SERVER
value: 192.168.133.135
- name: NFS_PATH
value: /mnt/nfs_share
volumes:
- name: nfs-client-root
nfs:
server: 192.168.133.135
path: /mnt/nfs_share