From 403b4b564e9105b03cb495b3c878b1f29fbed084 Mon Sep 17 00:00:00 2001 From: Adrien Bouvais Date: Fri, 14 Aug 2026 16:35:16 +0200 Subject: [PATCH] Added tenant chart --- charts/tenant/Chart.yaml | 6 +++++ charts/tenant/templates/deployment.yaml | 30 +++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 charts/tenant/Chart.yaml create mode 100644 charts/tenant/templates/deployment.yaml diff --git a/charts/tenant/Chart.yaml b/charts/tenant/Chart.yaml new file mode 100644 index 0000000..900375f --- /dev/null +++ b/charts/tenant/Chart.yaml @@ -0,0 +1,6 @@ +apiVersion: v2 +name: tenant +description: Helm chart for workspace tenant +type: application +version: 0.1.0 +appVersion: "1.0.0" diff --git a/charts/tenant/templates/deployment.yaml b/charts/tenant/templates/deployment.yaml new file mode 100644 index 0000000..305dde1 --- /dev/null +++ b/charts/tenant/templates/deployment.yaml @@ -0,0 +1,30 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ .Values.name }}-jupyter + namespace: {{ .Release.Namespace }} + labels: + app: jupyter + tenant: 'tenant-{{.name}}' +spec: + replicas: 1 + selector: + matchLabels: + app: jupyter + tenant: 'tenant-{{.name}}' + template: + metadata: + labels: + app: jupyter + tenant: 'tenant-{{.name}}' + spec: + containers: + - name: jupyter + image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" + resources: + requests: + cpu: {{ .Values.resources.requests.cpu }} + memory: {{ .Values.resources.requests.memory }} + limits: + cpu: {{ .Values.resources.limits.cpu }} + memory: {{ .Values.resources.limits.memory }}