diff --git a/devops/azure/chart/helm-config.yaml b/devops/azure/chart/helm-config.yaml index 692653d531c76f841f9368d2232a0e12ce13853f..5ce39098a01d90d30f3910a14f8206c68aae6b98 100644 --- a/devops/azure/chart/helm-config.yaml +++ b/devops/azure/chart/helm-config.yaml @@ -3,6 +3,8 @@ global: # Service(s) Replica Count replicaCount: 2 + nodepool: services + isAutoscalingEnabled: false ################################################################################ # Specify the Gitlab branch being used for image creation @@ -31,4 +33,4 @@ autoscaling: minReplicas: 1 maxReplicas: 100 targetCPUUtilizationPercentage: 80 - # targetMemoryUtilizationPercentage: 80 \ No newline at end of file + # targetMemoryUtilizationPercentage: 80 diff --git a/devops/azure/chart/templates/deployment.yaml b/devops/azure/chart/templates/deployment.yaml index 820aea718a10077caf0615f06ab3bb535e60e373..ead96b77ccfc8b82091dfe156dded08e23288452 100644 --- a/devops/azure/chart/templates/deployment.yaml +++ b/devops/azure/chart/templates/deployment.yaml @@ -36,6 +36,10 @@ spec: app: {{ .Chart.Name }} appversion: {{ .Chart.Version }} spec: +{{- if .Values.global.isAutoscalingEnabled }} + nodeSelector: + nodepool: {{ .Values.global.nodepool }} +{{- end }} volumes: - name: azure-keyvault csi: diff --git a/devops/azure/chart/values.yaml b/devops/azure/chart/values.yaml index bb51c8c5879924fe9e76c13ff0d952ec7ff20b7c..5b8530fc8793a813aa6a44caa43abd711ba9798c 100644 --- a/devops/azure/chart/values.yaml +++ b/devops/azure/chart/values.yaml @@ -14,6 +14,8 @@ global: replicaCount: 1 + nodepool: services + isAutoscalingEnabled: false image: repository: community.opengroup.org:5555/osdu/platform/system/reference/crs-conversion-service