From aa994be42fb3adda70d1d61b5978846cc1343396 Mon Sep 17 00:00:00 2001 From: Peter Kurfer Date: Tue, 26 Nov 2024 20:08:41 +0100 Subject: [PATCH] chore(umami): decomission --- umami/.gitattributes | 1 - umami/config/umami.env | Bin 488 -> 0 bytes umami/kustomization.yaml | 28 --------- umami/resources/db/db.yaml | 8 --- umami/resources/db/user.yaml | 12 ---- umami/resources/deployment.yaml | 103 -------------------------------- umami/resources/http_route.yaml | 34 ----------- umami/resources/namespace.yaml | 7 --- umami/resources/service.yaml | 12 ---- 9 files changed, 205 deletions(-) delete mode 100644 umami/.gitattributes delete mode 100644 umami/config/umami.env delete mode 100644 umami/kustomization.yaml delete mode 100644 umami/resources/db/db.yaml delete mode 100644 umami/resources/db/user.yaml delete mode 100644 umami/resources/deployment.yaml delete mode 100644 umami/resources/http_route.yaml delete mode 100644 umami/resources/namespace.yaml delete mode 100644 umami/resources/service.yaml diff --git a/umami/.gitattributes b/umami/.gitattributes deleted file mode 100644 index b00dc4d..0000000 --- a/umami/.gitattributes +++ /dev/null @@ -1 +0,0 @@ -*.env filter=age diff=age merge=age -text diff --git a/umami/config/umami.env b/umami/config/umami.env deleted file mode 100644 index fcbce2d8ac5d0e70cdc6a2535d5594f48085fcae..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 488 zcmVqea8E;1Mr>743Nreq-sWLf;GG~98g*M{It=_>)+DT-pTs=!WdhL}b;`V>lKGSU z7pedCuV4ndZZs^q4B1!tqQBbxVxb!XjFVMAzcU8W7IYG_htrr%{2a(E9N*6zScZMh8L>=?gv8^&ke5s@L(Cz>&}Vj9$tk7t01S#mRXU z%mK<$lLj(U>pe$F1eCS>|cTE_7^k*BVfTZvAS>})x(eg diff --git a/umami/kustomization.yaml b/umami/kustomization.yaml deleted file mode 100644 index 28a8e35..0000000 --- a/umami/kustomization.yaml +++ /dev/null @@ -1,28 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization - -namespace: umami - -images: - - name: umami - newName: ghcr.io/umami-software/umami - newTag: postgresql-v2.12.1 - -labels: -- includeSelectors: true - pairs: - app.kubernetes.io/instance: icb4dc0de - app.kubernetes.io/managed-by: kustomize - -resources: - - "resources/namespace.yaml" - - "resources/db/db.yaml" - - "resources/db/user.yaml" - - "resources/deployment.yaml" - - "resources/service.yaml" - - "resources/http_route.yaml" - -configMapGenerator: - - name: umami-config - envs: - - config/umami.env \ No newline at end of file diff --git a/umami/resources/db/db.yaml b/umami/resources/db/db.yaml deleted file mode 100644 index b2b25ce..0000000 --- a/umami/resources/db/db.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -apiVersion: db.movetokube.com/v1alpha1 -kind: Postgres -metadata: - name: umami -spec: - database: umami - dropOnDelete: false \ No newline at end of file diff --git a/umami/resources/db/user.yaml b/umami/resources/db/user.yaml deleted file mode 100644 index 446cec7..0000000 --- a/umami/resources/db/user.yaml +++ /dev/null @@ -1,12 +0,0 @@ ---- -apiVersion: db.movetokube.com/v1alpha1 -kind: PostgresUser -metadata: - name: umami -spec: - role: umami - database: umami - secretName: db-credentials - privileges: OWNER - secretTemplate: - PQ_URL: "postgresql://{{.Role}}:{{.Password}}@{{.Host}}:5432/{{.Database}}" \ No newline at end of file diff --git a/umami/resources/deployment.yaml b/umami/resources/deployment.yaml deleted file mode 100644 index 6b9c6fb..0000000 --- a/umami/resources/deployment.yaml +++ /dev/null @@ -1,103 +0,0 @@ ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: umami -spec: - replicas: 1 - selector: - matchLabels: - app.kubernetes.io/name: umami - template: - metadata: - labels: - app.kubernetes.io/name: umami - spec: - initContainers: - - name: init-db - image: umami - command: - - /app/node_modules/.bin/npm-run-all - args: - - check-db - - update-tracker - env: - - name: DATABASE_URL - valueFrom: - secretKeyRef: - name: default-cluster-pguser-umami - key: PQ_URL - envFrom: - - configMapRef: - name: umami-config - resources: - requests: - memory: "256Mi" - cpu: "150m" - limits: - memory: "384Mi" - cpu: "250m" - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - ALL - readOnlyRootFilesystem: true - containers: - - name: umami - image: umami - args: - - node - - server.js - env: - - name: DATABASE_URL - valueFrom: - secretKeyRef: - name: db-credentials-umami - key: PQ_URL - envFrom: - - configMapRef: - name: umami-config - resources: - requests: - memory: "64Mi" - cpu: "150m" - limits: - memory: "256Mi" - cpu: "300m" - ports: - - containerPort: 3000 - protocol: TCP - name: web - livenessProbe: - httpGet: - path: /api/heartbeat - port: 3000 - initialDelaySeconds: 15 - periodSeconds: 20 - readinessProbe: - httpGet: - path: /api/heartbeat - port: 3000 - initialDelaySeconds: 5 - periodSeconds: 10 - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - ALL - readOnlyRootFilesystem: true - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - weight: 100 - preference: - matchExpressions: - - key: kubernetes.io/arch - operator: In - values: - - arm64 - securityContext: - runAsUser: 1000 - runAsGroup: 1000 - runAsNonRoot: true diff --git a/umami/resources/http_route.yaml b/umami/resources/http_route.yaml deleted file mode 100644 index 9d3f39b..0000000 --- a/umami/resources/http_route.yaml +++ /dev/null @@ -1,34 +0,0 @@ ---- -apiVersion: gateway.networking.k8s.io/v1 -kind: HTTPRoute -metadata: - name: umami-http -spec: - parentRefs: - - name: contour - sectionName: http - namespace: projectcontour - hostnames: - - analytics.icb4dc0.de - rules: - - filters: - - type: RequestRedirect - requestRedirect: - scheme: https - statusCode: 301 ---- -apiVersion: gateway.networking.k8s.io/v1 -kind: HTTPRoute -metadata: - name: umami-https -spec: - parentRefs: - - name: contour - sectionName: https - namespace: projectcontour - hostnames: - - analytics.icb4dc0.de - rules: - - backendRefs: - - name: umami - port: 3000 \ No newline at end of file diff --git a/umami/resources/namespace.yaml b/umami/resources/namespace.yaml deleted file mode 100644 index dc0519b..0000000 --- a/umami/resources/namespace.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -apiVersion: v1 -kind: Namespace -metadata: - name: umami - labels: - prometheus: default \ No newline at end of file diff --git a/umami/resources/service.yaml b/umami/resources/service.yaml deleted file mode 100644 index 4c32749..0000000 --- a/umami/resources/service.yaml +++ /dev/null @@ -1,12 +0,0 @@ ---- -apiVersion: v1 -kind: Service -metadata: - name: umami -spec: - selector: - app.kubernetes.io/name: umami - ports: - - protocol: TCP - port: 3000 - targetPort: 3000 \ No newline at end of file