forked from containeroo/heartbeats
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeployment.yaml
More file actions
75 lines (75 loc) · 1.83 KB
/
deployment.yaml
File metadata and controls
75 lines (75 loc) · 1.83 KB
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
66
67
68
69
70
71
72
73
74
75
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: heartbeats
namespace: heartbeats
spec:
replicas: 1
selector:
matchLabels:
app: heartbeats
strategy:
type: Recreate
template:
metadata:
labels:
app: heartbeats
spec:
containers:
- name: heartbeats
image: ghcr.io/containeroo/heartbeats:v0.4.9
imagePullPolicy: IfNotPresent
args:
- --config
- /tmp/config.yaml
- --host
- 0.0.0.0
- --site-root
- https://heartbeats.example.com
env:
- name: TZ
value: Europe/Zurich
envFrom:
- secretRef:
name: heartbeats
ports:
- name: http
containerPort: 8090
startupProbe:
httpGet:
path: /healthz
port: http
failureThreshold: 3
timeoutSeconds: 5
periodSeconds: 3
livenessProbe:
httpGet:
path: /healthz
port: http
failureThreshold: 2
periodSeconds: 30
resources:
requests:
memory: 256Mi
cpu: 100m
limits:
memory: 256Mi
cpu: 100m
volumeMounts:
- name: config
mountPath: /tmp/
#affinity:
# podAntiAffinity:
# requiredDuringSchedulingIgnoredDuringExecution:
# - labelSelector:
# matchLabels:
# app.kubernetes.io/name: alertmanager
# topologyKey: kubernetes.io/hostname
restartPolicy: Always
automountServiceAccountToken: false
volumes:
- name: config
configMap:
name: heartbeats
defaultMode: 0755