diff --git a/charts/splunk-connect-for-syslog/templates/service.yaml b/charts/splunk-connect-for-syslog/templates/service.yaml index cfe7b56483..633d1775ee 100644 --- a/charts/splunk-connect-for-syslog/templates/service.yaml +++ b/charts/splunk-connect-for-syslog/templates/service.yaml @@ -14,7 +14,7 @@ metadata: spec: type: {{ .Values.service.type }} - externalTrafficPolicy: Local + externalTrafficPolicy: {{ .Values.externalTrafficPolicy }} {{- if .Values.service.loadBalancerIP }} loadBalancerIP: {{ .Values.service.loadBalancerIP }} {{- end }} @@ -92,7 +92,7 @@ metadata: {{- include "splunk-connect-for-syslog.labels" . | nindent 4 }} spec: type: {{ .Values.service.type }} - externalTrafficPolicy: Local + externalTrafficPolicy: {{ .Values.externalTrafficPolicy }} {{- if .Values.service.loadBalancerIP }} loadBalancerIP: {{ .Values.service.loadBalancerIP }} {{- end }} diff --git a/charts/splunk-connect-for-syslog/templates/statefulset.yaml b/charts/splunk-connect-for-syslog/templates/statefulset.yaml index 02b2433da8..7e8020f1a4 100644 --- a/charts/splunk-connect-for-syslog/templates/statefulset.yaml +++ b/charts/splunk-connect-for-syslog/templates/statefulset.yaml @@ -267,6 +267,10 @@ spec: {{- toYaml . | nindent 8 }} {{- end }} affinity: + {{- with .Values.nodeAffinity }} + nodeAffinity: + {{- toYaml . | nindent 10 }} + {{- end }} podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - weight: 100 diff --git a/charts/splunk-connect-for-syslog/values.yaml b/charts/splunk-connect-for-syslog/values.yaml index 33aa7b3f85..814b1e55e8 100644 --- a/charts/splunk-connect-for-syslog/values.yaml +++ b/charts/splunk-connect-for-syslog/values.yaml @@ -206,4 +206,8 @@ autoscaling: nodeSelector: {} +nodeAffinity: {} + tolerations: [] + +externalTrafficPolicy: Cluster