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 fcbce2d..0000000 Binary files a/umami/config/umami.env and /dev/null differ 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