-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdeployment.yaml
More file actions
45 lines (45 loc) · 1.25 KB
/
deployment.yaml
File metadata and controls
45 lines (45 loc) · 1.25 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
apiVersion: apps/v1
kind: Deployment
metadata:
name: cozy-telemetry
labels:
app: cozy-telemetry
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app: cozy-telemetry
template:
metadata:
labels:
app: cozy-telemetry
spec:
containers:
- name: cozy-telemetry
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
args:
- "--forward-url={{ .Values.config.forwardURL }}"
- "--listen-addr={{ .Values.config.listenAddr }}"
- "--vmselect-url={{ .Values.config.vmSelectURL }}"
- "--snapshot-dir={{ .Values.config.snapshotDir }}"
ports:
- containerPort: {{ .Values.service.port }}
resources:
{{- toYaml .Values.resources | nindent 10 }}
volumeMounts:
- name: snapshots
mountPath: {{ .Values.config.snapshotDir }}
readinessProbe:
tcpSocket:
port: 8081
initialDelaySeconds: 15
periodSeconds: 10
livenessProbe:
tcpSocket:
port: 8081
initialDelaySeconds: 15
periodSeconds: 10
volumes:
- name: snapshots
emptyDir: {}