canonical / cos-configuration-k8s-operator

This charmed operator for Kubernetes enables you to provide configurations to various components of the Canonical Observability Stack (COS) bundle.
https://charmhub.io/cos-configuration-k8s
Apache License 2.0
4 stars 5 forks source link

add open port support #91

Closed lucabello closed 3 months ago

lucabello commented 3 months ago

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

charmcraft pack
juju deploy ./cos-configuration-k8s_ubuntu-20.04-amd64.charm cos-config
# Wait for the charm
juju exec --unit cos-config/0 -- opened-ports