Skip to content

Commit b73f387

Browse files
author
lijianguo
committed
feat(monitor): add affinity
1 parent 1cd81a7 commit b73f387

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

charts/monitor/templates/monitor-grafana-deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ spec:
2222
labels:
2323
app: drycc-monitor-grafana
2424
spec:
25+
{{- if .Values.global.common }}
26+
{{- include "common.affinity" (dict "key" "app" "values" (list "drycc-monitor-grafana")) | indent 6 }}
27+
{{- end }}
2528
securityContext:
2629
fsGroup: 1001
2730
runAsGroup: 1001

charts/monitor/templates/monitor-telegraf-deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ spec:
2121
labels:
2222
app: drycc-monitor-telegraf
2323
spec:
24+
{{- if .Values.global.common }}
25+
{{- include "common.affinity" (dict "key" "app" "values" (list "drycc-monitor-telegraf")) | indent 6 }}
26+
{{- end }}
2427
securityContext:
2528
fsGroup: 1001
2629
runAsGroup: 1001

0 commit comments

Comments
 (0)