Local dns server for juju IP addresses

Bug #2055891 reported by Leon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
Wishlist
Unassigned

Bug Description

When developing and testing charms, it's very common to query the workload's HTTP API. For example:

https://github.com/canonical/prometheus-k8s-operator/blob/13a7202718f6441ff5c3101ccbba4cdbd633f00d/tests/integration/helpers.py#L23

In dev-envs and itests it would be extremely handy to be able to curl juju apps/units by topology, instead of via IP address. For example:

# App
prometheus.cos-lite.juju.internal:9090

# Unit
unit-0.prometheus.cos-lite.juju.internal:9090

# Leader
leader.prometheus.cos-lite.juju.internal:9090

Proof of concept:
https://discourse.charmhub.io/t/local-dns-server-for-juju-units-proof-of-concept/13280

Revision history for this message
Vitaly Antonenko (anvial) wrote :

Thx for providing perspective and useful PoC, this wishlist is definitely worth further discussion.

Changed in juju:
status: New → Triaged
importance: Undecided → Wishlist
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.