forked from spring-attic/github-webhook-kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdeployment.yml
35 lines (35 loc) · 1.02 KB
/
deployment.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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: {{labelAppName}}
spec:
replicas: 1 # tells deployment to run 2 pods matching the template
template: # create pods using pod definition in this template
metadata:
labels:
# Convention in SC-Pipelines
name: {{appName}}
version: {{version}}
spec:
containers:
- name: {{containerName}}
image: {{dockerOrg}}/{{appName}}:{{version}}
ports:
- containerPort: 8080
env:
- name: PORT
value: "8080"
- name: SYSTEM_PROPS # additional options to be passed to the running process
value: "{{systemProps}}"
livenessProbe:
httpGet:
path: /health
port: 8080
initialDelaySeconds: 30
periodSeconds: 3
readinessProbe:
httpGet:
path: /health
port: 8080
initialDelaySeconds: 30
periodSeconds: 3