-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigmap.yaml
More file actions
22 lines (22 loc) · 896 Bytes
/
configmap.yaml
File metadata and controls
22 lines (22 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Chart.Name }}-config
labels:
{{- include "s3proxy.labels" . | nindent 4 }}
data:
S3PROXY_HOST: {{ .Values.s3.host | quote }}
S3PROXY_REGION: {{ .Values.s3.region | quote }}
S3PROXY_IP: "0.0.0.0"
S3PROXY_PORT: {{ .Values.server.port | quote }}
S3PROXY_NO_TLS: {{ .Values.server.noTls | quote }}
S3PROXY_MEMORY_LIMIT_MB: {{ .Values.performance.memoryLimitMb | quote }}
{{- if index .Values "redis-ha" "enabled" }}
S3PROXY_REDIS_URL: "redis://{{ .Release.Name }}-redis-ha-haproxy:6379/0"
{{- else }}
S3PROXY_REDIS_URL: {{ .Values.externalRedis.url | quote }}
{{- end }}
S3PROXY_REDIS_UPLOAD_TTL_HOURS: {{ .Values.externalRedis.uploadTtlHours | quote }}
S3PROXY_ADMIN_UI: {{ .Values.admin.enabled | quote }}
S3PROXY_ADMIN_PATH: {{ .Values.admin.path | quote }}
S3PROXY_LOG_LEVEL: {{ .Values.logLevel | quote }}