question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItĀ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`.status.loadBalancer` field was not updated with a hostname/IP address.

See original GitHub issue

Hello!

  • Vote on this issue by adding a šŸ‘ reaction
  • To contribute a fix for this issue, leave a comment (and link to your pull request, if you’ve opened one already)

Issue details

Hi, I am trying to run the following code:

monitoring = kubernetes.helm.v3.Release(
    "monitoring",
    name="monitoring",
    chart="kube-prometheus-stack",
    namespace="monitoring",
    repository_opts=kubernetes.helm.v3.RepositoryOptsArgs(
        repo="https://prometheus-community.github.io/helm-charts",
    ),
    values={
        "grafana": {
            "ingress": {
                "enabled": True,
            },
        },
    },
)

grafana_ingress = kubernetes.networking.v1.Ingress.get(
    "grafana-ingress",
    Output.concat(monitoring.status.namespace, "/", monitoring.status.name, "-grafana"),
    opts=ResourceOptions(depends_on=[monitoring]),
)
grafana_ip = grafana_ingress.status.load_balancer.ingress[0].ip

And I get:

$ pulumi up
...
kubernetes:networking.k8s.io/v1:Ingress (grafana-ingress):
    error: 2 errors occurred:
    	* Resource 'monitoring-grafana' was created but failed to initialize
    	* Ingress .status.loadBalancer field was not updated with a hostname/IP address.
        for more information about this error, see https://pulumi.io/xdv72s

I was monitoring the creation of ingress during the deployment. The helm.v3.Release waits for the creation of the monitoring-grafana ingress but the ingress itself got a public ip after 90 seconds. That’s why it is failing.

@rawkode

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:6
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
Evan-Scommented, Mar 8, 2022

Yes it’s kubernetes.helm.v3.Chart, although I’m not aware of the difference.

I just realized that you are getting the ingress, while I am creating an ingress attached to the service created by the chart. I get the same error message, but it cannot be the issue with get as viveklak described.

I’d like to ping @mikhailshilkov and @lblackstone again as mentioned to see if they have any idea why this is only a problem for newer versions and if there’s a workaround, so people getting ingress/creating ingress based on a chart are not locked into older releases. I was hopeful #1810 was the same issue and would fix this, but the resolution did not address my problem, however it differs.

Edit: It only happens for an ingress pointing to a service created by a chart, not for any ingress for our own custom deployments and corresponding services. So it’s definitely a helm specific problem, but doesn’t seem to be the same one viveklak mentioned.

0reactions
blampecommented, Jun 11, 2022

Traefik doesn’t update the status field by default – you’ll need to explicitly enable that behavior by passing something like

  • --providers.kubernetesingress.ingressendpoint.ip=127.0.0.1 or
  • --providers.kubernetesingress.ingressendpoint.hostname=localhost

I was able to reproduce this interaction with Pulumi and confirmed that setting ip/hostname allows everything to complete as expected.

See also https://github.com/traefik/traefik/issues/2173 and the docs here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ingress .status.loadBalancer field was not updated with a ...
Ingress .status.loadBalancer field was not updated with a hostname/IP address with traefik ingress controller configured as NodePort #1812.
Read more >
1908505 – Ingress is using domain name instead of IP address
3) We noticed openshift contoller manager is updating the status field with > the domain name. [...] Right, that is by design (as...
Read more >
Troubleshooting Guide - Pulumi
loadBalancer field was not updated with a hostname/IP address. This error is often caused by a misconfigured ingress-controller not updating the status.
Read more >
HA setup and configuration - Ivanti
The following table summarizes fields and descriptions in the HA Configuration ... It provides the status of its pair system, its hostname/IP address,Ā ......
Read more >
Pools | Server Pools | NSX Advanced Load Balancer Platform
The table provides more details about these servers, such as hostname, IP address, health, new connections or requests, health score, and the server'sĀ ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found