Skip to content
Snippets Groups Projects
Commit 7bfd32fa authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

Merge branch 'deploy-strategy' into 'dev'

Recreate deploy strategy

See merge request !11
parents 0969d950 c007dad3
No related branches found
No related tags found
1 merge request!11Recreate deploy strategy
Pipeline #112268 passed with stages
in 3 minutes and 47 seconds
......@@ -50,6 +50,8 @@ build:dev:
variables:
CI_DEBUG_TRACE: "true"
TEAM_ID: "df"
DEPLOY_STRATEGY: RollingUpdate
script:
- >
helm upgrade --install $CI_PROJECT_NAME-$CI_ENVIRONMENT_NAME ./deploy/df-wiki --namespace=${KUBE_NAMESPACE}
......@@ -61,6 +63,7 @@ build:dev:
--set image.repository="$CI_REGISTRY_IMAGE/$IMAGE_NAME"
--set image.tag="$CI_COMMIT_SHORT_SHA"
--set image.pullPolicy='Always'
--set strategy.type="${DEPLOY_STRATEGY}"
--set env="$ENV"
deploy:dev:
......@@ -77,6 +80,7 @@ deploy:dev:
AUTOSCALE: "true"
AUTSCALING_MIN_REPLICAS: "1"
AUTSCALING_MAX_REPLICAS: "4"
DEPLOY_STRATEGY: "Recreate"
ENV: "development"
environment:
name: k8sdev-01
......
......@@ -8,6 +8,8 @@ spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
{{- end }}
strategy:
type: {{ .Values.strategy.type }}
selector:
matchLabels:
{{- include "df-wiki.selectorLabels" . | nindent 6 }}
......
......@@ -13,6 +13,8 @@ image:
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
strategy:
type: RollingUpdate
serviceAccount:
# Specifies whether a service account should be created
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment