How do I get buildctl to load the Kubernetes CA from /var/run/secrets/kubernetes.io/serviceaccount/ca.crt #6515
Closed
crouth-redge
started this conversation in
General
Replies: 1 comment
-
|
Worked out that there's a hard requirement on mutual TLS here when using certs - so I need "client" certs. Mounting the same secret to the jobs did the trick. This needs to be added under And then this is how the job works: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying this solution for buildkit on unprivileged gitlab-runners (on GKE autopilot) https://forum.gitlab.com/t/migrating-from-kaniko-to-buildkit-still-need-elevated-permissions/128648/9
Everything is setup - but the last hurdle seems to be getting
buildctlto use/var/run/secrets/kubernetes.io/serviceaccount/ca.crtto trust the certificate that the remote buildkitd uses.I've tried passing
--tlscacert /var/run/secrets/kubernetes.io/serviceaccount/ca.crtas well as copying it to/etc/ssl/certsUnfortunately AI addled search is helping nothing - and every result is confused with pushing to insecure registries or setting up the buildkitd daemon
I need to trust the CA from the buildctl side - how do I do that?
Beta Was this translation helpful? Give feedback.
All reactions