Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
Jupyter Control Notebook 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
Jupyter Control Notebook chart
Commits
cb55a8c7
Commit
cb55a8c7
authored
1 year ago
by
Andrea Michelotti
Browse files
Options
Downloads
Patches
Plain Diff
statefulset
parent
21720e4c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
templates/deployment.yaml
+93
-7
93 additions, 7 deletions
templates/deployment.yaml
templates/storage.yaml
+0
-15
0 additions, 15 deletions
templates/storage.yaml
with
93 additions
and
22 deletions
templates/deployment.yaml
+
93
−
7
View file @
cb55a8c7
apiVersion
:
apps/v1
apiVersion
:
apps/v1
kind
:
Deploymen
t
kind
:
StatefulSe
t
metadata
:
metadata
:
name
:
{{
include "jupyter-control-notebook-chart.fullname" .
}}
name
:
{{
include "jupyter-control-notebook-chart.fullname" .
}}
labels
:
labels
:
{{
- include "jupyter-control-notebook-chart.labels" . | nindent 4
}}
{{
- include "jupyter-control-notebook-chart.labels" . | nindent 4
}}
spec
:
spec
:
{{
- if not .Values.autoscaling.enabled
}}
serviceName
:
"
jupyter-notebook"
replicas
:
{{
.Values.replicaCount
}}
selector
:
matchLabels
:
{{
- include "jupyter-control-notebook-chart.selectorLabels" . | nindent 6
}}
template
:
metadata
:
{{
- with .Values.podAnnotations
}}
annotations
:
{{
- toYaml . | nindent 8
}}
{{
- end
}}
labels
:
{{
- include "jupyter-control-notebook-chart.selectorLabels" . | nindent 8
}}
spec
:
initContainers
:
-
name
:
fix-permissions
image
:
baltig.infn.it:4567/epics-containers/container-init
command
:
-
sh
-
-c
-
|
ls -latr /home/jovyan
id
# chown -R {{ .Values.securityContext.runAsUser }}:{{ .Values.securityContext.fsGroup }} /home/jovyan
volumeMounts
:
-
name
:
jupyter-data
mountPath
:
/home/jovyan
{{
- with .Values.imagePullSecrets
}}
imagePullSecrets
:
{{
- toYaml . | nindent 8
}}
{{
- end
}}
serviceAccountName
:
{{
include "jupyter-control-notebook-chart.serviceAccountName" .
}}
securityContext
:
{{
- toYaml .Values.securityContext | nindent 12
}}
containers
:
-
name
:
{{
.Chart.Name
}}
image
:
"
{{
.Values.image.repository
}}:{{
.Values.image.tag
|
default
.Chart.AppVersion
}}"
imagePullPolicy
:
{{
.Values.image.pullPolicy
}}
volumeMounts
:
-
name
:
jupyter-data
mountPath
:
/home/jovyan/work
stdin
:
{{
.Values.image.stdinOpen
}}
tty
:
{{
.Values.image.tty
}}
{{
- if .Values.configCA.existingConfigMap
}}
envFrom
:
-
configMapRef
:
name
:
{{
.Values.configCA.existingConfigMap
}}
{{
- end
}}
ports
:
-
name
:
http
containerPort
:
8888
protocol
:
TCP
resources
:
{{
- toYaml .Values.resources | nindent 12
}}
{{
- with .Values.nodeSelector
}}
nodeSelector
:
{{
- toYaml . | nindent 8
}}
{{
- end
}}
{{
- with .Values.affinity
}}
affinity
:
{{
- toYaml . | nindent 8
}}
{{
- end
}}
{{
- with .Values.tolerations
}}
tolerations
:
{{
- toYaml . | nindent 8
}}
{{
- end
}}
volumes
:
-
name
:
jupyter-data
persistentVolumeClaim
:
apiVersion
:
apps/v1
kind
:
StatefulSet
metadata
:
name
:
{{
include "jupyter-control-notebook-chart.fullname" .
}}
labels
:
{{
- include "jupyter-control-notebook-chart.labels" . | nindent 4
}}
spec
:
serviceName
:
"
jupyter-notebook"
replicas
:
{{
.Values.replicaCount
}}
replicas
:
{{
.Values.replicaCount
}}
{{
- end
}}
selector
:
selector
:
matchLabels
:
matchLabels
:
{{
- include "jupyter-control-notebook-chart.selectorLabels" . | nindent 6
}}
{{
- include "jupyter-control-notebook-chart.selectorLabels" . | nindent 6
}}
...
@@ -34,14 +112,14 @@ spec:
...
@@ -34,14 +112,14 @@ spec:
volumeMounts
:
volumeMounts
:
-
name
:
jupyter-data
-
name
:
jupyter-data
mountPath
:
/home/jovyan
mountPath
:
/home/jovyan
{{
- with .Values.imagePullSecrets
}}
{{
- with .Values.imagePullSecrets
}}
imagePullSecrets
:
imagePullSecrets
:
{{
- toYaml . | nindent 8
}}
{{
- toYaml . | nindent 8
}}
{{
- end
}}
{{
- end
}}
serviceAccountName
:
{{
include "jupyter-control-notebook-chart.serviceAccountName" .
}}
serviceAccountName
:
{{
include "jupyter-control-notebook-chart.serviceAccountName" .
}}
securityContext
:
securityContext
:
{{
- toYaml .Values.securityContext | nindent 12
}}
{{
- toYaml .Values.securityContext | nindent 12
}}
containers
:
containers
:
-
name
:
{{
.Chart.Name
}}
-
name
:
{{
.Chart.Name
}}
image
:
"
{{
.Values.image.repository
}}:{{
.Values.image.tag
|
default
.Chart.AppVersion
}}"
image
:
"
{{
.Values.image.repository
}}:{{
.Values.image.tag
|
default
.Chart.AppVersion
}}"
...
@@ -80,6 +158,14 @@ spec:
...
@@ -80,6 +158,14 @@ spec:
persistentVolumeClaim
:
persistentVolumeClaim
:
{{
- if .Values.dataVolume.claim
}}
{{
- if .Values.dataVolume.claim
}}
claimName
:
{{
.Values.dataVolume.claim
}}
claimName
:
{{
.Values.dataVolume.claim
}}
{{
- else
}}
claimName
:
{{
include "jupyter-control-notebook-chart.fullname" .
}}
-jupyter-data
{{
- end
}}
{{
- end
}}
{{
- if not .Values.dataVolume.claim
}}
volumeClaimTemplates
:
-
metadata
:
name
:
{{
include "jupyter-control-notebook-chart.fullname" .
}}
-jupyter-data
spec
:
accessModes
:
[
"
ReadWriteOnce"
]
resources
:
requests
:
storage
:
{{
.Values.dataVolume.size
}}
{{
- end
}}
This diff is collapsed.
Click to expand it.
templates/storage.yaml
deleted
100644 → 0
+
0
−
15
View file @
21720e4c
{{
- if not .Values.dataVolume.claim
}}
apiVersion
:
v1
kind
:
PersistentVolumeClaim
metadata
:
name
:
{{
include "jupyter-control-notebook-chart.fullname" .
}}
-jupyter-data
spec
:
accessModes
:
-
{{
.Values.dataVolume.accessMode
}}
resources
:
requests
:
storage
:
{{
.Values.dataVolume.size
}}
---
{{
- end
}}
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