From 00064cc705c43dc652113d72de3ea3d0ef1d44f6 Mon Sep 17 00:00:00 2001 From: Diego Lagos <92735530+diegolagospagopa@users.noreply.github.com> Date: Sun, 26 Jun 2022 11:01:07 +0200 Subject: [PATCH] fix: Updated values to support canary deploy (#24) --- helm/Chart.lock | 6 +++--- helm/Chart.yaml | 2 +- helm/values-dev.yaml | 50 +++++++++++++++++++++++++++++++++----------- 3 files changed, 42 insertions(+), 16 deletions(-) diff --git a/helm/Chart.lock b/helm/Chart.lock index ebf0061..0fd949d 100644 --- a/helm/Chart.lock +++ b/helm/Chart.lock @@ -1,6 +1,6 @@ dependencies: - name: microservice-chart repository: https://pagopa.github.io/aks-microservice-chart-blueprint - version: 1.17.0 -digest: sha256:1b482d1bc27ff2248747daf12797aed90c5b40466cb9df98e7583a56c640a5d0 -generated: "2022-06-11T13:16:31.480418+02:00" + version: 1.18.0 +digest: sha256:c8dbe32272839f29c0b258a1fd7d7c8311684d1a112c435961f1e624ef32a95a +generated: "2022-06-26T10:41:48.119366+02:00" diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 879ebe7..70a39a1 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -6,5 +6,5 @@ version: 1.0.0 appVersion: 1.0.0 dependencies: - name: microservice-chart - version: 1.17.0 + version: 1.18.0 repository: "https://pagopa.github.io/aks-microservice-chart-blueprint" diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index 85ab806..3adf46e 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -3,9 +3,44 @@ microservice-chart: nameOverride: "" fullnameOverride: "" + canaryDelivery: + create: false + ingress: + create: true + canary: + type: bluegreen + # canary: + # type: header + # headerName: canary + # headerValue: pagopa + # weightPercent: 10 + service: + create: true + deployment: + create: true + image: + repository: ghcr.io/pagopa/devops-java-springboot-color + tag: 0.7.1 + pullPolicy: Always + envConfig: + MY_APP_COLOR: "blue" + progressive-delivery: "ok" + envSecret: + aks-api-url: cstar-d-weu-dev01-aks-apiserver-url + + deployment: + create: true + + envConfig: + APP: foo + MY_APP_COLOR: "green" + + envSecret: + aks-api-url: cstar-d-weu-dev01-aks-apiserver-url + image: - repository: cstardcommonacr.azurecr.io/devopsjavaspringbootcolor - tag: latest + repository: ghcr.io/pagopa/devops-java-springboot-color + tag: 0.7.1 pullPolicy: Always livenessProbe: @@ -24,9 +59,6 @@ microservice-chart: failureThreshold: 6 periodSeconds: 10 - deployment: - create: true - service: create: true type: ClusterIP @@ -60,7 +92,7 @@ microservice-chart: cpu: "150m" autoscaling: - enable: true + enable: false minReplica: 1 maxReplica: 2 pollingInterval: 30 # seconds @@ -79,12 +111,6 @@ microservice-chart: metricAggregationType: Count targetValue: "30" - envConfig: - APP: foo - - envSecret: - aks-api-url: cstar-d-weu-dev01-aks-apiserver-url - keyvault: name: "cstar-d-idpay-kv" tenantId: "7788edaf-0346-4068-9d79-c868aed15b3d"