-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment.yaml
60 lines (60 loc) · 1.33 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
50
51
52
53
54
55
56
57
58
59
60
apiVersion: apps/v1
kind: Deployment
metadata:
name: example
spec:
replicas: 1
selector:
matchLabels:
app: example
template:
metadata:
labels:
app: example
spec:
containers:
- name: example
### placeholder to be set by cicd pipeline
image: <IMAGE>
env:
- name: ETCD_URL
value: 'https://config.api.herodotus.cloud:2379'
- name: ETCD_USERNAME
value: 'example-user'
- name: ETCD_KEYS
value: '/example/config.stage.json'
envFrom:
- secretRef:
name: example-secret
ports:
- containerPort: 8040
resources:
requests:
cpu: '100m'
memory: '128Mi'
limits:
cpu: '1'
memory: '2G'
livenessProbe:
httpGet:
path: /is-alive
port: 8040
initialDelaySeconds: 10
periodSeconds: 10
readinessProbe:
httpGet:
path: /is-alive
port: 8040
initialDelaySeconds: 5
periodSeconds: 5
---
apiVersion: v1
kind: Service
metadata:
name: example-service
spec:
selector:
app: example
ports:
- port: 8040
targetPort: 8040