-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: when I enable mtls, zot pod failed to start with error: Startup probe failed #2932
Comments
"cacert": "/secret/tls/ca.crt" ^ specifying this, causes zot to expect a client-side cert. Try removing that line in the config. Thanks for trying out zot. Cheers! |
if removing that line in the config, it will be disable mtls, and change to tls. do you have any example for mtls certification? |
The better option then maybe to enable basic auth via htpasswd under livenessProbe:
httpGet:
path: /healthz
port: 8080
httpHeaders:
- name: Authorization
value: Basic aGE6aGE= |
Do we have a healthz endpoint? Maybe we should. There was an issue about it somewhere. L.E. here it was: #2487 |
No, but use /v2/ as the endpoint. |
We should really mark this a DUPLICATE of #2487 |
after I added auth to http config, I can got zot pod start successfully |
Closing as resolved. |
zot version
v2.1.2
Describe the bug
when I enable mtls, zot pod failed to start with error: Startup probe failed: Get "https://10.0.0.20:5000/v2/": remote error: tls: certificate required.
Could you please confirm:
To reproduce
Warning Unhealthy 46s (x4 over 96s) kubelet Startup probe failed: Get "https://10.0.0.20:5000/v2/": remote error: tls: certificate required
The text was updated successfully, but these errors were encountered: