diff --git a/skaffold.yaml b/skaffold.yaml index 589da800c..1eabff538 100644 --- a/skaffold.yaml +++ b/skaffold.yaml @@ -14,6 +14,15 @@ # corsAllowOrigins: # - "https://{{ .UI_URL }}" +.im-prod-tolerations-config: &im-tolerations-config + key: im-dedicated + operator: Equal + value: true + effect: NoSchedule + +.im-prod-node-selector-config: &im-node-selector-config + im-dedicated: true + apiVersion: skaffold/v4beta6 kind: Config metadata: @@ -43,6 +52,10 @@ deploy: - name: streams port: 5552 targetPort: 5552 + tolerations: + <<: *im-tolerations-config + nodeSelector: + <<: *im-node-selector-config valuesFiles: - helm/data/secrets/{{ .CLASSIFICATION }}/rabbitmq.yaml @@ -57,6 +70,11 @@ deploy: architecture: standalone auth: enabled: false + tolerations: + <<: *im-tolerations-config + nodeSelector: + <<: *im-node-selector-config + - name: im-manager-postgresql-{{ .ENVIRONMENT }} namespace: instance-manager-{{ .CLASSIFICATION }} @@ -66,6 +84,12 @@ deploy: version: 13.2.30 upgradeOnChange: true useHelmSecrets: true + setValues: + primary: + tolerations: + <<: *im-tolerations-config + nodeSelector: + <<: *im-node-selector-config valuesFiles: - helm/data/secrets/{{ .CLASSIFICATION }}/postgresql.yaml - helm/data/values/{{ .CLASSIFICATION }}/postgresql.yaml @@ -106,6 +130,10 @@ deploy: S3_REGION: eu-west-1 DEFAULT_TTL: "172800" # 48 hours PASSWORD_TOKEN_TTL: "900" # 15 minutes + tolerations: + <<: *im-tolerations-config + nodeSelector: + <<: *im-node-selector-config useHelmSecrets: true valuesFiles: - helm/data/secrets/{{ .CLASSIFICATION }}/values.yaml