]> git.frustrated-labs.net Git - dotfiles.git/commitdiff
feat: add umami deployment
authorAlexander Goussas <[email protected]>
Fri, 1 May 2026 14:32:37 +0000 (09:32 -0500)
committerAlexander Goussas <[email protected]>
Fri, 1 May 2026 14:32:37 +0000 (09:32 -0500)
k8s/umami.yaml [new file with mode: 0644]

diff --git a/k8s/umami.yaml b/k8s/umami.yaml
new file mode 100644 (file)
index 0000000..40b22ce
--- /dev/null
@@ -0,0 +1,58 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+  name: umami
+spec:
+  selector:
+    matchLabels:
+      app: umami
+  replicas: 1
+  template:
+    metadata:
+      labels:
+        app: umami
+    spec:
+      containers:
+        - name: umami
+          image: ghcr.io/umami-software/umami:latest
+          imagePullPolicy: Always
+          ports:
+            - containerPort: 3000
+          env:
+            - name: DATABASE_URL
+              value: postgresql://umami:[email protected]:5432/umami
+            - name: APP_SECRET
+              value: ${UMAMI_APP_SECRET}
+            - name: SKIP_LOCATION_HEADERS
+              value: 1
+            - name: DISABLE_UPDATES
+              value: 1
+            - name: DISABLE_TELEMETRY
+              value: 1
+        # TODO: Consider mounting a volume to backup this data.
+        # TODO: Use secrets for db configuration.
+        - name: umami-postgres
+          image: postgres:15-alpine
+          env:
+            - name: POSTGRES_DB
+              value: umami
+            - name: POSTGRES_USER
+              value: umami
+            - name: POSTGRES_PASSWORD
+              value: umami
+---
+apiVersion: v1
+kind: Service
+metadata:
+  name: umami-service
+  labels:
+    app: umami
+spec:
+  type: NodePort
+  ports:
+    - port: 3000
+      targetPort: 3000
+      protocol: TCP
+      name: http
+  selector:
+    app: umami