feat(umami): initial deploy
All checks were successful
Renovate / renovate (push) Successful in 22s

This commit is contained in:
Peter 2024-04-29 16:52:48 +02:00
parent c953d6ade4
commit 0224df3d7f
Signed by: prskr
GPG key ID: F56BED6903BC5E37
7 changed files with 138 additions and 0 deletions

1
umami/.gitattributes vendored Normal file
View file

@ -0,0 +1 @@
*.env filter=age diff=age merge=age -text

BIN
umami/config/umami.env Normal file

Binary file not shown.

26
umami/kustomization.yaml Normal file
View file

@ -0,0 +1,26 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: umami
images:
- name: umami
newName: ghcr.io/umami-software/umami
newTag: postgresql-v2.11.2
labels:
- includeSelectors: true
pairs:
app.kubernetes.io/instance: icb4dc0de
app.kubernetes.io/managed-by: kustomize
resources:
- "resources/namespace.yaml"
- "resources/deployment.yaml"
- "resources/service.yaml"
- "resources/http_route.yaml"
configMapGenerator:
- name: umami-config
envs:
- config/umami.env

View file

@ -0,0 +1,58 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: umami
spec:
replicas: 2
selector:
matchLabels:
app.kubernetes.io/name: umami
template:
metadata:
labels:
app.kubernetes.io/name: umami
spec:
containers:
- name: umami
image: umami
env:
- name: DATABASE_URL
valueFrom:
secretKeyRef:
name: default-cluster-pguser-umami
key: uri
envFrom:
- configMapRef:
name: umami-config
resources:
requests:
memory: "64Mi"
cpu: "50m"
limits:
memory: "128Mi"
cpu: "100m"
ports:
- containerPort: 3000
protocol: TCP
name: web
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

View file

@ -0,0 +1,34 @@
---
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

View file

@ -0,0 +1,7 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: umami
labels:
prometheus: default

View file

@ -0,0 +1,12 @@
---
apiVersion: v1
kind: Service
metadata:
name: umami
spec:
selector:
app.kubernetes.io/name: umami
ports:
- protocol: TCP
port: 3000
targetPort: 3000