Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ingress #22

Merged
merged 9 commits into from
Jan 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,20 @@ juju deploy kratos
juju relate kratos postgresql-k8s
```

### Ingress

The Kratos Operator offers integration with the [traefik-k8s-operator](https://github.com/canonical/traefik-k8s-operator) for ingress. Kratos has two APIs which can be exposed through ingress, the public API and the admin API.

If you have a traefik deployed and configured in your kratos model, to provide ingress to the admin API run:
```console
juju relate traefik-admin kratos:admin-ingress
```

To provide ingress to the public API run:
```console
juju relate traefik-public kratos:public-ingress
```

### Interacting with Kratos API

Below are two examples of the API. Visit [Ory](https://www.ory.sh/docs/kratos/reference/api) to see full API specification.
Expand Down
1 change: 1 addition & 0 deletions integration-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
pytest
juju
pytest-operator==0.22.0
requests
-r requirements.txt
Loading