This commit is contained in:
parent
9e82ddf509
commit
aa994be42f
9 changed files with 0 additions and 205 deletions
1
umami/.gitattributes
vendored
1
umami/.gitattributes
vendored
|
@ -1 +0,0 @@
|
|||
*.env filter=age diff=age merge=age -text
|
Binary file not shown.
|
@ -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
|
|
@ -1,8 +0,0 @@
|
|||
---
|
||||
apiVersion: db.movetokube.com/v1alpha1
|
||||
kind: Postgres
|
||||
metadata:
|
||||
name: umami
|
||||
spec:
|
||||
database: umami
|
||||
dropOnDelete: false
|
|
@ -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}}"
|
|
@ -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
|
|
@ -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
|
|
@ -1,7 +0,0 @@
|
|||
---
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: umami
|
||||
labels:
|
||||
prometheus: default
|
|
@ -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
|
Loading…
Reference in a new issue