forked from streamdal/go-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.dev.yaml
65 lines (65 loc) · 1.68 KB
/
deploy.dev.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
61
62
63
64
65
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: go-template-deployment
spec:
selector:
matchLabels:
app: go-template
replicas: 2
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
minReadySeconds: 5
template:
metadata:
labels:
app: go-template
admission.datadoghq.com/enabled: "true"
tags.datadoghq.com/env: "dev"
tags.datadoghq.com/service: "go-template"
spec:
containers:
- name: go-template
image: ghcr.io/batchcorp/{{SERVICE}}:{{VERSION}}
ports:
- containerPort: 8282
env:
- name: ENV_NAME
value: "dev"
- name: DEBUG
value: "true"
- name: DD_AGENT_HOST
valueFrom:
fieldRef:
fieldPath: status.hostIP
- name: DD_AGENT_APM_PORT
value: "8126"
- name: DD_SERVICE
valueFrom:
fieldRef:
fieldPath: metadata.labels['tags.datadoghq.com/service']
- name: DD_VERSION
value: "{{VERSION}}"
- name: DD_ENV
valueFrom:
fieldRef:
fieldPath: metadata.labels['tags.datadoghq.com/env']
resources:
requests:
memory: "64Mi"
cpu: "250m"
limits:
memory: "128Mi"
cpu: "500m"
livenessProbe:
httpGet:
path: /health-check
port: 8282
initialDelaySeconds: 30
periodSeconds: 5
imagePullSecrets:
- name: regcredv2