Browse Source

[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
changes/74/671574/1
Kumar, Nishant(nk613n) 4 months ago
parent
commit
aad032a9b5
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      mini-mirror/templates/deployment-mini-mirror.yaml

+ 2
- 0
mini-mirror/templates/deployment-mini-mirror.yaml 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 }}

Loading…
Cancel
Save