Commit 994fef22 authored by bravof's avatar bravof
Browse files

fix(pod affinity): pods now are scheduled into the same node to allow file sharing

parent 86b4a768
......@@ -3,12 +3,21 @@ kind: Deployment
metadata:
name: {{ include "snmpexporter.fullname" . }}
labels:
{{- include "snmpexporter.labels" . | nindent 4 }}
vnf: {{ .Values.global.osm.vnf_id | lower}}
spec:
replicas: {{ .Values.replicaCount }}
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:
......
......@@ -3,7 +3,7 @@ kind: StatefulSet
metadata:
name: {{ include "eechart.fullname" . }}
labels:
{{ include "eechart.labels" . | indent 4 }}
vnf: {{ .Values.global.osm.vnf_id | lower}}
spec:
serviceName: {{ include "eechart.fullname" . }}
replicas: {{ .Values.replicaCount }}
......
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