Skip to content
Was this page helpful?

Shoot Advertised Addresses ​

Upon reconciliation, the gardenlet populates the list of advertised addresses for the shoot cluster in the .status.advertisedAddresses field of the Shoot resource.

This list provides endpoints for various services, such as the Kubernetes API server of the shoot, the OIDC service account issuer, etc.

The example command below shows the list of advertised endpoints for a local shoot cluster.

shell
$ kubectl --namespace garden-local get shoots local -o yaml | yq '.status.advertisedAddresses'
- name: external
  url: https://api.local.local.external.local.gardener.cloud
- name: internal
  url: https://api.local.local.internal.local.gardener.cloud
- name: service-account-issuer
  url: https://discovery.local.gardener.cloud/projects/local/shoots/41a0cdaa-6ad5-4846-9f6b-b7a7716538cb/issuer

The external, internal and service-account-issuer endpoints (amongst others) are always present by default for a shoot cluster. Besides these, additional endpoints from the shoot control-plane namespace may be advertised, e.g. observability-related components such as plutono, vali, prometheus, etc.

While the external domain of the shoot is migrated (see Changing the External Domain), the list additionally contains a prior-external endpoint with the old external domain, directly after the external endpoint. It is only present while the CA rotation is in the phases Preparing to Prepared. The kubeconfigs handed out by Gardener contain it as an additional context, while the current context stays on the external endpoint. During the migration, the gardenlet updates the list only after the DNS records of both domains are ready and the kube-apiserver serves both domains. Until then, the list still holds the old external domain as external.

NOTE

As of now, only Ingress and VirtualService resources support to be advertised using this label. In the future, support for Gateway resources will be added as well.

In order to advertise such endpoints, their respective Ingress or VirtualService resource needs to be labeled with endpoint.shoot.gardener.cloud/advertise=true.

Optionally, an application name can be set using the endpoint.shoot.gardener.cloud/application label. This application name is intended to be used by any external clients consuming the advert. The value of this label is not interpreted by the gardenlet and can be set to any string.

For example, if we want to advertise the credativ/plutono endpoint for our local shoot cluster, we would label its respective Ingress resource like this:

yaml
metadata:
  name: plutono
  namespace: shoot--local--local
  labels:
    endpoint.shoot.gardener.cloud/advertise: "true"
    endpoint.shoot.gardener.cloud/application: "credativ/plutono"

After successful reconciliation of the Shoot by the gardenlet, we should see a new advertised endpoint for our cluster.

shell
- name: external
  url: https://api.local.local.external.local.gardener.cloud
- name: internal
  url: https://api.local.local.internal.local.gardener.cloud
- name: service-account-issuer
  url: https://discovery.local.gardener.cloud/projects/local/shoots/41a0cdaa-6ad5-4846-9f6b-b7a7716538cb/issuer
- name: ingress/plutono/0/0
  url: https://gu-local--local.ingress.local.seed.local.gardener.cloud
  application: credativ/plutono

Last updated: