[mini-mirror] Add node selector label to pod spec

This PS adds node selector labels to deployment pod spec to avoid
mini mirror from getting deployed to compute nodes.

Change-Id: Ie898616e4d15ce6ce1736df863b3514e03433ee7
This commit is contained in:
Kumar, Nishant(nk613n) 2019-07-18 15:33:57 -04:00
parent d0100055af
commit aad032a9b5
1 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,8 @@ spec:
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "helm-toolkit.utils.hash" }}
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "helm-toolkit.utils.hash" }}
spec:
nodeSelector:
{{ .Values.labels.server.node_selector_key }}: {{ .Values.labels.server.node_selector_value }}
containers:
- name: mini-mirror-api
{{ tuple $envAll "mini-mirror" | include "helm-toolkit.snippets.image" | indent 10 }}