-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmonitor-influxdb-deployment.yaml
More file actions
69 lines (69 loc) · 1.85 KB
/
monitor-influxdb-deployment.yaml
File metadata and controls
69 lines (69 loc) · 1.85 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
{{- if eq .Values.global.influxdb_location "on-cluster" }}
apiVersion: apps/v1
kind: Deployment
metadata:
name: drycc-monitor-influxdb
labels:
heritage: drycc
annotations:
component.drycc.cc/version: {{ .Values.influxdb.docker_tag }}
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: drycc-monitor-influxdb
template:
metadata:
labels:
app: drycc-monitor-influxdb
spec:
containers:
- name: drycc-monitor-influxdb
image: {{.Values.influxdb.docker_registry}}{{.Values.influxdb.org}}/influxdb:{{.Values.influxdb.docker_tag}}
imagePullPolicy: {{.Values.influxdb.pull_policy}}
{{- if or (.Values.influxdb.limits_cpu) (.Values.influxdb.limits_memory)}}
resources:
limits:
{{- if (.Values.influxdb.limits_cpu) }}
cpu: {{.Values.influxdb.limits_cpu}}
{{- end}}
{{- if (.Values.influxdb.limits_memory) }}
memory: {{.Values.influxdb.limits_memory}}
{{- end}}
{{- end}}
ports:
- containerPort: 8083
name: admin
- containerPort: 8086
name: transport
protocol: TCP
- containerPort: 8084
name: ssltransport
protocol: TCP
livenessProbe:
httpGet:
path: /ping
port: 8086
initialDelaySeconds: 1
timeoutSeconds: 1
readinessProbe:
httpGet:
path: /ping
port: 8086
initialDelaySeconds: 1
timeoutSeconds: 1
{{- if .Values.influxdb.persistence.enabled }}
volumeMounts:
- name: influxdb-data
mountPath: /data
# Allow user influxdb to write to /data
securityContext:
fsGroup: 1001
volumes:
- name: influxdb-data
persistentVolumeClaim:
claimName: drycc-monitor-influxdb
{{- end }}
{{- end }}