forked from galexrt/presentation-gitlab-k8s
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yaml
42 lines (42 loc) · 986 Bytes
/
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
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: presentation-gitlab-k8s-__CI_ENVIRONMENT_SLUG__
labels:
app: presentation-gitlab-k8s
ref: __CI_ENVIRONMENT_SLUG__
track: stable
spec:
replicas: 2
selector:
matchLabels:
app: presentation-gitlab-k8s
ref: __CI_ENVIRONMENT_SLUG__
template:
metadata:
labels:
app: presentation-gitlab-k8s
ref: __CI_ENVIRONMENT_SLUG__
track: stable
spec:
containers:
- name: app
image: __CI_REGISTRY_IMAGE__:__VERSION__
imagePullPolicy: Always
ports:
- name: http-metrics
protocol: TCP
containerPort: 8000
livenessProbe:
httpGet:
path: /health
port: 8000
initialDelaySeconds: 3
timeoutSeconds: 2
readinessProbe:
httpGet:
path: /health
port: 8000
initialDelaySeconds: 3
timeoutSeconds: 2