Commit 1c132537 authored by Sacha Brants's avatar Sacha Brants
Browse files

Merge branch 'add_node_selector' into 'master'

ci: add node selector

See merge request !169
parents de99886b b97e8726
Pipeline #60843 failed
...@@ -2,9 +2,12 @@ global: ...@@ -2,9 +2,12 @@ global:
replicaCount: #{REPLICA_COUNT}# replicaCount: #{REPLICA_COUNT}#
namespace: osdu namespace: osdu
podidentity: osdu-identity podidentity: osdu-identity
nodepool: services
isAutoscalingEnabled: false
minReplicaCount: #{SDMS_MIN_REPLICAS}# minReplicaCount: #{SDMS_MIN_REPLICAS}#
maxReplicaCount: #{SDMS_MAX_REPLICAS}# maxReplicaCount: #{SDMS_MAX_REPLICAS}#
configEnv: configEnv:
cloudProvider: #{PROVIDER_NAME}# cloudProvider: #{PROVIDER_NAME}#
keyvaultUrl: #{KEYVAULT_NAME}# keyvaultUrl: #{KEYVAULT_NAME}#
...@@ -17,4 +20,4 @@ configEnv: ...@@ -17,4 +20,4 @@ configEnv:
image: image:
repository: #{CONTAINER_REGISTRY_NAME}# repository: #{CONTAINER_REGISTRY_NAME}#
branch: master branch: master
tag: #{IMAGE_TAG}# tag: #{IMAGE_TAG}#
\ No newline at end of file
...@@ -15,7 +15,11 @@ spec: ...@@ -15,7 +15,11 @@ spec:
labels: labels:
app: {{ .Release.Name }} app: {{ .Release.Name }}
aadpodidbinding: {{ .Values.global.podidentity }} aadpodidbinding: {{ .Values.global.podidentity }}
spec: spec:
{{- if .Values.global.isAutoscalingEnabled }}
nodeSelector:
nodepool: {{ .Values.global.nodepool }}
{{- end }}
containers: containers:
- name: {{ .Release.Name }} - name: {{ .Release.Name }}
image: {{ .Values.image.repository }}:{{ .Values.image.tag }} image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
......
Supports Markdown
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