-
Notifications
You must be signed in to change notification settings - Fork 1
/
nfs-server.yaml
52 lines (52 loc) · 1.37 KB
/
nfs-server.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: nfs-server
namespace: default
spec:
replicas: 1
selector:
matchLabels:
workload.user.cattle.io/workloadselector: deployment-default-nfs-server
template:
metadata:
labels:
workload.user.cattle.io/workloadselector: deployment-default-nfs-server
spec:
containers:
- env:
- name: SHARED_DIRECTORY
value: /nfsshare
image: itsthenetwork/nfs-server-alpine:12
imagePullPolicy: Always
name: nfs-server
ports:
- containerPort: 2049
hostPort: 2049
name: 2049tcp20490
protocol: TCP
resources: {}
securityContext:
allowPrivilegeEscalation: true
capabilities: {}
privileged: true
procMount: Default
readOnlyRootFilesystem: false
runAsNonRoot: false
stdin: true
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
tty: true
volumeMounts:
- mountPath: /nfsshare
name: nfssharevol
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
- hostPath:
path: /tmp/nfsshare
type: DirectoryOrCreate
name: nfssharevol