This commit is contained in:
parent
c953d6ade4
commit
0224df3d7f
7 changed files with 138 additions and 0 deletions
1
umami/.gitattributes
vendored
Normal file
1
umami/.gitattributes
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
*.env filter=age diff=age merge=age -text
|
BIN
umami/config/umami.env
Normal file
BIN
umami/config/umami.env
Normal file
Binary file not shown.
26
umami/kustomization.yaml
Normal file
26
umami/kustomization.yaml
Normal 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
|
58
umami/resources/deployment.yaml
Normal file
58
umami/resources/deployment.yaml
Normal 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
|
34
umami/resources/http_route.yaml
Normal file
34
umami/resources/http_route.yaml
Normal 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
|
7
umami/resources/namespace.yaml
Normal file
7
umami/resources/namespace.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: umami
|
||||
labels:
|
||||
prometheus: default
|
12
umami/resources/service.yaml
Normal file
12
umami/resources/service.yaml
Normal 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
|
Loading…
Reference in a new issue