Skip to content

Commit

Permalink
feat: add excalidraw deployment
Browse files Browse the repository at this point in the history
Signed-off-by: Loc Mai <[email protected]>
  • Loading branch information
locmai committed Jan 14, 2023
1 parent 64a3d14 commit 4dd04c9
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 1 deletion.
46 changes: 46 additions & 0 deletions apps/templates/excalidraw.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{{- if .Values.excalidraw.enabled }}
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: {{ .Values.argocd.project }}-excalidraw
namespace: {{ .Values.argocd.namespace }}
annotations:
argocd.argoproj.io/sync-wave: "5"
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: {{ .Values.argocd.project }}
syncPolicy:
automated:
selfHeal: true
prune: true
destination:
name: in-cluster
namespace: {{ .Values.argocd.project }}
source:
chart: excalidraw
repoURL: https://locmai.github.io/charts/
targetRevision: 0.0.1
helm:
releaseName: excalidraw
values: |
ingress:
enabled: true
className: nginx
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
external-dns.alpha.kubernetes.io/target: "{{ .Values.global.env }}-humble-tunnel.{{ .Values.global.domain }}"
external-dns.alpha.kubernetes.io/cloudflare-proxied: "true"
nginx.ingress.kubernetes.io/enable-cors: "true"
nginx.ingress.kubernetes.io/cors-allow-origin: "*"
hosts:
- host: &host draw.{{ .Values.global.domain }}
paths:
- path: /
pathType: Prefix
tls:
- secretName: excalidraw-tls-certificate
hosts:
- *host
{{- end }}
2 changes: 2 additions & 0 deletions apps/values-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ consul:
yutaops:
enabled: false

excalidraw:
enabled: true
1 change: 0 additions & 1 deletion apps/values-stag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@ dashyLandscape:

yutaops:
enabled: false

2 changes: 2 additions & 0 deletions apps/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ dashyLandscape:
yutaops:
enabled: false

excalidraw:
enabled: false

0 comments on commit 4dd04c9

Please sign in to comment.