Skip to content

Kubeconfig not used #1697

Description

@maitredede

Contributing guidelines

I've found a bug and checked that ...

  • ... the documentation does not mention anything about my problem
  • ... there are no open or closed issues that are related to my problem

Description

Using buildx plugin v0.10.4, I am using a gitlab CI task to create a kubernetes builder. The kubernetes config file is at default place : /root/.kube/config in runner task. It is properly used (kubectl get nodes is ok).

When I want to create a builder docker buildx create --bootstrap --driver=kubernetes [...] I have an error User "system:anonymous" cannot get resource "deployments" in API group "apps" in the namespace "gitlab-ci".

I also tried to set env var KUBECONFIG, but it does not change the behavior.

It may be related to #1676

Expected behaviour

The builder creation command docker buildx create --bootstrap --driver=kubernetes [...] should work.

I have downgraded to v0.9.1, it works :

Actual behaviour

Error User "system:anonymous" cannot get resource "deployments" in API group "apps" in the namespace "gitlab-ci".
Tested with :

Buildx version

github.com/docker/buildx v0.10.4 c513d34

Docker info

No response

Builders list

Builder not yet created

Configuration

docker buildx create --name=mybuilder --platform=linux/amd64 --node=amd64


### Logs

_No response_

### Additional info

_No response_

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions