mirror of
https://github.com/lucky-sideburn/kubeinvaders.git
synced 2026-08-23 21:46:21 +00:00
add extraEnv helm value for app settings
This commit is contained in:
@@ -19,3 +19,4 @@ helm install kubeinvaders --set-string target_namespace="namespace1\,namespace2"
|
||||
| image.tag | Specify tag of KubeInvaders to deploy |
|
||||
| ingress.hostName | URL used for ingress |
|
||||
| target_namespace | namespaces to take under control |
|
||||
| extraEnv | Extra environment variables for pod |
|
||||
|
||||
@@ -22,15 +22,18 @@ spec:
|
||||
serviceAccountName: kubeinvaders
|
||||
containers:
|
||||
- env:
|
||||
{{ if .Values.ingress.enabled }}
|
||||
{{- if .Values.ingress.enabled }}
|
||||
- name: ENDPOINT
|
||||
value: {{ required ".Values.ingress.hostName is required if Ingress are enabled" .Values.ingress.hostName }}
|
||||
{{ else }}
|
||||
{{- else }}
|
||||
- name: ENDPOINT
|
||||
value: {{ required ".Values.route_host is required if Ingress are disabled" .Values.route_host }}
|
||||
{{ end }}
|
||||
{{- end }}
|
||||
- name: NAMESPACE
|
||||
value: {{ .Values.target_namespace }}
|
||||
{{- if .Values.extraEnv }}
|
||||
{{ toYaml .Values.extraEnv | indent 10 }}
|
||||
{{- end }}
|
||||
name: {{ .Chart.Name }}
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
|
||||
@@ -39,13 +39,23 @@ ingress:
|
||||
enabled: true
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
||||
hostName: ""
|
||||
hostName: ""
|
||||
tls: {}
|
||||
|
||||
# Use route_host only if ingress is disabled
|
||||
route_host: ""
|
||||
|
||||
legacyIngress: false
|
||||
|
||||
extraEnv: []
|
||||
# extraEnv:
|
||||
# - name: ALIENPROXIMITY
|
||||
# value: "10"
|
||||
# - name: HITSLIMIT
|
||||
# value: "1"
|
||||
# - name: UPDATETIME
|
||||
# value: "0.5"
|
||||
|
||||
resources: {}
|
||||
nodeSelector: {}
|
||||
tolerations: []
|
||||
|
||||
Reference in New Issue
Block a user