Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add nodeSelector and tolerations for dedicated prod env node #917

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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