-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcandle.yaml
52 lines (51 loc) · 929 Bytes
/
candle.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
# Create a pod that reads and writes to the
# NFS server via an NFS volume.
apiVersion: apps/v1
kind: Deployment
metadata:
name: candle
spec:
selector:
matchLabels:
run: candle
replicas: 1
template:
metadata:
labels:
run: candle
spec:
volumes:
- name: nfs-volume
nfs:
server: 10.42.94.55
path: /candle2
containers:
- name: candle
image: 10.42.94.112:30500/nginx
ports:
- containerPort: 80
volumeMounts:
- name: nfs-volume
mountPath: /usr/share/nginx/html
imagePullSecrets:
- name: regcred
---
apiVersion: v1
kind: Service
metadata:
name: candle
labels:
run: candle
spec:
type: NodePort
ports:
- port: 8080
targetPort: 80
nodePort: 30080
protocol: TCP
name: http
- port: 443
protocol: TCP
name: https
selector:
run: candle