diff --git a/charts/silverbullet/Chart.yaml b/charts/silverbullet/Chart.yaml new file mode 100644 index 0000000..a4b9cc4 --- /dev/null +++ b/charts/silverbullet/Chart.yaml @@ -0,0 +1,8 @@ +apiVersion: v2 +name: silverbullet +description: A Helm chart for Kubernetes + +type: application +version: 0.1.0 + +appVersion: "0.0.1" diff --git a/charts/silverbullet/templates/deployment.yaml b/charts/silverbullet/templates/deployment.yaml new file mode 100644 index 0000000..5b20de9 --- /dev/null +++ b/charts/silverbullet/templates/deployment.yaml @@ -0,0 +1,34 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ printf "%s-silverbullet" .Release.Name }} +spec: + replicas: 1 + selector: + matchLabels: + app: silverbullet + template: + metadata: + labels: + app: silverbullet + spec: + containers: + - name: silverbullet + image: {{ required "image is required" .Values.image | quote }} + ports: + - containerPort: 3000 + name: web + protocol: TCP + volumeMounts: + - name: config-volume + mountPath: /config + - name: data + mountPath: /data + restartPolicy: Always + volumes: + - name: config-volume + configMap: + name: {{ printf "%s-silverbullet" .Release.Name }} + - name: data + persistentVolumeClaim: + claimName: {{ printf "%s-silverbullet" .Release.Name }} diff --git a/charts/silverbullet/templates/pvc.yaml b/charts/silverbullet/templates/pvc.yaml new file mode 100644 index 0000000..faf452d --- /dev/null +++ b/charts/silverbullet/templates/pvc.yaml @@ -0,0 +1,10 @@ +kind: PersistentVolumeClaim +apiVersion: v1 +metadata: + name: {{ printf "%s-silverbullet" .Release.Name }} +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 1G diff --git a/charts/silverbullet/templates/route.yaml b/charts/silverbullet/templates/route.yaml new file mode 100644 index 0000000..43ba8e8 --- /dev/null +++ b/charts/silverbullet/templates/route.yaml @@ -0,0 +1,16 @@ +apiVersion: traefik.io/v1alpha1 +kind: IngressRoute +metadata: + name: {{ printf "%s-silverbullet" .Release.Name }} +spec: + entryPoints: + - websecure + routes: + - match: Host(`notes.incngrnt.ca`) && PathPrefix(`/`) + kind: Rule + services: + - kind: Service + name: {{ printf "%s-silverbullet" .Release.Name }} + port: 5000 + tls: + certResolver: letsencrypt diff --git a/charts/silverbullet/templates/service.yaml b/charts/silverbullet/templates/service.yaml new file mode 100644 index 0000000..9e5bcba --- /dev/null +++ b/charts/silverbullet/templates/service.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: Service +metadata: + name: {{ printf "%s-silverbullet" .Release.Name }} +spec: + selector: + app: selverbullet + ports: + - name: web + protocol: TCP + port: 3000 diff --git a/charts/silverbullet/values.yaml b/charts/silverbullet/values.yaml new file mode 100644 index 0000000..e69de29