-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment.yaml
49 lines (49 loc) · 1.05 KB
/
deployment.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: TBS
spec:
selector:
matchLabels:
app: TBS
template:
metadata:
labels:
app: TBS
deployment: TBS
spec:
containers:
- image: nginxinc/nginx-unprivileged
name: maintenance
ports:
- containerPort: 8080
protocol: TCP
volumeMounts:
- mountPath: /etc/nginx/conf.d/default.conf
name: default-conf
subPath: default.conf
- mountPath: /usr/share/nginx/html/maintenance.html
name: maintenance-html
subPath: maintenance.html
terminationGracePeriodSeconds: 0
volumes:
- name: default-conf
configMap:
name: default-conf
- name: maintenance-html
configMap:
name: maintenance-html
---
apiVersion: v1
kind: Service
metadata:
name: TBS
spec:
ports:
- name: http
port: 8080
targetPort: 8080
selector:
app: TBS
deployment: TBS
type: ClusterIP