Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
Wiki
Manage
Activity
Members
Labels
Plan
Issues
53
Issue boards
Milestones
Wiki
Code
Merge requests
6
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MDM Lab
Wiki
Commits
7bfd32fa
Commit
7bfd32fa
authored
1 year ago
by
Remi PLANEL
Browse files
Options
Downloads
Plain Diff
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
!11
Recreate deploy strategy
Pipeline
#112268
passed with stages
in 3 minutes and 47 seconds
Changes
3
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+4
-0
4 additions, 0 deletions
.gitlab-ci.yml
deploy/df-wiki/templates/deployment.yaml
+2
-0
2 additions, 0 deletions
deploy/df-wiki/templates/deployment.yaml
deploy/df-wiki/values.yaml
+2
-0
2 additions, 0 deletions
deploy/df-wiki/values.yaml
with
8 additions
and
0 deletions
.gitlab-ci.yml
+
4
−
0
View file @
7bfd32fa
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
deploy/df-wiki/templates/deployment.yaml
+
2
−
0
View file @
7bfd32fa
...
...
@@ -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
}}
...
...
This diff is collapsed.
Click to expand it.
deploy/df-wiki/values.yaml
+
2
−
0
View file @
7bfd32fa
...
...
@@ -13,6 +13,8 @@ image:
imagePullSecrets
:
[]
nameOverride
:
"
"
fullnameOverride
:
"
"
strategy
:
type
:
RollingUpdate
serviceAccount
:
# Specifies whether a service account should be created
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment