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

Switch to secured routes #628

Merged
merged 2 commits into from
Nov 4, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -166,5 +166,5 @@ jobs:
* [OpenShift](https://openshift-basics-pr-${{ github.event.pull_request.number }}.training.acend.ch)
* [OpenShift Baloise](https://openshift-basics-baloise-pr-${{ github.event.pull_request.number }}.training.acend.ch)
* [OpenShift SBB](https://openshift-basics-sbb-pr-${{ github.event.pull_request.number }}.training.acend.ch)
* [OpenShift BFH](https://openshift-basics-bfh-pr-${{ github.event.pull_request.number }}.training.acend.ch)
* [OpenShift BFH](https://openshift-basics-bfh-pr-${{ github.event.pull_request.number }}.training.tim-koko.ch)
* [APPUiO Techlab](https://techlab-pr-${{ github.event.pull_request.number }}.training.acend.ch)
18 changes: 0 additions & 18 deletions content/en/docs/exposing-a-service/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,22 +184,6 @@ kubectl apply -f ing-example-web-go.yaml --namespace <namespace>
Afterwards, we are able to access our freshly created Ingress at `http://example-web-go-<namespace>.<appdomain>`
{{% /onlyWhenNot %}}
{{% onlyWhen openshift %}}
{{% onlyWhenNot baloise %}}

```bash
oc expose service example-web-go --namespace <namespace>
```

The output should be:

```
route.route.openshift.io/example-web-go exposed
```

We are now able to access our app via the freshly created route at `http://example-web-go-<namespace>.<appdomain>`

{{% /onlyWhenNot %}}
{{% onlyWhen baloise %}}

```bash
oc create route edge example-web-go --service example-web-go --namespace <namespace>
Expand All @@ -213,8 +197,6 @@ route.route.openshift.io/example-web-go created

We are now able to access our app via the freshly created route at `https://example-web-go-<namespace>.<appdomain>`

{{% /onlyWhen %}}

Find your actual app URL by looking at your route (HOST/PORT):

```bash
Expand Down
15 changes: 2 additions & 13 deletions content/en/docs/scaling/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,31 +173,20 @@ Apply this Ingress definition using, e.g.:
{{% onlyWhen openshift %}}
Now we expose our application to the internet by creating a service and a route.

First the Service:
First the service:

```bash
oc expose deployment example-web-app --name="example-web-app" --port={{% param "containerImages.training-image-port" %}} --namespace <namespace>
```

Then the Route:

{{% onlyWhenNot baloise %}}

```bash
oc expose service example-web-app --namespace <namespace>
```

{{% /onlyWhenNot %}}
{{% onlyWhen baloise %}}
Then the route:

```bash
oc create route edge example-web-app --service example-web-app --namespace <namespace>
```

{{% /onlyWhen %}}

{{% /onlyWhen %}}

Let's look at our Service. We should see all three corresponding Endpoints:

```bash
Expand Down
Loading