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

#6 add how to setup cname #6

Merged
merged 1 commit into from
Oct 2, 2022
Merged
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
22 changes: 22 additions & 0 deletions openshift/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,28 @@ obp-frontend obp-frontend-chrisjsimpson-dev.apps.sandbox-m2.ll9k.p1.openshifta

You may then choose to configure your DNS, adding a `CNAME` for the generated route to the app web frontend.

### How do I *test* using my own webaddress?

1. Get & note down the existing application route name `oc get route` (e.g `obp-frontend-chrisjsimpson-dev.apps.sandbox-m2.ll9k.p1.openshiftapps.com`)
2. Delete the existing route resource (they are immutable): `oc delete -f route.yaml`
3. Add your `host` to `route.yaml` (for example if you are `example.com` and you want
to setup `obp-api.example.com`:

```
apiVersion: route.openshift.io/v1
kind: Route
metadata:
name: obp-frontend
spec:
host: obp-api.example.com
to:
kind: Service
name: obpapi-service
```

4. Set your DNS CNAME record to point to the old application route name: e.g. `obp-api.example.com IN CNAME obp-frontend-chrisjsimpson-dev.apps.sandbox-m2.ll9k.p1.openshiftapps.com`
5. Apply `oc apply -f route.yaml`


# Deploy OBP API to your local development environment

Expand Down