Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
Wiki
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
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
abec5bc8
Commit
abec5bc8
authored
1 year ago
by
Remi PLANEL
Browse files
Options
Downloads
Patches
Plain Diff
specific dev conf deploy to values.development.yaml
parent
6a4d807d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#115197
passed with warnings
1 year ago
Stage: get-data
Stage: build
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+14
-10
14 additions, 10 deletions
.gitlab-ci.yml
deploy/df-wiki/values.development.yaml
+14
-0
14 additions, 0 deletions
deploy/df-wiki/values.development.yaml
deploy/df-wiki/values.production.yaml
+17
-0
17 additions, 0 deletions
deploy/df-wiki/values.production.yaml
with
45 additions
and
10 deletions
.gitlab-ci.yml
+
14
−
10
View file @
abec5bc8
...
@@ -109,6 +109,17 @@ build:dev:
...
@@ -109,6 +109,17 @@ build:dev:
rules
:
rules
:
-
if
:
$CI_COMMIT_BRANCH != "main"
-
if
:
$CI_COMMIT_BRANCH != "main"
build:prod
:
extends
:
.build
variables
:
BASE_URL
:
/wiki/
MEILI_HOST
:
'
https://defense-finder-meilisearch.dev.pasteur.cloud'
MEILI_API_KEY
:
MASTER_KEY
rules
:
-
if
:
$CI_COMMIT_BRANCH == "main"
.deploy
:
.deploy
:
stage
:
deploy
stage
:
deploy
image
:
harbor.pasteur.fr/kube-system/helm-kubectl:$HELM_VERSION
image
:
harbor.pasteur.fr/kube-system/helm-kubectl:$HELM_VERSION
...
@@ -125,17 +136,15 @@ build:dev:
...
@@ -125,17 +136,15 @@ build:dev:
--set registry.username=${DEPLOY_USER}
--set registry.username=${DEPLOY_USER}
--set registry.password=${DEPLOY_TOKEN}
--set registry.password=${DEPLOY_TOKEN}
--set registry.host=${CI_REGISTRY}
--set registry.host=${CI_REGISTRY}
--set ingress.enabled="false"
--set ingress.hosts[0].host="${PUBLIC_URL}"
--set ingress.hosts[0].host="${PUBLIC_URL}"
--set ingress.hosts[0].paths[0].path="/wiki"
--set ingress.hosts[0].paths[0].path="/wiki"
--set ingress.hosts[0].paths[0].pathType="Prefix"
--set ingress.hosts[0].paths[0].pathType="Prefix"
--set ingress.annotations."kubernetes\.io/ingress\.class"="$INGRESS_CLASS"
--set imagePullSecrets[0].name="registry-pull-secret-${CI_COMMIT_REF_SLUG}"
--set imagePullSecrets[0].name="registry-pull-secret-${CI_COMMIT_REF_SLUG}"
--set image.repository="$CI_REGISTRY_IMAGE/$IMAGE_NAME"
--set image.repository="$CI_REGISTRY_IMAGE/$IMAGE_NAME"
--set image.tag="$CI_COMMIT_SHORT_SHA"
--set image.tag="$CI_COMMIT_SHORT_SHA"
--set
image.pullPolicy='Always'
--set
env="${ENV:-development}"
--
set strategy.type="${DEPLOY_STRATEGY}"
--
values values.yaml
--
set env="$ENV"
--
values values.${ENV:-development}.yaml
deploy:dev
:
deploy:dev
:
extends
:
.deploy
extends
:
.deploy
...
@@ -148,11 +157,6 @@ deploy:dev:
...
@@ -148,11 +157,6 @@ deploy:dev:
NODE_ENV
:
"
development"
NODE_ENV
:
"
development"
KUBE_NAMESPACE
:
"
defense-finder-dev"
KUBE_NAMESPACE
:
"
defense-finder-dev"
PUBLIC_URL
:
"
defense-finder.dev.pasteur.cloud"
PUBLIC_URL
:
"
defense-finder.dev.pasteur.cloud"
INGRESS_CLASS
:
"
internal"
AUTOSCALE
:
"
true"
AUTSCALING_MIN_REPLICAS
:
"
1"
AUTSCALING_MAX_REPLICAS
:
"
4"
DEPLOY_STRATEGY
:
"
Recreate"
ENV
:
"
development"
ENV
:
"
development"
environment
:
environment
:
name
:
k8sdev-01
name
:
k8sdev-01
...
...
This diff is collapsed.
Click to expand it.
deploy/df-wiki/values.development.yaml
0 → 100644
+
14
−
0
View file @
abec5bc8
image
:
pullPolicy
:
Always
ingress
:
enabled
:
false
annotations
:
-
kubernetes.io/ingress.class
:
internal
hosts
:
-
host
:
chart-example.local
paths
:
-
path
:
/wiki
pathType
:
Prefix
strategy
:
type
:
Recreate
\ No newline at end of file
This diff is collapsed.
Click to expand it.
deploy/df-wiki/values.production.yaml
0 → 100644
+
17
−
0
View file @
abec5bc8
ingress
:
enabled
:
false
className
:
"
"
annotations
:
-
kubernetes.io/ingress.class
:
internal
# nginx.ingress.kubernetes.io/rewrite-target: /$2
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
hosts
:
-
host
:
chart-example.local
paths
:
-
path
:
/wiki
pathType
:
Prefix
tls
:
[]
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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