From 26a7d6008b82cfc0f27e9268f2d4124c730bd1e2 Mon Sep 17 00:00:00 2001 From: Bo Xu Date: Wed, 6 Apr 2022 17:18:43 -0700 Subject: [PATCH] Create default config map for ai-config (#1520) * Create default config map for ai-config * more --- deploy/base/ai.yaml | 0 deploy/base/kustomization.yaml | 5 +++++ deploy/overlays/autopush/kustomization.yaml | 1 + deploy/overlays/dev/kustomization.yaml | 3 ++- deploy/overlays/prod/kustomization.yaml | 1 + 5 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 deploy/base/ai.yaml diff --git a/deploy/base/ai.yaml b/deploy/base/ai.yaml new file mode 100644 index 0000000000..e69de29bb2 diff --git a/deploy/base/kustomization.yaml b/deploy/base/kustomization.yaml index bc4b092a1f..6936f9fcb1 100644 --- a/deploy/base/kustomization.yaml +++ b/deploy/base/kustomization.yaml @@ -25,3 +25,8 @@ resources: - ../../mixer/deploy/mapping - deployment.yaml - namespace.yaml + +configMapGenerator: + - name: ai-config + files: + - ai.yaml diff --git a/deploy/overlays/autopush/kustomization.yaml b/deploy/overlays/autopush/kustomization.yaml index d57c4bc32b..35b8f9f8ac 100644 --- a/deploy/overlays/autopush/kustomization.yaml +++ b/deploy/overlays/autopush/kustomization.yaml @@ -38,6 +38,7 @@ configMapGenerator: - mixerProject=datcom-website-autopush - serviceName=website-esp.endpoints.datcom-website-autopush.cloud.goog - name: ai-config + behavior: replace files: - ai.yaml diff --git a/deploy/overlays/dev/kustomization.yaml b/deploy/overlays/dev/kustomization.yaml index 285de74e17..5d2ef17c58 100644 --- a/deploy/overlays/dev/kustomization.yaml +++ b/deploy/overlays/dev/kustomization.yaml @@ -35,6 +35,7 @@ configMapGenerator: - mixerProject=datcom-website-dev - serviceName=website-esp.endpoints.datcom-website-dev.cloud.goog - name: ai-config + behavior: replace files: - ai.yaml @@ -52,4 +53,4 @@ patchesStrategicMerge: # maximum number of Pods that can be created over the desired number of Pods maxSurge: 2 # maximum number of Pods that can be unavailable during the update process - maxUnavailable: 75% \ No newline at end of file + maxUnavailable: 75% diff --git a/deploy/overlays/prod/kustomization.yaml b/deploy/overlays/prod/kustomization.yaml index 0ca1b6926a..9edad99c0b 100644 --- a/deploy/overlays/prod/kustomization.yaml +++ b/deploy/overlays/prod/kustomization.yaml @@ -41,6 +41,7 @@ configMapGenerator: files: - redis.json - name: ai-config + behavior: replace files: - ai.yaml