-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.yaml
69 lines (67 loc) · 1.11 KB
/
nginx.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
58
59
60
61
62
63
64
65
66
67
kind: Pod
apiVersion: v1
metadata:
name: eucaim-mockup
labels:
app: eucaim-mockup
spec:
volumes:
- name: mockup-vol
persistentVolumeClaim:
claimName: mockup-vol-pvc
containers:
- name: nginx
image: nginx
volumeMounts:
- mountPath: /usr/share/nginx/html/
name: mockup-vol
ports:
- containerPort: 80
---
kind: Service
apiVersion: v1
metadata:
name: mockup-service-np
spec:
type: NodePort
selector:
app: eucaim-mockup
ports:
- protocol: TCP
port: 80
targetPort: 80
nodePort: 30007
---
kind: Pod
apiVersion: v1
metadata:
name: mockup-ssh
labels:
app: mockup-ssh
spec:
volumes:
- name: mockup-vol
persistentVolumeClaim:
claimName: mockup-vol-pvc
containers:
- name: ubuntu-ssh
image: rastasheep/ubuntu-sshd:18.04
volumeMounts:
- mountPath: /data
name: mockup-vol
ports:
- containerPort: 22
---
kind: Service
apiVersion: v1
metadata:
name: mockup-ssh-np
spec:
type: NodePort
selector:
app: mockup-ssh
ports:
- protocol: TCP
port: 22
targetPort: 22
nodePort: 30022