Skip to content
Snippets Groups Projects
Commit c138ed12 authored by lavado's avatar lavado
Browse files

Merge branch 'fixes_affinity_bug_snmp_ee' into 'master'

Fixes affinity bug on SNMP EE

See merge request !113
parents 01bce519 7a97eb86
No related branches found
No related tags found
1 merge request!113Fixes affinity bug on SNMP EE
Pipeline #202 passed with stage
in 2 minutes and 12 seconds
......@@ -9,20 +9,21 @@ spec:
selector:
matchLabels:
{{- include "snmpexporter.selectorLabels" . | nindent 6 }}
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: vnf
operator: In
values:
- {{ .Values.global.osm.vnf_id | lower}}
template:
metadata:
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:
......
......@@ -2,8 +2,6 @@ apiVersion: apps/v1
kind: StatefulSet
metadata:
name: {{ include "eechart.fullname" . }}
labels:
vnf: {{ .Values.global.osm.vnf_id | lower}}
spec:
serviceName: {{ include "eechart.fullname" . }}
replicas: {{ .Values.replicaCount }}
......@@ -16,6 +14,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
......
......@@ -77,7 +77,6 @@ vnfd:
execution-environment-list:
- connection-point-ref: vnf-mgmt
helm-chart: eechart
helm-version: v2
id: monitor
metric-service: snmpexporter
id: default-vnf-configuration
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment