Files
infrastructure/clusters/cl01tl/manifests/dawarich/Deployment-dawarich.yaml
gitea-bot 733c4c9f54 Automated Manifest Update (#4403)
This PR contains newly rendered Kubernetes manifests automatically generated by the CI workflow.

Reviewed-on: #4403
Co-authored-by: gitea-bot <gitea-bot@alexlebens.net>
Co-committed-by: gitea-bot <gitea-bot@alexlebens.net>
2026-03-03 23:22:59 +00:00

232 lines
7.5 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: dawarich
labels:
app.kubernetes.io/controller: main
app.kubernetes.io/instance: dawarich
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: dawarich
helm.sh/chart: dawarich-4.6.2
namespace: dawarich
spec:
revisionHistoryLimit: 3
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app.kubernetes.io/controller: main
app.kubernetes.io/name: dawarich
app.kubernetes.io/instance: dawarich
template:
metadata:
labels:
app.kubernetes.io/controller: main
app.kubernetes.io/instance: dawarich
app.kubernetes.io/name: dawarich
spec:
enableServiceLinks: false
serviceAccountName: default
automountServiceAccountToken: true
hostIPC: false
hostNetwork: false
hostPID: false
dnsPolicy: ClusterFirst
containers:
- args:
- bin/rails
- server
- -p
- "3000"
- -b
- '::'
command:
- web-entrypoint.sh
env:
- name: RAILS_ENV
value: production
- name: REDIS_URL
value: redis://dawarich-valkey.dawarich:6379
- name: DATABASE_HOST
valueFrom:
secretKeyRef:
key: host
name: dawarich-postgresql-18-cluster-app
- name: DATABASE_PORT
valueFrom:
secretKeyRef:
key: port
name: dawarich-postgresql-18-cluster-app
- name: DATABASE_USERNAME
valueFrom:
secretKeyRef:
key: user
name: dawarich-postgresql-18-cluster-app
- name: DATABASE_PASSWORD
valueFrom:
secretKeyRef:
key: password
name: dawarich-postgresql-18-cluster-app
- name: DATABASE_NAME
valueFrom:
secretKeyRef:
key: dbname
name: dawarich-postgresql-18-cluster-app
- name: APPLICATION_HOSTS
value: dawarich.alexlebens.net,dawarich.dawarich,localhost,::1,127.0.0.1
- name: TIME_ZONE
value: America/Chicago
- name: APPLICATION_PROTOCOL
value: http
- name: OIDC_ISSUER
value: https://authentik.alexlebens.net/application/o/darwich/
- name: OIDC_REDIRECT_URI
value: https://dawarich.alexlebens.net/users/auth/openid_connect/callback
- name: OIDC_CLIENT_ID
valueFrom:
secretKeyRef:
key: client
name: dawarich-oidc-secret
- name: OIDC_CLIENT_SECRET
valueFrom:
secretKeyRef:
key: secret
name: dawarich-oidc-secret
- name: OIDC_PROVIDER_NAME
value: Authentik
- name: OIDC_AUTO_REGISTER
value: "true"
- name: PROMETHEUS_EXPORTER_ENABLED
value: "true"
- name: PROMETHEUS_EXPORTER_HOST
value: 0.0.0.0
- name: PROMETHEUS_EXPORTER_PORT
value: "9394"
- name: SECRET_KEY_BASE
valueFrom:
secretKeyRef:
key: key
name: dawarich-key-secret
- name: RAILS_LOG_TO_STDOUT
value: "true"
- name: SELF_HOSTED
value: "true"
- name: STORE_GEODATA
value: "true"
image: freikin/dawarich:1.3.1
imagePullPolicy: IfNotPresent
name: main
resources:
requests:
cpu: 10m
memory: 128Mi
volumeMounts:
- mountPath: /var/app/public
name: public
- mountPath: /var/app/storage
name: storage
- mountPath: /var/app/tmp/imports/watched
name: watched
- args:
- sidekiq
command:
- sidekiq-entrypoint.sh
env:
- name: RAILS_ENV
value: production
- name: REDIS_URL
value: redis://dawarich-valkey.dawarich:6379
- name: DATABASE_HOST
valueFrom:
secretKeyRef:
key: host
name: dawarich-postgresql-18-cluster-app
- name: DATABASE_PORT
valueFrom:
secretKeyRef:
key: port
name: dawarich-postgresql-18-cluster-app
- name: DATABASE_USERNAME
valueFrom:
secretKeyRef:
key: user
name: dawarich-postgresql-18-cluster-app
- name: DATABASE_PASSWORD
valueFrom:
secretKeyRef:
key: password
name: dawarich-postgresql-18-cluster-app
- name: DATABASE_NAME
valueFrom:
secretKeyRef:
key: dbname
name: dawarich-postgresql-18-cluster-app
- name: APPLICATION_HOSTS
value: dawarich.alexlebens.net,dawarich.dawarich,localhost,::1,127.0.0.1
- name: TIME_ZONE
value: America/Chicago
- name: APPLICATION_PROTOCOL
value: http
- name: DISTANCE_UNIT
value: mi
- name: OIDC_ISSUER
value: https://authentik.alexlebens.net/application/o/darwich/
- name: OIDC_REDIRECT_URI
value: https://dawarich.alexlebens.net/users/auth/openid_connect/callback
- name: OIDC_CLIENT_ID
valueFrom:
secretKeyRef:
key: client
name: dawarich-oidc-secret
- name: OIDC_CLIENT_SECRET
valueFrom:
secretKeyRef:
key: secret
name: dawarich-oidc-secret
- name: OIDC_PROVIDER_NAME
value: Authentik
- name: OIDC_AUTO_REGISTER
value: "true"
- name: PROMETHEUS_EXPORTER_ENABLED
value: "true"
- name: PROMETHEUS_EXPORTER_HOST
value: 0.0.0.0
- name: PROMETHEUS_EXPORTER_PORT
value: "9394"
- name: SECRET_KEY_BASE
valueFrom:
secretKeyRef:
key: key
name: dawarich-key-secret
- name: RAILS_LOG_TO_STDOUT
value: "true"
- name: SELF_HOSTED
value: "true"
- name: STORE_GEODATA
value: "true"
image: freikin/dawarich:1.3.1
imagePullPolicy: IfNotPresent
name: sidekiq
resources:
requests:
cpu: 10m
memory: 128Mi
volumeMounts:
- mountPath: /var/app/public
name: public
- mountPath: /var/app/storage
name: storage
- mountPath: /var/app/tmp/imports/watched
name: watched
volumes:
- name: public
persistentVolumeClaim:
claimName: dawarich-public
- name: storage
persistentVolumeClaim:
claimName: dawarich-storage
- name: watched
persistentVolumeClaim:
claimName: dawarich-watched