Self-signed certificate not working with docker buildx kubernetes driver #3720
Replies: 1 comment
-
|
I've hit this before with the kubernetes driver. The With the kubernetes driver, the cert mount isn't automatic. You need to make sure the certificate is available inside the buildkit pod, usually via a Secret or ConfigMap. Something like: kubectl create secret generic harbor-ca --from-file=ca.crt=/path/to/ca.crt -n buildkitAnd then configure the builder to mount it: docker buildx create --driver kubernetes \
--driver-opt "namespace=buildkit" \
--buildkitd-config ./buildkitd.toml \
--driver-opt "qemu.install=true" \
--name mybuilderBut honestly, if |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a kubernetes driver with registry cache as harbor. I created self-signed certificate for harbor. The host node has the harbor ingress url as insecure registry. The kubernetes driver has the certificates mounted and buildkitd.toml has ca defined. But still getting "tls: failed to verify certificate: x509: certificate signed by unknown authority".
I also have added the harbor ingress url as an insecure registry in docker.
Beta Was this translation helpful? Give feedback.
All reactions