-
Notifications
You must be signed in to change notification settings - Fork 0
/
nfsshare.yaml
57 lines (57 loc) · 1.09 KB
/
nfsshare.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
apiVersion: apps/v1
kind: Deployment
metadata:
name: nfsshare
spec:
replicas: 1
selector:
matchLabels:
app: nfsshare
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
app: nfsshare
spec:
containers:
- env:
- name: SHARED_DIRECTORY
value: /nfsshare
image: itsthenetwork/nfs-server-alpine:latest
imagePullPolicy: Always
name: nfsshare
ports:
- containerPort: 2049
name: nfs
protocol: TCP
resources: {}
securityContext:
privileged: true
volumeMounts:
- mountPath: /nfsshare
name: nfs-data
restartPolicy: Always
volumes:
- name: nfs-data
persistentVolumeClaim:
claimName: nfs-vol01
---
apiVersion: v1
kind: Service
metadata:
name: nfsshare
spec:
clusterIP: 10.102.247.244
ports:
- name: nfs
port: 2049
protocol: TCP
targetPort: 2049
selector:
app: nfsshare
sessionAffinity: None
type: ClusterIP