mirror of
https://github.com/bakito/adguardhome-sync.git
synced 2024-11-15 12:31:19 +08:00
19 lines
657 B
YAML
19 lines
657 B
YAML
|
{{- if eq .Values.mode "env" }}
|
||
|
apiVersion: v1
|
||
|
kind: ConfigMap
|
||
|
metadata:
|
||
|
name: sync-conf
|
||
|
namespace: {{ .Release.Namespace }}
|
||
|
data:
|
||
|
API_PORT: '0'
|
||
|
ORIGIN_URL: 'http://service-origin.{{ $.Release.Namespace }}.svc.cluster.local:3000'
|
||
|
ORIGIN_PASSWORD: 'password'
|
||
|
ORIGIN_USERNAME: 'username'
|
||
|
{{- range $i,$version := .Values.replica.versions }}
|
||
|
REPLICA{{ add 1 $i }}_AUTO_SETUP: 'true'
|
||
|
REPLICA{{ add 1 $i }}_URL: 'http://service-replica-{{ $version | toString | replace "." "-" }}.{{ $.Release.Namespace }}.svc.cluster.local:3000'
|
||
|
REPLICA{{ add 1 $i }}_PASSWORD: 'password'
|
||
|
REPLICA{{ add 1 $i }}_USERNAME: 'username'
|
||
|
{{- end }}
|
||
|
{{- end }}
|