-
Notifications
You must be signed in to change notification settings - Fork 0
/
.kubernetes.yml
54 lines (54 loc) · 1.12 KB
/
.kubernetes.yml
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: usi-viewer
labels:
app: usi-viewer
spec:
replicas: $k8s_replicas
revisionHistoryLimit: 1
selector:
matchLabels:
app: usi-viewer
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: $k8s_rollingupdate_maxUnavailable
template:
metadata:
labels:
app: usi-viewer
spec:
imagePullSecrets:
- name: $DOCKER_PULL_SECRET
containers:
- name: usi-viewer
image: $IMAGE
ports:
- containerPort: 8080
livenessProbe:
httpGet:
path: /pride/archive/usi-viewer/
port: 8080
initialDelaySeconds: 60
periodSeconds: 10
readinessProbe:
httpGet:
path: /pride/archive/usi-viewer/
port: 8080
initialDelaySeconds: 60
periodSeconds: 10
---
apiVersion: v1
kind: Service
metadata:
name: usi-viewer-service
spec:
selector:
app: usi-viewer
ports:
- protocol: TCP
port: 8080
targetPort: 8080
type: NodePort