scale-catalog/stable/notifiarr/5.0.9/ix_values.yaml

75 lines
2.2 KiB
YAML
Raw Normal View History

2024-07-13 07:59:30 +00:00
image:
repository: golift/notifiarr
pullPolicy: IfNotPresent
tag: 0.7.1@sha256:7cc924784a59bfa5394317f44d99de06c71078946905b1167219837d0a36d0ea
notifiarr:
# This will be your password for your first-time login.
# Use the username 'admin' and the API key as password to log in.
# After login you must change your password from the UI
apikey: "test"
upstreams:
- 172.16.0.0/16
service:
main:
ports:
main:
port: 5454
protocol: http
workload:
main:
podSpec:
initContainers:
init-conf:
enabled: true
# We run it on every boot just in case an upgrade (or the user)
# manages to nuke the config file
type: init
imageSelector: alpineImage
command: /bin/sh
# This script creates an (almost) empty config file with the aim to prevent
# Notifiarr from generating a default password.
# When no default password is generated the configured API key and a default
# username ('admin') are used for logging in.
args:
- -c
- |
export CONF={{ printf "%s/notifiarr.conf" .Values.persistence.config.targetSelector.main.main.mountPath }}
test -f "$CONF" && echo "Config exists, skipping creation..." && exit 0
echo "Creating a minimal config in [$CONF]..."
echo "# Dummy comment" > "$CONF" || echo "Failed to create a minimal config..."
echo "Finished."
containers:
main:
env:
TMPDIR: /tmpdir
DN_API_KEY: "{{ .Values.notifiarr.apikey }}"
DN_BIND_ADDR: '{{ printf "0.0.0.0:%v" .Values.service.main.ports.main.port }}'
DN_UPSTREAMS_0: '{{ join " " .Values.notifiarr.upstreams }}'
persistence:
config:
enabled: true
targetSelector:
main:
main:
mountPath: /config
init-conf:
mountPath: /config
machine-id:
enabled: true
type: hostPath
hostPath: /etc/machine-id
mountPath: /etc/machine-id
readOnly: true
tmpdir:
enabled: true
type: emptyDir
mountPath: /tmpdir
medium: Memory
portal:
open:
enabled: true