Closed lucabello closed 7 months ago
Use ops.Unit.open_port for the port to show up in Juju status.
ops.Unit.open_port
Due to a Juju bug, it might not show up there yet; use juju exec <unit> -- opened-ports to verify.
juju exec <unit> -- opened-ports
charmcraft pack juju deploy ./blackbox-exporter-k8s_ubuntu-22.04-amd64.charm blackbox # Wait for the charm juju exec --unit blackbox/0 -- opened-ports
Issue
Use
ops.Unit.open_port
for the port to show up in Juju status.Due to a Juju bug, it might not show up there yet; use
juju exec <unit> -- opened-ports
to verify.Testing Instructions