Skip to content

Commit

Permalink
ci: add nodeSelector and tolerations for dedicated IM envs node
Browse files Browse the repository at this point in the history
Signed-off-by: Rado <radoslav@dhis2.org>
  • Loading branch information
radnov committed Oct 10, 2024
1 parent b7f0ade commit 1d5d173
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions skaffold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@
# corsAllowOrigins:
# - "https://{{ .UI_URL }}"

.im-tolerations-config: &im-tolerations-config
key: im-dedicated
operator: Equal
value: true
effect: NoSchedule

.im-node-selector-config: &im-node-selector-config
im-dedicated: true

apiVersion: skaffold/v4beta6
kind: Config
metadata:
Expand Down Expand Up @@ -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

Expand All @@ -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 }}
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1d5d173

Please sign in to comment.