Fixed topology selector
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
variables:
|
||||
HELM_CHART_VERSION: "1.0.16"
|
||||
HELM_CHART_VERSION: "1.0.17"
|
||||
|
||||
stages:
|
||||
- deploy
|
||||
|
||||
@@ -54,6 +54,7 @@ cloudyne.systems/site: {{ .Values.site.domain | quote }}
|
||||
{{- define "..affinity-labels" -}}
|
||||
podAffinity:
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
nodeSelectorTerms:
|
||||
- labelSelector:
|
||||
matchExpressions:
|
||||
- key: cloudyne.systems/customer
|
||||
@@ -63,10 +64,9 @@ podAffinity:
|
||||
- key: cloudyne.systems/site
|
||||
operator: In
|
||||
values:
|
||||
- cloudyne.systems/site: {{ .Values.site.domain | quote }}
|
||||
- {{ .Values.site.domain | quote }}
|
||||
- key: cloudyne.systems/component
|
||||
operator: In
|
||||
values:
|
||||
- "site"
|
||||
topologyKey: kubernetes.io/hostname
|
||||
{{- end }}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
name: {{ include "..fullname" . }}-wpc-reg
|
||||
name: {{ include "..fullname" . }}-initializer
|
||||
labels:
|
||||
{{- include "..labels" . | nindent 4 }}
|
||||
cloudyne.systems/component: site-init
|
||||
|
||||
Reference in New Issue
Block a user