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