Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Ca Gateway Chart
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
epics-containers
Ca Gateway Chart
Commits
fdf00181
Commit
fdf00181
authored
7 months ago
by
Andrea Michelotti
Browse files
Options
Downloads
Patches
Plain Diff
statefulset gateway
parent
7509798a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/deployment.yaml
+15
-62
15 additions, 62 deletions
templates/deployment.yaml
with
15 additions
and
62 deletions
templates/deployment.yaml
+
15
−
62
View file @
fdf00181
apiVersion
:
apps/v1
kind
:
Deploymen
t
kind
:
StatefulSe
t
metadata
:
name
:
{{
include "ca-gateway-chart.fullname" .
}}
labels
:
...
...
@@ -9,6 +9,7 @@ spec:
selector
:
matchLabels
:
{{
- include "ca-gateway-chart.selectorLabels" . | nindent 6
}}
serviceName
:
{{
include "ca-gateway-chart.fullname" .
}}
template
:
metadata
:
{{
- with .Values.podAnnotations
}}
...
...
@@ -19,63 +20,14 @@ spec:
{{
- include "ca-gateway-chart.selectorLabels" . | nindent 8
}}
spec
:
serviceAccountName
:
{{
include "ca-gateway-chart.serviceAccountName" .
}}
{{
- if 0
}}
initContainers
:
-
name
:
init-volumes
image
:
baltig.infn.it:4567/epics-containers/container-init
securityContext
:
{{
- toYaml .Values.securityContext | nindent 12
}}
command
:
-
sh
-
-c
-
|
id
ls -latr /config
pwd
mountdir=/config
cd $mountdir
pwd
ls -latr
if [ -n {{ .Values.gitRepoConfig.url }} ]; then
if [ -n "{{ .Values.gitRepoConfig.branch }}" ]; then
git clone -b {{ .Values.gitRepoConfig.branch }} {{ .Values.gitRepoConfig.url }} --recurse-submodules
else
git clone {{ .Values.gitRepoConfig.url }} --recurse-submodules
fi
if [ -d temp-config/{{ .Values.gitRepoConfig.path }} ]; then
if [ "{{ .Values.gitRepoConfig.path }}" != "." ]; then
mv {{ .Values.gitRepoConfig.path }}/* $mountdir/
fi
fi
# chmod a+w,a+r -R $mountdir
fi
imagePullPolicy
:
IfNotPresent
resources
:
{{
toYaml .Values.resources | indent 8
}}
securityContext
:
{{
toYaml .Values.securityContext | nindent 8
}}
volumeMounts
:
-
name
:
host-config
mountPath
:
/config
{{
- end
}}
{{
- with .Values.imagePullSecrets
}}
imagePullSecrets
:
{{
- toYaml . | nindent 8
}}
{{
- end
}}
containers
:
-
name
:
{{
.Chart.Name
}}
image
:
"
{{
.Values.image.repository
}}:{{
.Values.image.tag
|
default
.Chart.AppVersion
}}"
imagePullPolicy
:
{{
.Values.image.pullPolicy
}}
{{
- if .Values.gitRepoConfig.url
}}
# volumeMounts:
# - name: host-config
# mountPath: /config
{{
- if .Values.gitRepoConfig.exec
}}
command
:
-
sh
-
sh
-
-c
-
|
mountdir=/epics/ca-gateway/configure
...
...
@@ -105,10 +57,10 @@ spec:
-
configMapRef
:
name
:
{{
.Values.epicsConfiguration.name
}}
{{
- end
}}
{{
- range $envVar
:
= .Values.env
}}
-
name
:
{{
$envVar.name
}}
value
:
{{
$envVar.value | quote
}}
{{
- end
}}
{{
- range $envVar
:
= .Values.env
}}
-
name
:
{{
$envVar.name
}}
value
:
{{
$envVar.value | quote
}}
{{
- end
}}
ports
:
-
containerPort
:
5064
-
containerPort
:
5065
...
...
@@ -128,10 +80,11 @@ spec:
tolerations
:
{{
- toYaml . | nindent 8
}}
{{
- end
}}
# {{- if .Values.gitRepoConfig.url }}
# volumes:
# - name: host-config
# hostPath:
# path: /tmp
# {{- end }}
volumeClaimTemplates
:
-
metadata
:
name
:
data
spec
:
accessModes
:
[
"
ReadWriteOnce"
]
resources
:
requests
:
storage
:
1Gi
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