Skip to content

Add support for traefik-k8s:ingress#567

Draft
wctaylor wants to merge 3 commits intomainfrom
iqa-3380_support_traefik-k8s_ingress
Draft

Add support for traefik-k8s:ingress#567
wctaylor wants to merge 3 commits intomainfrom
iqa-3380_support_traefik-k8s_ingress

Conversation

@wctaylor
Copy link
Collaborator

Description

Resolved issues

Documentation

Web service API changes

Tests

Comment on lines +101 to +102
# and providing a custom hostname requires more effort to support
self.ingress = IngressPerAppRequirer(charm=self, port=int(self.config["port"]), strip_prefix=True)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a way to expose an additional port? I'm thinking of port 9000 for the metrics endpoint.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. I think maybe I just have to set two requirers, like

        self.ingress_api = IngressPerAppRequirer(charm=self, port=int(self.config["api_port"]), strip_prefix=True)
        self.ingress_metrics = IngressPerAppRequirer(charm=self, port=int(self.config["metrics_port"]), strip_prefix=True)

I'll have to test this out and see how it goes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants