diff --git a/snackager/k8s/production/deployment-prod-pool.yaml b/snackager/k8s/production/deployment-prod-pool.yaml new file mode 100644 index 000000000..581e09e77 --- /dev/null +++ b/snackager/k8s/production/deployment-prod-pool.yaml @@ -0,0 +1,13 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: snackager +spec: + template: + spec: + nodeSelector: + pool: prod + tolerations: + - key: dedicated + value: prod + effect: NoSchedule diff --git a/snackager/k8s/production/kustomization.yaml b/snackager/k8s/production/kustomization.yaml index 1b15ace5d..f24b3268d 100644 --- a/snackager/k8s/production/kustomization.yaml +++ b/snackager/k8s/production/kustomization.yaml @@ -8,6 +8,7 @@ resources: - external-secret-private-key.yaml patchesStrategicMerge: - deployment-increase-replicas.yaml +- deployment-prod-pool.yaml - service-backend.yaml configMapGenerator: - name: snackager-config diff --git a/snackpub/k8s/production/deployment-prod-pool.yaml b/snackpub/k8s/production/deployment-prod-pool.yaml new file mode 100644 index 000000000..5750a56f4 --- /dev/null +++ b/snackpub/k8s/production/deployment-prod-pool.yaml @@ -0,0 +1,13 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: snackpub +spec: + template: + spec: + nodeSelector: + pool: prod + tolerations: + - key: dedicated + value: prod + effect: NoSchedule diff --git a/snackpub/k8s/production/kustomization.yaml b/snackpub/k8s/production/kustomization.yaml index f9bee4098..cd74a8ab7 100644 --- a/snackpub/k8s/production/kustomization.yaml +++ b/snackpub/k8s/production/kustomization.yaml @@ -8,6 +8,7 @@ resources: patchesStrategicMerge: - service-backend.yaml - deployment-replicas.yaml + - deployment-prod-pool.yaml secretGenerator: - name: snackpub-env behavior: merge diff --git a/website/deploy/production/deployment-prod-pool.yaml b/website/deploy/production/deployment-prod-pool.yaml new file mode 100644 index 000000000..6f89c8153 --- /dev/null +++ b/website/deploy/production/deployment-prod-pool.yaml @@ -0,0 +1,13 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: snack +spec: + template: + spec: + nodeSelector: + pool: prod + tolerations: + - key: dedicated + value: prod + effect: NoSchedule diff --git a/website/deploy/production/kustomization.yaml b/website/deploy/production/kustomization.yaml index 519608074..08ff27436 100644 --- a/website/deploy/production/kustomization.yaml +++ b/website/deploy/production/kustomization.yaml @@ -6,6 +6,7 @@ resources: - vertical-pod-autoscaler.yaml patchesStrategicMerge: - deployment-replicas.yaml +- deployment-prod-pool.yaml - service-backend.yaml configMapGenerator: - name: snack