Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: initialize excalidraw-room #40

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions charts/excalidraw/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dependencies:
- name: minio
repository: https://charts.min.io/
version: 5.0.4
digest: sha256:400cfc659168c4baa7a41849860378a643b7540c64e0a84cd624282edad4455c
generated: "2023-01-14T17:47:28.664925638+07:00"
8 changes: 7 additions & 1 deletion charts/excalidraw/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,10 @@ keywords:
- diagram
maintainers:
- email: [email protected]
name: Loc Mai
name: Loc Mai

dependencies:
- name: minio
version: 5.0.4
repository: https://charts.min.io/
condition: room.enabled
63 changes: 63 additions & 0 deletions charts/excalidraw/templates/room-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{{- if .Values.room.enabled -}}
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "excalidraw.fullname" . }}
labels:
{{- include "excalidraw.labels" . | nindent 4 }}
spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
{{- end }}
selector:
matchLabels:
{{- include "excalidraw.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "excalidraw.selectorLabels" . | nindent 8 }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "excalidraw.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
containers:
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.room.image.repository }}:{{ .Values.room.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.room.image.pullPolicy }}
ports:
- name: http
containerPort: {{ .Values.service.port }}
protocol: TCP
livenessProbe:
httpGet:
path: /
port: http
readinessProbe:
httpGet:
path: /
port: http
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 }}
{{- end }}
25 changes: 24 additions & 1 deletion charts/excalidraw/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
##
replicaCount: 1

## Excalidraw image
## Excalidraw
## ref: https://hub.docker.com/r/excalidraw/excalidraw/tags
## @param image.repository image repository
## @param image.pullPolicy pull policy
Expand Down Expand Up @@ -99,3 +99,26 @@ tolerations: []

## @skip affinity
affinity: {}

## Excalidraw Room
## ref: https://hub.docker.com/r/excalidraw/excalidraw-room/tags
## @param room.enabled whether to enable excalidraw-room and minio
room:
enabled: false
image:
repository: excalidraw/excalidraw-room
pullPolicy: IfNotPresent
tag: "latest"

## Minio
## ref: https://github.com/minio/minio/blob/master/helm/minio/values.yaml
## @skip minio
minio:
mode: standalone
rootUser: "excalidraw"
rootPassword: "excalidraw" # 2023 security in a nutshell

persistence:
enabled: true
accessMode: ReadWriteOnce
size: 5Gi