Skip to content

Gardener shoot creation fails: extension-provider-metal cannot reach metal-api endpoint from within Kind cluster #285

Open

Description

@ChielTimmermans

Description

When running mini-lab with MINI_LAB_FLAVOR=gardener and attempting to create a Shoot, the extension-provider-metal fails to reach the metal-api. The cloud profile endpoint (https://api.172.17.0.1.nip.io) resolves to 172.17.0.1 (Docker bridge gateway), which is not routable from pods running inside the Kind cluster.
Steps to Reproduce

  1. Start mini-lab with Gardener flavor:
    MINI_LAB_FLAVOR=gardener make
  2. Patch seed to be visible and remove protected taint:
    kubectl patch seed local --type=merge -p '{"spec":{"settings":{"scheduling":{"visible":true}},"taints":[]}}'
  3. Create a Project, SecretBinding, and Shoot in the virtual garden with correct cloud profile values and required cluster.metal-stack.io/tenant annotation
  4. Observe the Infrastructure extension status on the seed:
    kubectl get infrastructure -n shoot---- -o yaml

Expected Behavior

The extension-provider-metal reaches the metal-api and provisions infrastructure.

Actual Behavior

The Infrastructure resource is stuck in Processing with:

status:
  lastError:
    description: 'Error reconciling infrastructure: failed to list egress ips of cluster Post "https://api.172.17.0.1.nip.io/v1/ip/find": context deadline exceeded'

Root Cause

The cloud profile is configured with:

providerConfig:
  metalControlPlanes:
    test:
      endpoint: https://api.172.17.0.1.nip.io

This endpoint originates from metal_control_plane_ingress_dns: 172.17.0.1.nip.io, which resolves to 172.17.0.1 (Docker bridge gateway). This address is reachable from the host but not from pods inside the Kind cluster. The extension-provider-metal runs as a pod on the seed and uses this endpoint to call the metal-api, resulting in a connection timeout.

Confirmed from within the Kind node:

Times out - Docker bridge gateway not routable from pods

docker exec metal-control-plane-control-plane curl -sk --connect-timeout 5 https://api.172.17.0.1.nip.io/v1/version

exit code 28 (timeout)

Works - cluster-internal address

docker exec metal-control-plane-control-plane curl -sk http://metal-api.metal-control-plane.svc.cluster.local:8080/v1/version

success

Activity

  1. majst01 commented on Mar 24, 2026

    @majst01
    Contributor

    Glad you tried that, this is not expected to work til now, we just have set the gardener flavor set up to the point where the control plane works, no shoots could be started yet. This is also most probably quite difficult because the memory consumption would be more than most laptops would provide.

  2. ChielTimmermans commented on Mar 24, 2026

    @ChielTimmermans
    Author

    OK, is this something you guys would want? Because I am trying to get this to work. I could open a MR with all the changes that are necessary. Or do you think that it will be a waste of time?

    What kind of memory consumption should I think of?

  3. majst01 commented on Mar 24, 2026

    @majst01
    Contributor

    OK, is this something you guys would want? Because I am trying to get this to work. I could open a MR with all the changes that are necessary. Or do you think that it will be a waste of time?

    What kind of memory consumption should I think of?

    We would love to get this working, we guess >= 64GB of Memory would be required.

  4. ChielTimmermans commented on Mar 24, 2026

    @ChielTimmermans
    Author

    OK, I will let you know if we have something working.

  5. Gerrit91 commented on Mar 25, 2026

    @Gerrit91
    Contributor

    If this should work out I would even add this to the "quick" release integration in https://github.com/metal-stack/releases. Unfortunately, the last notebook I had was not able to make it. If you need any help with this or have questions, let us know.

    Memory was not the bottleneck though. It was more a CPU problem on my side. I don't expect it would take more than 64GB memory.

  6. vknabel commented on May 5, 2026

    @vknabel
    Contributor

    Thanks for taking a look @ChielTimmermans!
    Is there any way we can support you?

  7. moved this to Upcoming in Developmenton May 5, 2026
  8. added
    area: deployment
    area: gardener
    on May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: deploymentarea: gardener

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions