diff --git a/src/charm.py b/src/charm.py index 34c62fd57e..b51775c1e4 100755 --- a/src/charm.py +++ b/src/charm.py @@ -242,9 +242,7 @@ def __init__(self, *args): relation_name="logging", ) - postgresql_db_port = ServicePort(5432, name="database") - patroni_api_port = ServicePort(8008, name="api") - self.service_patcher = KubernetesServicePatch(self, [postgresql_db_port, patroni_api_port]) + self.unit.set_ports(*[5432, 8008]) self.tracing = TracingEndpointRequirer( self, relation_name=TRACING_RELATION_NAME, protocols=[TRACING_PROTOCOL] )