Commit 10617ae6 authored by bravof's avatar bravof
Browse files

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

parent 0e56fe02
Pipeline #662 passed with stage
in 1 minute and 21 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