-
Notifications
You must be signed in to change notification settings - Fork 494
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
Is --config ignored when using the k8s driver #603
Comments
This is unimplemented yet |
@AkihiroSuda , thanks for confirming. Can I ask whether there are any plans to implement this in the near term, or whether you need a feature request to be raised ? Can you suggest any alternate approach to make use of a private registry in the mean time (we wish to maintain a consistent implementation across our development, staging and release environments iro registry integration - public registries are not permitted by our CISO)? Thanks. |
PR is wanted. A workaround is to build your own moby/buildkit image with the config file, and specify the image with |
Thanks @AkihiroSuda I thought that (workaround) would be needed for now. I guess a PR would be appropriate once a candidate implementation has been developed. I suspect that is beyond my talents (although I am will to try if you want to point me in the right direction). Regards. |
Some additional information which may be helpful. As suggested, using a custom image which includes a buildkitd.toml in the /etc/buildkit directory and referencing that image when calling docker buildx create ... does allow a successful build and load (or push):
--push also works fine. However, .... If I then attempt to execute
Using a docker.io image is ok:
|
re: comment from the Buildkit repo: moby/buildkit#2044 (comment)
I noted the above comment under another issue and wanted to check whether using --config with the buildx k8s driver is NOT supported right now (and if not, if it is likely to be in the near term future) ?
This is what I have observed in trying to get this to work.
I have been struggling trying to get buildx to allow me to use a private registry. Per the documentation I added --config with
buildx create ...
, like this:docker buildx create --name buildx-test --config config.toml --driver kubernetes --driver-opt replicas=1,namespace=buildx --use
where the config.toml file exists in the directory where I execute the above command and contains:
When I request a build and use --load or --push I get the following output, which shows that the build worked successfully but buildx attempts to connect to the private registry with HTTPS rather than HTTP:
If I check the buildx container, there is definitely no sign of the toml, and the /etc/buildkit directory doesn't exist (assuming thats where it would be copied).
I can confirm that the buildx container can resolve the registry by exec'ing into the container and calling the registry API:
Kind Regards
Fraser Goffin
The text was updated successfully, but these errors were encountered: