From f867cc53c62395dcd829ac20a4f796f4c4380e1a Mon Sep 17 00:00:00 2001 From: Benjamin Affolter <5555767+bliemli@users.noreply.github.com> Date: Mon, 4 Nov 2024 11:02:32 +0100 Subject: [PATCH] Switch to secured routes --- content/en/docs/exposing-a-service/_index.md | 18 ------------------ content/en/docs/scaling/_index.md | 15 ++------------- 2 files changed, 2 insertions(+), 31 deletions(-) diff --git a/content/en/docs/exposing-a-service/_index.md b/content/en/docs/exposing-a-service/_index.md index 0541bc17..1d73a460 100644 --- a/content/en/docs/exposing-a-service/_index.md +++ b/content/en/docs/exposing-a-service/_index.md @@ -184,22 +184,6 @@ kubectl apply -f ing-example-web-go.yaml --namespace Afterwards, we are able to access our freshly created Ingress at `http://example-web-go-.` {{% /onlyWhenNot %}} {{% onlyWhen openshift %}} -{{% onlyWhenNot baloise %}} - -```bash -oc expose service example-web-go --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-.` - -{{% /onlyWhenNot %}} -{{% onlyWhen baloise %}} ```bash oc create route edge example-web-go --service example-web-go --namespace @@ -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-.` -{{% /onlyWhen %}} - Find your actual app URL by looking at your route (HOST/PORT): ```bash diff --git a/content/en/docs/scaling/_index.md b/content/en/docs/scaling/_index.md index a5d84184..0824ab9e 100644 --- a/content/en/docs/scaling/_index.md +++ b/content/en/docs/scaling/_index.md @@ -173,22 +173,13 @@ 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 ``` -Then the Route: - -{{% onlyWhenNot baloise %}} - -```bash -oc expose service example-web-app --namespace -``` - -{{% /onlyWhenNot %}} -{{% onlyWhen baloise %}} +Then the route: ```bash oc create route edge example-web-app --service example-web-app --namespace @@ -196,8 +187,6 @@ oc create route edge example-web-app --service example-web-app --namespace