|
72 | 72 | # TODO: Add liveness/readiness probes (#3)
|
73 | 73 | #livenessProbe:
|
74 | 74 | #readinessProbe:
|
| 75 | + command: |
| 76 | + - /opt/stackstorm/st2/bin/st2auth |
| 77 | + {{- include "stackstorm-ha.st2-config-file-parameters" $ | nindent 10 }} |
75 | 78 | {{- if .Values.st2auth.env }}
|
76 | 79 | env: {{- include "stackstorm-ha.customEnv" .Values.st2auth | nindent 8 }}
|
77 | 80 | {{- end }}
|
@@ -188,6 +191,9 @@ spec:
|
188 | 191 | # TODO: Add liveness/readiness probes (#3)
|
189 | 192 | #livenessProbe:
|
190 | 193 | #readinessProbe:
|
| 194 | + command: |
| 195 | + - /opt/stackstorm/st2/bin/st2api |
| 196 | + {{- include "stackstorm-ha.st2-config-file-parameters" $ | nindent 10 }} |
191 | 197 | {{- if .Values.st2api.env }}
|
192 | 198 | env: {{- include "stackstorm-ha.customEnv" .Values.st2api | nindent 8 }}
|
193 | 199 | {{- end }}
|
@@ -311,6 +317,9 @@ spec:
|
311 | 317 | # TODO: Add liveness/readiness probes (#3)
|
312 | 318 | #livenessProbe:
|
313 | 319 | #readinessProbe:
|
| 320 | + command: |
| 321 | + - /opt/stackstorm/st2/bin/st2stream |
| 322 | + {{- include "stackstorm-ha.st2-config-file-parameters" $ | nindent 10 }} |
314 | 323 | {{- if .Values.st2stream.env }}
|
315 | 324 | env: {{- include "stackstorm-ha.customEnv" .Values.st2stream | nindent 8 }}
|
316 | 325 | {{- end }}
|
@@ -540,6 +549,9 @@ spec:
|
540 | 549 | # TODO: Add liveness/readiness probes (#3)
|
541 | 550 | #livenessProbe:
|
542 | 551 | #readinessProbe:
|
| 552 | + command: |
| 553 | + - /opt/stackstorm/st2/bin/st2rulesengine |
| 554 | + {{- include "stackstorm-ha.st2-config-file-parameters" $ | nindent 10 }} |
543 | 555 | {{- if .Values.st2rulesengine.env }}
|
544 | 556 | env: {{- include "stackstorm-ha.customEnv" .Values.st2rulesengine | nindent 8 }}
|
545 | 557 | {{- end }}
|
@@ -654,6 +666,9 @@ spec:
|
654 | 666 | # TODO: Add liveness/readiness probes (#3)
|
655 | 667 | #livenessProbe:
|
656 | 668 | #readinessProbe:
|
| 669 | + command: |
| 670 | + - /opt/stackstorm/st2/bin/st2timersengine |
| 671 | + {{- include "stackstorm-ha.st2-config-file-parameters" $ | nindent 10 }} |
657 | 672 | {{- if .Values.st2timersengine.env }}
|
658 | 673 | env: {{- include "stackstorm-ha.customEnv" .Values.st2timersengine | nindent 8 }}
|
659 | 674 | {{- end }}
|
@@ -755,6 +770,9 @@ spec:
|
755 | 770 | # TODO: Add liveness/readiness probes (#3)
|
756 | 771 | #livenessProbe:
|
757 | 772 | #readinessProbe:
|
| 773 | + command: |
| 774 | + - /opt/stackstorm/st2/bin/st2workflowengine |
| 775 | + {{- include "stackstorm-ha.st2-config-file-parameters" $ | nindent 10 }} |
758 | 776 | {{- if .Values.st2workflowengine.env }}
|
759 | 777 | env: {{- include "stackstorm-ha.customEnv" .Values.st2workflowengine | nindent 8 }}
|
760 | 778 | {{- end }}
|
@@ -868,6 +886,9 @@ spec:
|
868 | 886 | # TODO: Add liveness/readiness probes (#3)
|
869 | 887 | #livenessProbe:
|
870 | 888 | #readinessProbe:
|
| 889 | + command: |
| 890 | + - /opt/stackstorm/st2/bin/st2scheduler |
| 891 | + {{- include "stackstorm-ha.st2-config-file-parameters" $ | nindent 10 }} |
871 | 892 | {{- if .Values.st2scheduler.env }}
|
872 | 893 | env: {{- include "stackstorm-ha.customEnv" .Values.st2scheduler | nindent 8 }}
|
873 | 894 | {{- end }}
|
@@ -981,6 +1002,9 @@ spec:
|
981 | 1002 | # TODO: Add liveness/readiness probes (#3)
|
982 | 1003 | #livenessProbe:
|
983 | 1004 | #readinessProbe:
|
| 1005 | + command: |
| 1006 | + - /opt/stackstorm/st2/bin/st2notifier |
| 1007 | + {{- include "stackstorm-ha.st2-config-file-parameters" $ | nindent 10 }} |
984 | 1008 | {{- if .Values.st2notifier.env }}
|
985 | 1009 | env: {{- include "stackstorm-ha.customEnv" .Values.st2notifier | nindent 8 }}
|
986 | 1010 | {{- end }}
|
@@ -1150,20 +1174,16 @@ spec:
|
1150 | 1174 | livenessProbe:
|
1151 | 1175 | {{- toYaml . | nindent 10 }}
|
1152 | 1176 | {{- end }}
|
1153 |
| - {{- if or $one_sensor_per_pod $some_sensors_per_pod }}{{/* ie: when there is more than one pod of sensors */}} |
1154 | 1177 | command:
|
1155 | 1178 | - /opt/stackstorm/st2/bin/st2sensorcontainer
|
1156 |
| - - --config-file=/etc/st2/st2.conf |
1157 |
| - - --config-file=/etc/st2/st2.docker.conf |
1158 |
| - - --config-file=/etc/st2/st2.user.conf |
| 1179 | + {{- include "stackstorm-ha.st2-config-file-parameters" $ | nindent 10 }} |
1159 | 1180 | {{- if $one_sensor_per_pod }}{{/* only in st2.packs.sensors[] */}}
|
1160 | 1181 | - --single-sensor-mode
|
1161 | 1182 | - --sensor-ref={{ required "You must define `ref` for everything in st2.packs.sensors. This assigns each sensor to a pod." $sensor.ref }}
|
1162 | 1183 | {{- else if $some_sensors_per_pod }}
|
1163 | 1184 | # injected by {{ $name }}-init-config
|
1164 | 1185 | - --config-file=/etc/st2/st2.sensorcontainer.conf
|
1165 | 1186 | {{- end }}
|
1166 |
| - {{- end }} |
1167 | 1187 | {{- if $sensor.env }}
|
1168 | 1188 | env: {{- include "stackstorm-ha.customEnv" $sensor | nindent 8 }}
|
1169 | 1189 | {{- end }}
|
@@ -1313,6 +1333,9 @@ spec:
|
1313 | 1333 | # TODO: Add liveness/readiness probes (#3)
|
1314 | 1334 | #livenessProbe:
|
1315 | 1335 | #readinessProbe:
|
| 1336 | + command: |
| 1337 | + - /opt/stackstorm/st2/bin/st2actionrunner |
| 1338 | + {{- include "stackstorm-ha.st2-config-file-parameters" $ | nindent 10 }} |
1316 | 1339 | {{- if .Values.st2actionrunner.env }}
|
1317 | 1340 | env: {{- include "stackstorm-ha.customEnv" .Values.st2actionrunner | nindent 8 }}
|
1318 | 1341 | {{- end }}
|
@@ -1444,6 +1467,9 @@ spec:
|
1444 | 1467 | # TODO: Add liveness/readiness probes (#3)
|
1445 | 1468 | #livenessProbe:
|
1446 | 1469 | #readinessProbe:
|
| 1470 | + command: |
| 1471 | + - /opt/stackstorm/st2/bin/st2garbagecollector |
| 1472 | + {{- include "stackstorm-ha.st2-config-file-parameters" $ | nindent 10 }} |
1447 | 1473 | {{- if .Values.st2garbagecollector.env }}
|
1448 | 1474 | env: {{- include "stackstorm-ha.customEnv" .Values.st2garbagecollector | nindent 8 }}
|
1449 | 1475 | {{- end }}
|
|
0 commit comments