45
45
{{- include "stackstorm-ha.init-containers-wait-for-mq" . | nindent 6 }}
46
46
# Sidecar container for generating .htpasswd with st2 username & password pair and sharing produced file with the main st2auth container
47
47
- name : generate-htpasswd
48
- image : ' {{ template "stackstorm-ha.imageRepository" . }}/st2auth:{{ tpl (.Values.st2auth.image.tag | default .Values.image.tag) . }}'
48
+ image : ' {{ template "stackstorm-ha.imageRegistry" . }}/{{ template "stackstorm-ha. imageRepository" . }}/st2auth:{{ tpl (.Values.st2auth.image.tag | default .Values.image.tag) . }}'
49
49
imagePullPolicy : {{ .Values.image.pullPolicy }}
50
50
{{- with .Values.securityContext }}
51
51
securityContext : {{- toYaml . | nindent 10 }}
62
62
- printf "${ST2_AUTH_USERNAME}:$(openssl passwd -apr1 "${ST2_AUTH_PASSWORD}")\n" > /tmp/st2/htpasswd
63
63
containers :
64
64
- name : st2auth
65
- image : ' {{ template "stackstorm-ha.imageRepository" . }}/st2auth:{{ tpl (.Values.st2auth.image.tag | default .Values.image.tag) . }}'
65
+ image : ' {{ template "stackstorm-ha.imageRegistry" . }}/{{ template "stackstorm-ha. imageRepository" . }}/st2auth:{{ tpl (.Values.st2auth.image.tag | default .Values.image.tag) . }}'
66
66
imagePullPolicy : {{ .Values.image.pullPolicy }}
67
67
{{- with .Values.securityContext }}
68
68
securityContext : {{- toYaml . | nindent 10 }}
@@ -181,7 +181,7 @@ spec:
181
181
{{- end }}
182
182
containers :
183
183
- name : st2api
184
- image : ' {{ template "stackstorm-ha.imageRepository" . }}/st2api:{{ tpl (.Values.st2api.image.tag | default .Values.image.tag) . }}'
184
+ image : ' {{ template "stackstorm-ha.imageRegistry" . }}/{{ template "stackstorm-ha. imageRepository" . }}/st2api:{{ tpl (.Values.st2api.image.tag | default .Values.image.tag) . }}'
185
185
imagePullPolicy : {{ .Values.image.pullPolicy }}
186
186
{{- with .Values.securityContext }}
187
187
securityContext : {{- toYaml . | nindent 10 }}
@@ -307,7 +307,7 @@ spec:
307
307
{{- include "stackstorm-ha.init-containers-wait-for-mq" . | nindent 6 }}
308
308
containers :
309
309
- name : st2stream
310
- image : ' {{ template "stackstorm-ha.imageRepository" . }}/st2stream:{{ tpl (.Values.st2stream.image.tag | default .Values.image.tag) . }}'
310
+ image : ' {{ template "stackstorm-ha.imageRegistry" . }}/{{ template "stackstorm-ha. imageRepository" . }}/st2stream:{{ tpl (.Values.st2stream.image.tag | default .Values.image.tag) . }}'
311
311
imagePullPolicy : {{ .Values.image.pullPolicy }}
312
312
{{- with .Values.securityContext }}
313
313
securityContext : {{- toYaml . | nindent 10 }}
@@ -407,7 +407,7 @@ spec:
407
407
{{- end }}
408
408
containers :
409
409
- name : st2web
410
- image : ' {{ template "stackstorm-ha.imageRepository" . }}/st2web:{{ tpl (.Values.st2web.image.tag | default .Values.image.tag) . }}'
410
+ image : ' {{ template "stackstorm-ha.imageRegistry" . }}/{{ template "stackstorm-ha. imageRepository" . }}/st2web:{{ tpl (.Values.st2web.image.tag | default .Values.image.tag) . }}'
411
411
imagePullPolicy : {{ .Values.image.pullPolicy }}
412
412
{{- with default .Values.securityContext .Values.st2web.securityContext }}
413
413
securityContext : {{- toYaml . | nindent 10 }}
@@ -541,7 +541,7 @@ spec:
541
541
{{- include "stackstorm-ha.init-containers-wait-for-mq" . | nindent 6 }}
542
542
containers :
543
543
- name : st2rulesengine
544
- image : ' {{ template "stackstorm-ha.imageRepository" . }}/st2rulesengine:{{ tpl (.Values.st2rulesengine.image.tag | default .Values.image.tag) . }}'
544
+ image : ' {{ template "stackstorm-ha.imageRegistry" . }}/{{ template "stackstorm-ha. imageRepository" . }}/st2rulesengine:{{ tpl (.Values.st2rulesengine.image.tag | default .Values.image.tag) . }}'
545
545
imagePullPolicy : {{ .Values.image.pullPolicy }}
546
546
{{- with .Values.securityContext }}
547
547
securityContext : {{- toYaml . | nindent 10 }}
@@ -658,7 +658,7 @@ spec:
658
658
{{- include "stackstorm-ha.init-containers-wait-for-mq" . | nindent 6 }}
659
659
containers :
660
660
- name : st2timersengine
661
- image : ' {{ template "stackstorm-ha.imageRepository" . }}/st2timersengine:{{ tpl (.Values.st2timersengine.image.tag | default .Values.image.tag) . }}'
661
+ image : ' {{ template "stackstorm-ha.imageRegistry" . }}/{{ template "stackstorm-ha. imageRepository" . }}/st2timersengine:{{ tpl (.Values.st2timersengine.image.tag | default .Values.image.tag) . }}'
662
662
imagePullPolicy : {{ .Values.image.pullPolicy }}
663
663
{{- with .Values.securityContext }}
664
664
securityContext : {{- toYaml . | nindent 10 }}
@@ -762,7 +762,7 @@ spec:
762
762
{{- include "stackstorm-ha.init-containers-wait-for-mq" . | nindent 6 }}
763
763
containers :
764
764
- name : st2workflowengine
765
- image : ' {{ template "stackstorm-ha.imageRepository" . }}/st2workflowengine:{{ tpl (.Values.st2workflowengine.image.tag | default .Values.image.tag) . }}'
765
+ image : ' {{ template "stackstorm-ha.imageRegistry" . }}/{{ template "stackstorm-ha. imageRepository" . }}/st2workflowengine:{{ tpl (.Values.st2workflowengine.image.tag | default .Values.image.tag) . }}'
766
766
imagePullPolicy : {{ .Values.image.pullPolicy }}
767
767
{{- with .Values.securityContext }}
768
768
securityContext : {{- toYaml . | nindent 10 }}
@@ -878,7 +878,7 @@ spec:
878
878
{{- include "stackstorm-ha.init-containers-wait-for-mq" . | nindent 6 }}
879
879
containers :
880
880
- name : st2scheduler
881
- image : ' {{ template "stackstorm-ha.imageRepository" . }}/st2scheduler:{{ tpl (.Values.st2scheduler.image.tag | default .Values.image.tag) . }}'
881
+ image : ' {{ template "stackstorm-ha.imageRegistry" . }}/{{ template "stackstorm-ha. imageRepository" . }}/st2scheduler:{{ tpl (.Values.st2scheduler.image.tag | default .Values.image.tag) . }}'
882
882
imagePullPolicy : {{ .Values.image.pullPolicy }}
883
883
{{- with .Values.securityContext }}
884
884
securityContext : {{- toYaml . | nindent 10 }}
@@ -994,7 +994,7 @@ spec:
994
994
{{- include "stackstorm-ha.init-containers-wait-for-mq" . | nindent 6 }}
995
995
containers :
996
996
- name : st2notifier
997
- image : ' {{ template "stackstorm-ha.imageRepository" . }}/st2notifier:{{ tpl (.Values.st2notifier.image.tag | default .Values.image.tag) . }}'
997
+ image : ' {{ template "stackstorm-ha.imageRegistry" . }}/{{ template "stackstorm-ha. imageRepository" . }}/st2notifier:{{ tpl (.Values.st2notifier.image.tag | default .Values.image.tag) . }}'
998
998
imagePullPolicy : {{ .Values.image.pullPolicy }}
999
999
{{- with .Values.securityContext }}
1000
1000
securityContext : {{- toYaml . | nindent 10 }}
@@ -1138,7 +1138,7 @@ spec:
1138
1138
initContainers :
1139
1139
{{- if $some_sensors_per_pod }}
1140
1140
- name : {{ $name }}-init-config
1141
- image : busybox:1.28
1141
+ image : ' {{ template "stackstorm-ha.imageRegistry" $ }}/library/ busybox:1.28'
1142
1142
volumeMounts :
1143
1143
- name : st2-sensor-config-vol
1144
1144
mountPath : /tmp/st2
@@ -1160,7 +1160,7 @@ spec:
1160
1160
{{- end }}
1161
1161
containers :
1162
1162
- name : {{ $name }}
1163
- image : ' {{ template "stackstorm-ha.imageRepository" $ }}/st2sensorcontainer:{{ tpl ($sensor.image.tag | default $.Values.image.tag) $ }}'
1163
+ image : ' {{ template "stackstorm-ha.imageRegistry" $ }}/{{ template "stackstorm-ha. imageRepository" $ }}/st2sensorcontainer:{{ tpl ($sensor.image.tag | default $.Values.image.tag) $ }}'
1164
1164
imagePullPolicy : {{ $.Values.image.pullPolicy }}
1165
1165
{{- with default $.Values.securityContext $sensor.securityContext }}
1166
1166
securityContext : {{- toYaml . | nindent 10 }}
@@ -1324,7 +1324,7 @@ spec:
1324
1324
containers :
1325
1325
- name : st2actionrunner
1326
1326
{{- with .Values.st2actionrunner }}
1327
- image : ' {{ .image.repository | default (include "stackstorm-ha.imageRepository" $) }}/{{ .image.name | default "st2actionrunner" }}:{{ tpl (.image.tag | default $.Values.image.tag) $ }}'
1327
+ image : ' {{ .image.registry | default (include "stackstorm-ha.imageRegistry" $) }}/{{ .image. repository | default (include "stackstorm-ha.imageRepository" $) }}/{{ .image.name | default "st2actionrunner" }}:{{ tpl (.image.tag | default $.Values.image.tag) $ }}'
1328
1328
{{- end }}
1329
1329
imagePullPolicy : {{ .Values.st2actionrunner.image.pullPolicy | default .Values.image.pullPolicy }}
1330
1330
{{- with default .Values.securityContext .Values.st2actionrunner.securityContext }}
@@ -1459,7 +1459,7 @@ spec:
1459
1459
{{- include "stackstorm-ha.init-containers-wait-for-mq" . | nindent 6 }}
1460
1460
containers :
1461
1461
- name : st2garbagecollector
1462
- image : ' {{ template "stackstorm-ha.imageRepository" . }}/st2garbagecollector:{{ tpl (.Values.st2garbagecollector.image.tag | default .Values.image.tag) . }}'
1462
+ image : ' {{ template "stackstorm-ha.imageRegistry" . }}/{{ template "stackstorm-ha. imageRepository" . }}/st2garbagecollector:{{ tpl (.Values.st2garbagecollector.image.tag | default .Values.image.tag) . }}'
1463
1463
imagePullPolicy : {{ .Values.image.pullPolicy }}
1464
1464
{{- with .Values.securityContext }}
1465
1465
securityContext : {{- toYaml . | nindent 10 }}
@@ -1572,7 +1572,7 @@ spec:
1572
1572
{{- end }}
1573
1573
# Sidecar container for generating st2client config with st2 username & password pair and sharing produced file with the main container
1574
1574
- name : generate-st2client-config
1575
- image : ' {{ template "stackstorm-ha.imageRepository" . }}/st2actionrunner:{{ tpl (.Values.st2client.image.tag | default (.Values.st2actionrunner.image.tag | default .Values.image.tag)) . }}'
1575
+ image : ' {{ template "stackstorm-ha.imageRegistry" . }}/{{ template "stackstorm-ha. imageRepository" . }}/st2actionrunner:{{ tpl (.Values.st2client.image.tag | default (.Values.st2actionrunner.image.tag | default .Values.image.tag)) . }}'
1576
1576
imagePullPolicy : {{ .Values.image.pullPolicy }}
1577
1577
{{- with .Values.securityContext }}
1578
1578
securityContext : {{- toYaml . | nindent 10 }}
@@ -1599,7 +1599,7 @@ spec:
1599
1599
EOT
1600
1600
containers :
1601
1601
- name : st2client
1602
- image : ' {{ template "stackstorm-ha.imageRepository" . }}/st2actionrunner:{{ tpl (.Values.st2client.image.tag | default .Values.image.tag) . }}'
1602
+ image : ' {{ template "stackstorm-ha.imageRegistry" . }}/{{ template "stackstorm-ha. imageRepository" . }}/st2actionrunner:{{ tpl (.Values.st2client.image.tag | default .Values.image.tag) . }}'
1603
1603
imagePullPolicy : {{ .Values.image.pullPolicy }}
1604
1604
{{- with default .Values.securityContext .Values.st2actionrunner.securityContext }}
1605
1605
securityContext : {{- toYaml . | nindent 10 }}
@@ -1749,7 +1749,7 @@ spec:
1749
1749
containers :
1750
1750
- name : st2chatops
1751
1751
{{- with .Values.st2chatops }}
1752
- image : ' {{ .image.repository | default (include "stackstorm-ha.imageRepository" $) }}/{{ .image.name | default "st2chatops" }}:{{ tpl (.image.tag | default $.Values.image.tag) $ }}'
1752
+ image : ' {{ .image.registry | default (include "stackstorm-ha.imageRegistry" $) }}/{{ .image. repository | default (include "stackstorm-ha.imageRepository" $) }}/{{ .image.name | default "st2chatops" }}:{{ tpl (.image.tag | default $.Values.image.tag) $ }}'
1753
1753
{{- end }}
1754
1754
imagePullPolicy : {{ .Values.st2chatops.image.pullPolicy | default .Values.image.pullPolicy }}
1755
1755
{{- with .Values.securityContext }}
0 commit comments