X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=starlingx%2Fdemo%2Ffirewall-host-netdevice%2Fcharts%2Fsink-host-netdevice%2Ftemplates%2Fdeployment.yaml;fp=starlingx%2Fdemo%2Ffirewall-host-netdevice%2Fcharts%2Fsink-host-netdevice%2Ftemplates%2Fdeployment.yaml;h=eaa928ae22ae5ca970c84a214e22e658a9c522bd;hb=219a7eab4129b3e500bcaf6c62819011580895ba;hp=fe3d03fe0ec68fa508ca6d1c588d64d6b1e98973;hpb=6547e45fd9f60437811ef35b9d101cdaef494542;p=multicloud%2Fk8s.git diff --git a/starlingx/demo/firewall-host-netdevice/charts/sink-host-netdevice/templates/deployment.yaml b/starlingx/demo/firewall-host-netdevice/charts/sink-host-netdevice/templates/deployment.yaml index fe3d03fe..eaa928ae 100644 --- a/starlingx/demo/firewall-host-netdevice/charts/sink-host-netdevice/templates/deployment.yaml +++ b/starlingx/demo/firewall-host-netdevice/charts/sink-host-netdevice/templates/deployment.yaml @@ -23,6 +23,19 @@ spec: "interface": "veth22" } ]' spec: + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + {{- range .Values.global.nodeAffinity }} + - key: {{ .label.labelkey }} + operator: {{ .label.op }} + values: + {{- range .label.labelvalues }} + - {{ . }} + {{- end }} + {{- end }} containers: - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" @@ -32,12 +45,10 @@ spec: env: - name: unprotectedNetCidr value: "{{.Values.global.unprotectedNetCidr}}" - - name: unprotectedNetGw - value: "{{.Values.global.unprotectedNetGw}}" + - name: unprotectedNetGwIp + value: "{{.Values.global.unprotectedNetGwIp}}" - name: protectedNetCidr value: "{{.Values.global.protectedNetCidr}}" - - name: protectedNetGw - value: "{{.Values.global.protectedNetGw}}" - name: protectedNetGwIp value: "{{.Values.global.protectedNetGwIp}}" - name: dcaeCollectorIp