Commit b61629f0 authored by lavado's avatar lavado
Browse files

Merge branch 'bugfix/setcomm_affinity' into 'master'

bugfix(setcomm): affinity for snmp exporter and vnf label for chart statefulset

See merge request !152
parents 0e56fe02 10617ae6
Pipeline #663 failed with stage
in 1 minute and 45 seconds
......@@ -14,6 +14,16 @@ spec:
labels:
{{- include "snmpexporter.selectorLabels" . | nindent 8 }}
spec:
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: vnf
operator: In
values:
- {{ .Values.global.osm.vnf_id | lower}}
topologyKey: "kubernetes.io/hostname"
securityContext:
runAsUser: 0
initContainers:
......
......@@ -16,6 +16,7 @@ spec:
labels:
app.kubernetes.io/name: {{ include "eechart.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
vnf: {{ .Values.global.osm.vnf_id | lower}}
spec:
imagePullSecrets:
- name: regcred
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment