-
Notifications
You must be signed in to change notification settings - Fork 7
/
nfs.yaml
47 lines (45 loc) · 810 Bytes
/
nfs.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-nfs
labels:
app: tomcat
spec:
replicas: 1
selector:
matchLabels:
app: tomcat
template:
metadata:
labels:
app: tomcat
spec:
containers:
- name: tomcat
image: quay.io/jfclere/nfs
securityContext:
privileged: true
ports:
- name: nfs
containerPort: 2049
volumeMounts:
- mountPath: /myhome
name: nfs-for-tomcat
serviceAccount: nfs-storage-sa
volumes:
- name: nfs-for-tomcat
emptyDir: {}
---
kind: Service
apiVersion: v1
metadata:
name: nfs-service0
spec:
ClusterIP: "None"
ports:
- name: nfs
protocol: TCP
port: 2049
targetport: "2049"
selector:
app: tomcat