diff --git a/apps/charts/bytestash/templates/http-service.yaml b/apps/charts/bytestash/templates/http-service.yaml deleted file mode 100644 index a57b37d..0000000 --- a/apps/charts/bytestash/templates/http-service.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: homelab.mortenolsen.pro/v1 -kind: HttpService -metadata: - name: '{{ .Release.Name }}' -spec: - environment: '{{ .Values.environment }}' - subdomain: '{{ .Values.subdomain }}' - destination: - host: '{{ .Release.Name }}' - port: - number: 80 diff --git a/apps/charts/calibre-web/templates/http-service.yaml b/apps/charts/calibre-web/templates/http-service.yaml deleted file mode 100644 index 15b1989..0000000 --- a/apps/charts/calibre-web/templates/http-service.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: homelab.mortenolsen.pro/v1 -kind: HttpService -metadata: - name: "{{ .Release.Name }}" -spec: - environment: "{{ .Values.globals.environment }}" - subdomain: "{{ .Values.subdomain }}" - destination: - host: "{{ .Release.Name }}" - port: - number: 80 diff --git a/apps/charts/gitea/templates/http-service.yaml b/apps/charts/gitea/templates/http-service.yaml deleted file mode 100644 index 15b1989..0000000 --- a/apps/charts/gitea/templates/http-service.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: homelab.mortenolsen.pro/v1 -kind: HttpService -metadata: - name: "{{ .Release.Name }}" -spec: - environment: "{{ .Values.globals.environment }}" - subdomain: "{{ .Values.subdomain }}" - destination: - host: "{{ .Release.Name }}" - port: - number: 80 diff --git a/apps/charts/linkwarden.disabled/templates/http-service.yaml b/apps/charts/linkwarden.disabled/templates/http-service.yaml deleted file mode 100644 index 15b1989..0000000 --- a/apps/charts/linkwarden.disabled/templates/http-service.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: homelab.mortenolsen.pro/v1 -kind: HttpService -metadata: - name: "{{ .Release.Name }}" -spec: - environment: "{{ .Values.globals.environment }}" - subdomain: "{{ .Values.subdomain }}" - destination: - host: "{{ .Release.Name }}" - port: - number: 80 diff --git a/apps/charts/mealie/templates/http-service.yaml b/apps/charts/mealie/templates/http-service.yaml deleted file mode 100644 index 15b1989..0000000 --- a/apps/charts/mealie/templates/http-service.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: homelab.mortenolsen.pro/v1 -kind: HttpService -metadata: - name: "{{ .Release.Name }}" -spec: - environment: "{{ .Values.globals.environment }}" - subdomain: "{{ .Values.subdomain }}" - destination: - host: "{{ .Release.Name }}" - port: - number: 80 diff --git a/apps/charts/memos/Chart.yaml b/apps/charts/memos/Chart.yaml new file mode 100644 index 0000000..333b29f --- /dev/null +++ b/apps/charts/memos/Chart.yaml @@ -0,0 +1,3 @@ +apiVersion: v2 +version: 1.0.0 +name: Jellyfin diff --git a/apps/charts/jellyfin/templates/http-service.yaml b/apps/charts/memos/templates/client.yaml similarity index 50% rename from apps/charts/jellyfin/templates/http-service.yaml rename to apps/charts/memos/templates/client.yaml index 15b1989..0038e1e 100644 --- a/apps/charts/jellyfin/templates/http-service.yaml +++ b/apps/charts/memos/templates/client.yaml @@ -1,11 +1,10 @@ apiVersion: homelab.mortenolsen.pro/v1 -kind: HttpService +kind: OidcClient metadata: name: "{{ .Release.Name }}" spec: environment: "{{ .Values.globals.environment }}" - subdomain: "{{ .Values.subdomain }}" - destination: - host: "{{ .Release.Name }}" - port: - number: 80 + redirectUris: + - path: /auth/callback + subdomain: "{{ .Values.subdomain }}" + matchingMode: strict diff --git a/apps/charts/memos/templates/config-pvc.yaml b/apps/charts/memos/templates/config-pvc.yaml new file mode 100644 index 0000000..8cbd0b4 --- /dev/null +++ b/apps/charts/memos/templates/config-pvc.yaml @@ -0,0 +1,11 @@ +kind: PersistentVolumeClaim +apiVersion: v1 +metadata: + name: "{{ .Release.Name }}-config" +spec: + accessModes: + - "ReadWriteOnce" + resources: + requests: + storage: "1Gi" + storageClassName: "{{ .Values.globals.environment }}" diff --git a/apps/charts/memos/templates/deployment.yaml b/apps/charts/memos/templates/deployment.yaml new file mode 100644 index 0000000..bc24320 --- /dev/null +++ b/apps/charts/memos/templates/deployment.yaml @@ -0,0 +1,49 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: "{{ .Release.Name }}" +spec: + strategy: + type: Recreate + replicas: 1 + revisionHistoryLimit: 0 + selector: + matchLabels: + app: "{{ .Release.Name }}" + template: + metadata: + labels: + app: "{{ .Release.Name }}" + spec: + containers: + - name: "{{ .Release.Name }}" + image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" + imagePullPolicy: "{{ .Values.image.pullPolicy }}" + env: + - name: TZ + value: "{{ .Values.globals.timezone }}" + - name: MEMOS_PORT + value: "5230" + - name: MEMOS_DATA + value: /var/opt/memos + - name: MEMOS_MODE + value: prod + - name: MEMOS_ADDR + value: 0.0.0.0 + ports: + - name: http + containerPort: 5230 + protocol: TCP + livenessProbe: + tcpSocket: + port: http + readinessProbe: + tcpSocket: + port: http + volumeMounts: + - mountPath: /var/opt/memos + name: config + volumes: + - name: config + persistentVolumeClaim: + claimName: "{{ .Release.Name }}-config" diff --git a/apps/charts/appsmith.disabled/templates/http-service.yaml b/apps/charts/memos/templates/external-http-service.yaml similarity index 68% rename from apps/charts/appsmith.disabled/templates/http-service.yaml rename to apps/charts/memos/templates/external-http-service.yaml index 93ab9db..e28916d 100644 --- a/apps/charts/appsmith.disabled/templates/http-service.yaml +++ b/apps/charts/memos/templates/external-http-service.yaml @@ -1,11 +1,11 @@ apiVersion: homelab.mortenolsen.pro/v1 -kind: HttpService +kind: ExternalHttpService metadata: name: '{{ .Release.Name }}' spec: environment: '{{ .Values.globals.environment }}' subdomain: '{{ .Values.subdomain }}' destination: - host: '{{ .Release.Name }}' + host: '{{ .Release.Name }}.{{ .Release.Namespace }}.svc.cluster.local' port: number: 80 diff --git a/apps/charts/memos/templates/service.yaml b/apps/charts/memos/templates/service.yaml new file mode 100644 index 0000000..7b45fc1 --- /dev/null +++ b/apps/charts/memos/templates/service.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: Service +metadata: + name: "{{ .Release.Name }}" + labels: + app: "{{ .Release.Name }}" +spec: + type: ClusterIP + ports: + - port: 80 + targetPort: 5230 + protocol: TCP + name: http + selector: + app: "{{ .Release.Name }}" diff --git a/apps/charts/memos/templates/virtual-service.yaml b/apps/charts/memos/templates/virtual-service.yaml new file mode 100644 index 0000000..0af9b24 --- /dev/null +++ b/apps/charts/memos/templates/virtual-service.yaml @@ -0,0 +1,18 @@ +apiVersion: networking.istio.io/v1 +kind: VirtualService +metadata: + name: "{{ .Release.Name }}" + namespace: "{{ .Release.Namespace }}" +spec: + gateways: + - "{{ .Values.globals.istio.gateway }}" + - mesh + hosts: + - "{{ .Values.subdomain }}.{{ .Values.globals.domain }}" + - mesh + http: + - route: + - destination: + host: "{{ .Release.Name }}" + port: + number: 80 diff --git a/apps/charts/memos/values.yaml b/apps/charts/memos/values.yaml new file mode 100644 index 0000000..4186019 --- /dev/null +++ b/apps/charts/memos/values.yaml @@ -0,0 +1,5 @@ +image: + repository: docker.io/neosmemo/memos + tag: stable + pullPolicy: IfNotPresent +subdomain: memos \ No newline at end of file diff --git a/apps/charts/metabase/templates/http-service.yaml b/apps/charts/metabase/templates/http-service.yaml deleted file mode 100644 index 93ab9db..0000000 --- a/apps/charts/metabase/templates/http-service.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: homelab.mortenolsen.pro/v1 -kind: HttpService -metadata: - name: '{{ .Release.Name }}' -spec: - environment: '{{ .Values.globals.environment }}' - subdomain: '{{ .Values.subdomain }}' - destination: - host: '{{ .Release.Name }}' - port: - number: 80 diff --git a/apps/charts/metamcp/templates/http-service.yaml b/apps/charts/metamcp/templates/http-service.yaml deleted file mode 100644 index 15b1989..0000000 --- a/apps/charts/metamcp/templates/http-service.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: homelab.mortenolsen.pro/v1 -kind: HttpService -metadata: - name: "{{ .Release.Name }}" -spec: - environment: "{{ .Values.globals.environment }}" - subdomain: "{{ .Values.subdomain }}" - destination: - host: "{{ .Release.Name }}" - port: - number: 80 diff --git a/apps/charts/mindsdb.disabled/templates/http-service.yaml b/apps/charts/mindsdb.disabled/templates/http-service.yaml deleted file mode 100644 index 454e263..0000000 --- a/apps/charts/mindsdb.disabled/templates/http-service.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: homelab.mortenolsen.pro/v1 -kind: HttpService -metadata: - name: "{{ .Release.Name }}-http" -spec: - environment: "{{ .Values.globals.environment }}" - subdomain: "{{ .Values.subdomain }}" - destination: - host: "{{ .Release.Name }}-http" - port: - number: 80 diff --git a/apps/charts/miniflux/templates/http-service.yaml b/apps/charts/miniflux/templates/http-service.yaml deleted file mode 100644 index 15b1989..0000000 --- a/apps/charts/miniflux/templates/http-service.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: homelab.mortenolsen.pro/v1 -kind: HttpService -metadata: - name: "{{ .Release.Name }}" -spec: - environment: "{{ .Values.globals.environment }}" - subdomain: "{{ .Values.subdomain }}" - destination: - host: "{{ .Release.Name }}" - port: - number: 80