This PR contains newly rendered Kubernetes manifests automatically generated by the CI workflow. ### Details - **Trigger**: `pull_request` by `@alexlebens` - **Commit**: `dcf6944` (on `dcf6944e614c0fa00b6455fc58503ce0b79f7b7b`) - **Charts Updated**: `code-server,coredns,dawarich` Reviewed-on: #5120 Co-authored-by: gitea-bot <gitea-bot@alexlebens.net> Co-committed-by: gitea-bot <gitea-bot@alexlebens.net>
248 lines
8.1 KiB
YAML
248 lines
8.1 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.4.0@sha256:07adb7643b00d1d8f606c675931d3604317fa3851b91b74ec503df8d50734cb8
|
|
livenessProbe:
|
|
exec:
|
|
command:
|
|
- /bin/sh
|
|
- -c
|
|
- wget -qO - http://127.0.0.1:3000/api/v1/health | grep -q '"status"\s*:\s*"ok"'
|
|
failureThreshold: 5
|
|
initialDelaySeconds: 60
|
|
periodSeconds: 10
|
|
successThreshold: 1
|
|
timeoutSeconds: 10
|
|
name: main
|
|
resources:
|
|
requests:
|
|
cpu: 10m
|
|
memory: 750Mi
|
|
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.4.0@sha256:07adb7643b00d1d8f606c675931d3604317fa3851b91b74ec503df8d50734cb8
|
|
livenessProbe:
|
|
exec:
|
|
command:
|
|
- pgrep
|
|
- -f
|
|
- sidekiq
|
|
failureThreshold: 5
|
|
initialDelaySeconds: 60
|
|
periodSeconds: 10
|
|
successThreshold: 1
|
|
timeoutSeconds: 10
|
|
name: sidekiq
|
|
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
|