Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MetaGer Keymanager
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
open-source
MetaGer Keymanager
Commits
27fb274f
Commit
27fb274f
authored
2 years ago
by
Dominik Hebeler
Browse files
Options
Downloads
Patches
Plain Diff
added applicationSecret
parent
ec5297c8
No related branches found
No related tags found
No related merge requests found
Pipeline
#7231
passed
2 years ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
chart/templates/deployment.yaml
+18
-0
18 additions, 0 deletions
chart/templates/deployment.yaml
chart/values.yaml
+2
-0
2 additions, 0 deletions
chart/values.yaml
with
20 additions
and
0 deletions
chart/templates/deployment.yaml
+
18
−
0
View file @
27fb274f
...
...
@@ -26,12 +26,30 @@ spec:
{{
- end
}}
securityContext
:
{{
- toYaml .Values.podSecurityContext | nindent 8
}}
volumes
:
{{
- if .Values.application.secretName
}}
-
name
:
application-secret
secret
:
secretName
:
{{
.Values.application.secretName
}}
defaultMode
:
420
{{
- else
}}
[]
{{
- end
}}
containers
:
-
name
:
{{
.Chart.Name
}}
securityContext
:
{{
- toYaml .Values.securityContext | nindent 12
}}
image
:
"
{{
.Values.image.repository
}}:{{
.Values.image.tag
|
default
.Chart.AppVersion
}}"
imagePullPolicy
:
{{
.Values.image.pullPolicy
}}
volumeMounts
:
{{
- if .Values.application.secretName
}}
-
name
:
application-secret
readOnly
:
true
mountPath
:
/app/config/production.json
subPath
:
production.json
{{
- else
}}
[]
{{
- end
}}
ports
:
-
name
:
http
containerPort
:
3000
...
...
This diff is collapsed.
Click to expand it.
chart/values.yaml
+
2
−
0
View file @
27fb274f
...
...
@@ -14,6 +14,8 @@ imagePullSecrets:
-
name
:
pull-secret
nameOverride
:
"
"
fullnameOverride
:
"
"
application
:
secretName
:
"
"
podAnnotations
:
{}
...
...
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