mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-ansible-private.git
synced 2026-02-04 15:53:28 +00:00
71 lines
1.6 KiB
YAML
71 lines
1.6 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: bazarr
|
|
namespace: stack-arr
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: bazarr
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: bazarr
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: regcred
|
|
containers:
|
|
- name: bazarr
|
|
image: lscr.io/linuxserver/bazarr:1.5.3
|
|
securityContext:
|
|
capabilities:
|
|
add:
|
|
- NET_ADMIN
|
|
ports:
|
|
- containerPort: 6767
|
|
name: webui
|
|
env:
|
|
- name: PUID
|
|
value: "1013"
|
|
- name: PGID
|
|
value: "1013"
|
|
- name: TZ
|
|
value: 'Etc/UTC'
|
|
- name: POSTGRES_ENABLED
|
|
value: 'true'
|
|
- name: POSTGRES_HOST
|
|
value: 'stolon-proxy-service.postgresql.svc.cluster.local'
|
|
- name: POSTGRES_PORT
|
|
value: '5432'
|
|
- name: POSTGRES_USERNAME
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: bazarr-secret
|
|
key: username
|
|
- name: POSTGRES_PASSWORD
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: bazarr-secret
|
|
key: password
|
|
- name: POSTGRES_DATABASE
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: bazarr-secret
|
|
key: maindb
|
|
volumeMounts:
|
|
- name: config
|
|
mountPath: /config
|
|
- name: media
|
|
mountPath: /media
|
|
volumes:
|
|
- name: config
|
|
persistentVolumeClaim:
|
|
claimName: bazarr-config-pvc
|
|
- name: media
|
|
persistentVolumeClaim:
|
|
claimName: bazarr-media-pvc
|
|
|
|
|
|
|