Compare commits
3 Commits
d742121719
...
7c2086009a
| Author | SHA1 | Date | |
|---|---|---|---|
| 7c2086009a | |||
| 656f9053b4 | |||
| ce8270290d |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -13,5 +13,3 @@ cronjobs
|
|||||||
*.key
|
*.key
|
||||||
|
|
||||||
chacal/
|
chacal/
|
||||||
|
|
||||||
secrets/
|
|
||||||
81
default/haven-notify.yaml
Normal file
81
default/haven-notify.yaml
Normal file
@@ -0,0 +1,81 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: haven-notify
|
||||||
|
namespace: default
|
||||||
|
labels:
|
||||||
|
app: haven-notify
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: haven-notify
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: haven-notify
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: haven-notify
|
||||||
|
image: git.ivanch.me/ivanch/haven-notify:latest
|
||||||
|
imagePullPolicy: Always
|
||||||
|
ports:
|
||||||
|
- containerPort: 8080
|
||||||
|
env:
|
||||||
|
- name: WEBHOOK_URL
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: discord-webhook
|
||||||
|
key: HAVEN_WEBHOOK_URL
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /ready
|
||||||
|
port: 8080
|
||||||
|
initialDelaySeconds: 5
|
||||||
|
periodSeconds: 10
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /live
|
||||||
|
port: 8080
|
||||||
|
initialDelaySeconds: 5
|
||||||
|
periodSeconds: 10
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 50m
|
||||||
|
memory: 64Mi
|
||||||
|
limits:
|
||||||
|
cpu: 200m
|
||||||
|
memory: 128Mi
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: haven-notify
|
||||||
|
namespace: default
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: haven-notify
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
port: 8080
|
||||||
|
targetPort: 8080
|
||||||
|
---
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: haven-notify
|
||||||
|
namespace: default
|
||||||
|
spec:
|
||||||
|
ingressClassName: nginx
|
||||||
|
rules:
|
||||||
|
- host: notify.haven
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: haven-notify
|
||||||
|
port:
|
||||||
|
number: 8080
|
||||||
@@ -30,6 +30,31 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
name: vault-port
|
name: vault-port
|
||||||
|
# /alive requires no authentication and verifies the Vaultwarden process
|
||||||
|
startupProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /alive
|
||||||
|
port: vault-port
|
||||||
|
scheme: HTTP
|
||||||
|
periodSeconds: 5
|
||||||
|
timeoutSeconds: 3
|
||||||
|
failureThreshold: 30
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /alive
|
||||||
|
port: vault-port
|
||||||
|
scheme: HTTP
|
||||||
|
periodSeconds: 10
|
||||||
|
timeoutSeconds: 3
|
||||||
|
failureThreshold: 3
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /alive
|
||||||
|
port: vault-port
|
||||||
|
scheme: HTTP
|
||||||
|
periodSeconds: 15
|
||||||
|
timeoutSeconds: 3
|
||||||
|
failureThreshold: 6
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: vaultwarden-data
|
- name: vaultwarden-data
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
|
|||||||
@@ -14,6 +14,10 @@ data:
|
|||||||
- "ubuntu-amd64:docker://docker.gitea.com/runner-images:ubuntu-latest"
|
- "ubuntu-amd64:docker://docker.gitea.com/runner-images:ubuntu-latest"
|
||||||
- "ubuntu-latest:docker://docker.gitea.com/runner-images:ubuntu-latest"
|
- "ubuntu-latest:docker://docker.gitea.com/runner-images:ubuntu-latest"
|
||||||
- "ubuntu-slim:docker://docker.gitea.com/runner-images:ubuntu-latest-slim"
|
- "ubuntu-slim:docker://docker.gitea.com/runner-images:ubuntu-latest-slim"
|
||||||
|
- "runner-full:docker://git.ivanch.me/ivanch/runner-images:full"
|
||||||
|
- "runner-slim:docker://git.ivanch.me/ivanch/runner-images:slim"
|
||||||
|
- "runner-full-amd64:docker://git.ivanch.me/ivanch/runner-images:full"
|
||||||
|
- "runner-slim-amd64:docker://git.ivanch.me/ivanch/runner-images:slim"
|
||||||
---
|
---
|
||||||
# --- ConfigMap for the ARM64 Runner ---
|
# --- ConfigMap for the ARM64 Runner ---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
@@ -28,6 +32,8 @@ data:
|
|||||||
timeout: 1h
|
timeout: 1h
|
||||||
labels:
|
labels:
|
||||||
- "ubuntu-arm64:docker://docker.gitea.com/runner-images:ubuntu-latest"
|
- "ubuntu-arm64:docker://docker.gitea.com/runner-images:ubuntu-latest"
|
||||||
|
- "runner-full-arm64:docker://git.ivanch.me/ivanch/runner-images:full"
|
||||||
|
- "runner-slim-arm64:docker://git.ivanch.me/ivanch/runner-images:slim"
|
||||||
---
|
---
|
||||||
# PersistentVolumeClaim for AMD64
|
# PersistentVolumeClaim for AMD64
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
|||||||
121
infra/eso/bitwarden-cli.yaml
Normal file
121
infra/eso/bitwarden-cli.yaml
Normal file
@@ -0,0 +1,121 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: bitwarden-cli
|
||||||
|
namespace: infra
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: bitwarden-cli
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: bitwarden-cli
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: bitwarden-cli
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: bitwarden-cli
|
||||||
|
image: ghcr.io/charlesthomas/bitwarden-cli:2026.3.0
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
# Override the baked entrypoint so --disable-origin-protection is
|
||||||
|
# actually passed (it was commented out in the image's entrypoint.sh,
|
||||||
|
# which made bw serve reject all cross-pod requests -> connection refused).
|
||||||
|
command: ["/bin/bash", "-lc"]
|
||||||
|
args:
|
||||||
|
- |
|
||||||
|
set -e
|
||||||
|
bw config server "${BW_HOST}"
|
||||||
|
# Authenticate. Prefer the API key if client creds are present,
|
||||||
|
# otherwise fall back to username+password. The session is exported
|
||||||
|
# so the background loop can re-derive (and refresh) it.
|
||||||
|
login() {
|
||||||
|
if [ -n "$BW_CLIENTID" ] && [ -n "$BW_CLIENTSECRET" ]; then
|
||||||
|
echo "Using apikey to log in"
|
||||||
|
BW_SESSION=$(bw login --apikey --raw) || return 1
|
||||||
|
else
|
||||||
|
echo "Using password to log in"
|
||||||
|
BW_SESSION=$(bw login "${BW_USER}" --passwordenv BW_PASSWORD --raw) || return 1
|
||||||
|
fi
|
||||||
|
export BW_SESSION
|
||||||
|
}
|
||||||
|
login
|
||||||
|
# Warm the vault cache once at startup so bw serve has data immediately.
|
||||||
|
bw sync
|
||||||
|
bw status
|
||||||
|
# Keep the session alive: RE-LOGIN every cycle and re-sync so the on-disk
|
||||||
|
# vault cache stays warm and the session token never lapses. A loop that
|
||||||
|
# only re-ran `bw sync` with a captured session would eventually fail once
|
||||||
|
# the session expired (-> stale cache / "Not found" for changed items, or a
|
||||||
|
# full unauthenticated 400 if the initial login never happened at all).
|
||||||
|
echo "Starting periodic bw login+sync loop (every 5m)"
|
||||||
|
(
|
||||||
|
while true; do
|
||||||
|
sleep 300
|
||||||
|
login || true
|
||||||
|
echo "[$(date -u +%FT%TZ)] bw sync"
|
||||||
|
bw sync >/dev/null 2>&1 || echo "[$(date -u +%FT%TZ)] bw sync failed"
|
||||||
|
done
|
||||||
|
) &
|
||||||
|
echo 'Running `bw serve` on port 8087'
|
||||||
|
bw serve --hostname 0.0.0.0 --disable-origin-protection
|
||||||
|
env:
|
||||||
|
- name: BW_HOST
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: bitwarden-cli
|
||||||
|
key: BW_HOST
|
||||||
|
- name: BW_USER
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: bitwarden-cli
|
||||||
|
key: BW_USERNAME
|
||||||
|
- name: BW_PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: bitwarden-cli
|
||||||
|
key: BW_PASSWORD
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
containerPort: 8087
|
||||||
|
protocol: TCP
|
||||||
|
startupProbe:
|
||||||
|
tcpSocket: { port: 8087 }
|
||||||
|
periodSeconds: 5
|
||||||
|
timeoutSeconds: 3
|
||||||
|
failureThreshold: 30
|
||||||
|
readinessProbe:
|
||||||
|
tcpSocket: { port: 8087 }
|
||||||
|
periodSeconds: 10
|
||||||
|
timeoutSeconds: 3
|
||||||
|
failureThreshold: 3
|
||||||
|
livenessProbe:
|
||||||
|
tcpSocket: { port: 8087 }
|
||||||
|
periodSeconds: 15
|
||||||
|
timeoutSeconds: 3
|
||||||
|
failureThreshold: 6
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 400m
|
||||||
|
memory: 512Mi
|
||||||
|
requests:
|
||||||
|
cpu: 50m
|
||||||
|
memory: 128Mi
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: bitwarden-cli
|
||||||
|
namespace: infra
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: bitwarden-cli
|
||||||
|
spec:
|
||||||
|
type: ClusterIP
|
||||||
|
selector:
|
||||||
|
app.kubernetes.io/name: bitwarden-cli
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
port: 8087
|
||||||
|
targetPort: http
|
||||||
|
protocol: TCP
|
||||||
21
infra/eso/bw-cli-netpol.yaml
Normal file
21
infra/eso/bw-cli-netpol.yaml
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: NetworkPolicy
|
||||||
|
metadata:
|
||||||
|
name: bw-cli
|
||||||
|
namespace: infra
|
||||||
|
spec:
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: bitwarden-cli
|
||||||
|
policyTypes:
|
||||||
|
- Ingress
|
||||||
|
ingress:
|
||||||
|
- from:
|
||||||
|
# ESO pods (app.kubernetes.io/name: external-secrets) in the external-secrets namespace.
|
||||||
|
# Both podSelector AND namespaceSelector must match for cross-namespace traffic.
|
||||||
|
- namespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/metadata.name: external-secrets
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: external-secrets
|
||||||
20
infra/eso/secretstores.yaml
Normal file
20
infra/eso/secretstores.yaml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
apiVersion: external-secrets.io/v1
|
||||||
|
kind: ClusterSecretStore
|
||||||
|
metadata: { name: bitwarden-login }
|
||||||
|
spec:
|
||||||
|
provider:
|
||||||
|
webhook:
|
||||||
|
url: "http://bitwarden-cli.infra.svc:8087/object/item/{{ .remoteRef.key }}"
|
||||||
|
result: { jsonPath: "$.data.login.{{ .remoteRef.property }}" }
|
||||||
|
---
|
||||||
|
apiVersion: external-secrets.io/v1
|
||||||
|
kind: ClusterSecretStore
|
||||||
|
metadata: { name: bitwarden-fields }
|
||||||
|
spec:
|
||||||
|
provider:
|
||||||
|
webhook:
|
||||||
|
url: "http://bitwarden-cli.infra.svc:8087/object/item/{{ .remoteRef.key }}"
|
||||||
|
result:
|
||||||
|
{
|
||||||
|
jsonPath: '$.data.fields[?@.name=="{{ .remoteRef.property }}"].value',
|
||||||
|
}
|
||||||
24
secrets/adguard.yaml
Normal file
24
secrets/adguard.yaml
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
apiVersion: external-secrets.io/v1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata: { name: adguardhome-password, namespace: dns }
|
||||||
|
spec:
|
||||||
|
refreshInterval: 1h
|
||||||
|
target:
|
||||||
|
name: adguardhome-password
|
||||||
|
deletionPolicy: Retain
|
||||||
|
template:
|
||||||
|
type: Opaque
|
||||||
|
data:
|
||||||
|
username: "{{ .username }}"
|
||||||
|
password: "{{ .password }}"
|
||||||
|
data:
|
||||||
|
- secretKey: username
|
||||||
|
remoteRef:
|
||||||
|
{ key: 5bc7e63f-18bb-482c-bc3e-740e03b26334, property: username }
|
||||||
|
sourceRef:
|
||||||
|
{ storeRef: { name: bitwarden-login, kind: ClusterSecretStore } }
|
||||||
|
- secretKey: password
|
||||||
|
remoteRef:
|
||||||
|
{ key: 5bc7e63f-18bb-482c-bc3e-740e03b26334, property: password }
|
||||||
|
sourceRef:
|
||||||
|
{ storeRef: { name: bitwarden-login, kind: ClusterSecretStore } }
|
||||||
36
secrets/cloudreve.yaml
Normal file
36
secrets/cloudreve.yaml
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
apiVersion: external-secrets.io/v1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata: { name: cloudreve, namespace: cloud }
|
||||||
|
spec:
|
||||||
|
refreshInterval: 1h
|
||||||
|
target:
|
||||||
|
name: cloudreve-secret
|
||||||
|
deletionPolicy: Retain
|
||||||
|
template:
|
||||||
|
type: Opaque
|
||||||
|
data:
|
||||||
|
DB_USER: "{{ .DB_USER }}"
|
||||||
|
DB_PASSWORD: "{{ .DB_PASSWORD }}"
|
||||||
|
DB_NAME: "{{ .DB_NAME }}"
|
||||||
|
REDIS_PASSWORD: "{{ .REDIS_PASSWORD }}"
|
||||||
|
data:
|
||||||
|
- secretKey: DB_USER
|
||||||
|
remoteRef:
|
||||||
|
{ key: 8c25cac9-e9e8-4970-bdf4-31f9aee19276, property: username }
|
||||||
|
sourceRef:
|
||||||
|
{ storeRef: { name: bitwarden-login, kind: ClusterSecretStore } }
|
||||||
|
- secretKey: DB_PASSWORD
|
||||||
|
remoteRef:
|
||||||
|
{ key: 8c25cac9-e9e8-4970-bdf4-31f9aee19276, property: password }
|
||||||
|
sourceRef:
|
||||||
|
{ storeRef: { name: bitwarden-login, kind: ClusterSecretStore } }
|
||||||
|
- secretKey: DB_NAME
|
||||||
|
remoteRef:
|
||||||
|
{ key: 8c25cac9-e9e8-4970-bdf4-31f9aee19276, property: DB_NAME }
|
||||||
|
sourceRef:
|
||||||
|
{ storeRef: { name: bitwarden-fields, kind: ClusterSecretStore } }
|
||||||
|
- secretKey: REDIS_PASSWORD
|
||||||
|
remoteRef:
|
||||||
|
{ key: 8c25cac9-e9e8-4970-bdf4-31f9aee19276, property: REDIS_PASSWORD }
|
||||||
|
sourceRef:
|
||||||
|
{ storeRef: { name: bitwarden-fields, kind: ClusterSecretStore } }
|
||||||
27
secrets/openwebui.yaml
Normal file
27
secrets/openwebui.yaml
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
apiVersion: external-secrets.io/v1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata: { name: openwebui, namespace: default }
|
||||||
|
spec:
|
||||||
|
refreshInterval: 1h
|
||||||
|
target:
|
||||||
|
name: openwebui-secret
|
||||||
|
deletionPolicy: Retain
|
||||||
|
template:
|
||||||
|
type: Opaque
|
||||||
|
data:
|
||||||
|
DATABASE_URL: "postgresql://{{ .username }}:{{ .password }}@postgresql.haven:5432/{{ .dbname }}"
|
||||||
|
data:
|
||||||
|
- secretKey: username
|
||||||
|
remoteRef:
|
||||||
|
{ key: e80ff314-7445-4b61-b5c5-69285ea72586, property: username }
|
||||||
|
sourceRef:
|
||||||
|
{ storeRef: { name: bitwarden-login, kind: ClusterSecretStore } }
|
||||||
|
- secretKey: password
|
||||||
|
remoteRef:
|
||||||
|
{ key: e80ff314-7445-4b61-b5c5-69285ea72586, property: password }
|
||||||
|
sourceRef:
|
||||||
|
{ storeRef: { name: bitwarden-login, kind: ClusterSecretStore } }
|
||||||
|
- secretKey: dbname
|
||||||
|
remoteRef: { key: e80ff314-7445-4b61-b5c5-69285ea72586, property: dbname }
|
||||||
|
sourceRef:
|
||||||
|
{ storeRef: { name: bitwarden-fields, kind: ClusterSecretStore } }
|
||||||
39
secrets/paperless.yaml
Normal file
39
secrets/paperless.yaml
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
apiVersion: external-secrets.io/v1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata: { name: paperless, namespace: default }
|
||||||
|
spec:
|
||||||
|
refreshInterval: 1h
|
||||||
|
target:
|
||||||
|
name: paperless-secret
|
||||||
|
deletionPolicy: Retain
|
||||||
|
template:
|
||||||
|
type: Opaque
|
||||||
|
data:
|
||||||
|
PAPERLESS_DBNAME: "{{ .PAPERLESS_DBNAME }}"
|
||||||
|
PAPERLESS_DBUSER: "{{ .PAPERLESS_DBUSER }}"
|
||||||
|
PAPERLESS_DBPASSWORD: "{{ .PAPERLESS_DBPASSWORD }}"
|
||||||
|
data:
|
||||||
|
- secretKey: PAPERLESS_DBNAME
|
||||||
|
remoteRef:
|
||||||
|
{
|
||||||
|
key: 05426e55-fe04-4c16-8697-8a258928257a,
|
||||||
|
property: PAPERLESS_DBNAME,
|
||||||
|
}
|
||||||
|
sourceRef:
|
||||||
|
{ storeRef: { name: bitwarden-fields, kind: ClusterSecretStore } }
|
||||||
|
- secretKey: PAPERLESS_DBUSER
|
||||||
|
remoteRef:
|
||||||
|
{
|
||||||
|
key: 05426e55-fe04-4c16-8697-8a258928257a,
|
||||||
|
property: PAPERLESS_DBUSER,
|
||||||
|
}
|
||||||
|
sourceRef:
|
||||||
|
{ storeRef: { name: bitwarden-fields, kind: ClusterSecretStore } }
|
||||||
|
- secretKey: PAPERLESS_DBPASSWORD
|
||||||
|
remoteRef:
|
||||||
|
{
|
||||||
|
key: 05426e55-fe04-4c16-8697-8a258928257a,
|
||||||
|
property: PAPERLESS_DBPASSWORD,
|
||||||
|
}
|
||||||
|
sourceRef:
|
||||||
|
{ storeRef: { name: bitwarden-fields, kind: ClusterSecretStore } }
|
||||||
48
secrets/radarr.yaml
Normal file
48
secrets/radarr.yaml
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
apiVersion: external-secrets.io/v1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata: { name: radarr, namespace: media }
|
||||||
|
spec:
|
||||||
|
refreshInterval: 1h
|
||||||
|
target:
|
||||||
|
name: radarr-secret
|
||||||
|
deletionPolicy: Retain
|
||||||
|
template:
|
||||||
|
type: Opaque
|
||||||
|
data:
|
||||||
|
Radarr__Postgres__User: "{{ .Radarr__Postgres__User }}"
|
||||||
|
Radarr__Postgres__Password: "{{ .Radarr__Postgres__Password }}"
|
||||||
|
Radarr__Postgres__Host: "{{ .Radarr__Postgres__Host }}"
|
||||||
|
Radarr__Postgres__MainDb: "{{ .Radarr__Postgres__MainDb }}"
|
||||||
|
data:
|
||||||
|
- secretKey: Radarr__Postgres__User
|
||||||
|
remoteRef:
|
||||||
|
{
|
||||||
|
key: ab723b65-3ec8-469c-b01d-67a6e3049023,
|
||||||
|
property: username,
|
||||||
|
}
|
||||||
|
sourceRef:
|
||||||
|
{ storeRef: { name: bitwarden-login, kind: ClusterSecretStore } }
|
||||||
|
- secretKey: Radarr__Postgres__Password
|
||||||
|
remoteRef:
|
||||||
|
{
|
||||||
|
key: ab723b65-3ec8-469c-b01d-67a6e3049023,
|
||||||
|
property: password,
|
||||||
|
}
|
||||||
|
sourceRef:
|
||||||
|
{ storeRef: { name: bitwarden-login, kind: ClusterSecretStore } }
|
||||||
|
- secretKey: Radarr__Postgres__Host
|
||||||
|
remoteRef:
|
||||||
|
{
|
||||||
|
key: ab723b65-3ec8-469c-b01d-67a6e3049023,
|
||||||
|
property: Radarr__Postgres__Host,
|
||||||
|
}
|
||||||
|
sourceRef:
|
||||||
|
{ storeRef: { name: bitwarden-fields, kind: ClusterSecretStore } }
|
||||||
|
- secretKey: Radarr__Postgres__MainDb
|
||||||
|
remoteRef:
|
||||||
|
{
|
||||||
|
key: ab723b65-3ec8-469c-b01d-67a6e3049023,
|
||||||
|
property: Radarr__Postgres__MainDb,
|
||||||
|
}
|
||||||
|
sourceRef:
|
||||||
|
{ storeRef: { name: bitwarden-fields, kind: ClusterSecretStore } }
|
||||||
27
secrets/recommender.yaml
Normal file
27
secrets/recommender.yaml
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
apiVersion: external-secrets.io/v1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata: { name: recommender, namespace: media }
|
||||||
|
spec:
|
||||||
|
refreshInterval: 1h
|
||||||
|
target:
|
||||||
|
name: recommender-secrets
|
||||||
|
deletionPolicy: Retain
|
||||||
|
template:
|
||||||
|
type: Opaque
|
||||||
|
data:
|
||||||
|
OPENAI_API_KEY: "{{ .OPENAI_API_KEY }}"
|
||||||
|
DATABASE_URL: "{{ .DATABASE_URL }}"
|
||||||
|
data:
|
||||||
|
- secretKey: OPENAI_API_KEY
|
||||||
|
remoteRef:
|
||||||
|
{
|
||||||
|
key: 5079ef6f-3d1d-4522-b22c-6dd5f1c19acd,
|
||||||
|
property: OPENAI_API_KEY,
|
||||||
|
}
|
||||||
|
sourceRef:
|
||||||
|
{ storeRef: { name: bitwarden-fields, kind: ClusterSecretStore } }
|
||||||
|
- secretKey: DATABASE_URL
|
||||||
|
remoteRef:
|
||||||
|
{ key: 5079ef6f-3d1d-4522-b22c-6dd5f1c19acd, property: DATABASE_URL }
|
||||||
|
sourceRef:
|
||||||
|
{ storeRef: { name: bitwarden-fields, kind: ClusterSecretStore } }
|
||||||
30
secrets/slink.yaml
Normal file
30
secrets/slink.yaml
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
apiVersion: external-secrets.io/v1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata: { name: slink, namespace: cloud }
|
||||||
|
spec:
|
||||||
|
refreshInterval: 1h
|
||||||
|
target:
|
||||||
|
name: slink-secret
|
||||||
|
deletionPolicy: Retain
|
||||||
|
template:
|
||||||
|
type: Opaque
|
||||||
|
data:
|
||||||
|
ADMIN_USERNAME: "{{ .ADMIN_USERNAME }}"
|
||||||
|
ADMIN_PASSWORD: "{{ .ADMIN_PASSWORD }}"
|
||||||
|
ADMIN_EMAIL: "{{ .ADMIN_EMAIL }}"
|
||||||
|
data:
|
||||||
|
- secretKey: ADMIN_USERNAME
|
||||||
|
remoteRef:
|
||||||
|
{ key: 79f97033-6bc3-40cd-a28c-6060b8bd3a63, property: username }
|
||||||
|
sourceRef:
|
||||||
|
{ storeRef: { name: bitwarden-login, kind: ClusterSecretStore } }
|
||||||
|
- secretKey: ADMIN_PASSWORD
|
||||||
|
remoteRef:
|
||||||
|
{ key: 79f97033-6bc3-40cd-a28c-6060b8bd3a63, property: password }
|
||||||
|
sourceRef:
|
||||||
|
{ storeRef: { name: bitwarden-login, kind: ClusterSecretStore } }
|
||||||
|
- secretKey: ADMIN_EMAIL
|
||||||
|
remoteRef:
|
||||||
|
{ key: 79f97033-6bc3-40cd-a28c-6060b8bd3a63, property: ADMIN_EMAIL }
|
||||||
|
sourceRef:
|
||||||
|
{ storeRef: { name: bitwarden-fields, kind: ClusterSecretStore } }
|
||||||
42
secrets/sonarr.yaml
Normal file
42
secrets/sonarr.yaml
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
apiVersion: external-secrets.io/v1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata: { name: sonarr, namespace: media }
|
||||||
|
spec:
|
||||||
|
refreshInterval: 1h
|
||||||
|
target:
|
||||||
|
name: sonarr-secret
|
||||||
|
deletionPolicy: Retain
|
||||||
|
template:
|
||||||
|
type: Opaque
|
||||||
|
data:
|
||||||
|
Sonarr__Postgres__User: "{{ .Sonarr__Postgres__User }}"
|
||||||
|
Sonarr__Postgres__Password: "{{ .Sonarr__Postgres__Password }}"
|
||||||
|
Sonarr__Postgres__Host: "{{ .Sonarr__Postgres__Host }}"
|
||||||
|
Sonarr__Postgres__MainDb: "{{ .Sonarr__Postgres__MainDb }}"
|
||||||
|
data:
|
||||||
|
- secretKey: Sonarr__Postgres__User
|
||||||
|
remoteRef:
|
||||||
|
{ key: 2c5b6d27-971f-4876-b10d-db400dfde7b2, property: username }
|
||||||
|
sourceRef:
|
||||||
|
{ storeRef: { name: bitwarden-login, kind: ClusterSecretStore } }
|
||||||
|
- secretKey: Sonarr__Postgres__Password
|
||||||
|
remoteRef:
|
||||||
|
{ key: 2c5b6d27-971f-4876-b10d-db400dfde7b2, property: password }
|
||||||
|
sourceRef:
|
||||||
|
{ storeRef: { name: bitwarden-login, kind: ClusterSecretStore } }
|
||||||
|
- secretKey: Sonarr__Postgres__Host
|
||||||
|
remoteRef:
|
||||||
|
{
|
||||||
|
key: 2c5b6d27-971f-4876-b10d-db400dfde7b2,
|
||||||
|
property: Sonarr__Postgres__Host,
|
||||||
|
}
|
||||||
|
sourceRef:
|
||||||
|
{ storeRef: { name: bitwarden-fields, kind: ClusterSecretStore } }
|
||||||
|
- secretKey: Sonarr__Postgres__MainDb
|
||||||
|
remoteRef:
|
||||||
|
{
|
||||||
|
key: 2c5b6d27-971f-4876-b10d-db400dfde7b2,
|
||||||
|
property: Sonarr__Postgres__MainDb,
|
||||||
|
}
|
||||||
|
sourceRef:
|
||||||
|
{ storeRef: { name: bitwarden-fields, kind: ClusterSecretStore } }
|
||||||
Reference in New Issue
Block a user