DanielRaapDev commented on issue #799: URL: https://github.com/apache/solr-operator/issues/799#issuecomment-3285463047
A direct approach would use the [HTTP probes](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#http-probes) with `httpHeaders` like: ```yaml startupProbe: httpGet: httpHeaders: - name: Authorization value: Basic azhzLW9wZXI6ZXhhbXBsZQ ``` ⚠️ Which provides the username "k8s-oper" and the password "example" plain base64 encoded in the pod spec. But I guess the Solr Operator could create such a spec. ---- Maybe we can just use `curl` as command? The password can still be provided as mounted secret like now: ```bash curl --user "$(cat /etc/secrets/solr-k8s-oper-credentials/username):$(cat /etc/secrets/solr-k8s-oper-credentials/password)" "http://${SOLR_HOST}:8983/solr/admin/info/health" | grep '"status":"OK"' ``` -- 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]
