Skip to content

Commit

Permalink
Switch to secured routes
Browse files Browse the repository at this point in the history
  • Loading branch information
bliemli committed Nov 4, 2024
1 parent 055fbba commit f867cc5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 31 deletions.
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

0 comments on commit f867cc5

Please sign in to comment.