chungen0126 commented on code in PR #42:
URL: https://github.com/apache/ozone-helm-charts/pull/42#discussion_r3620057862
##########
charts/ozone/templates/scm/scm-statefulset.yaml:
##########
@@ -117,6 +117,19 @@ spec:
- name: grpc
containerPort: {{ .Values.scm.service.grpcPort }}
{{- end }}
+ {{- if gt (int .Values.scm.replicas) 1 }}
+ startupProbe:
+ exec:
+ command:
+ - sh
+ - -c
+ - |
+ ozone admin scm roles 2>/dev/null | grep -q $(hostname -f)
&& exit 0 || exit 1
Review Comment:
Thanks @shuan1026 for working on this. I think we should also check if SCM
leaves safe mode.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]