From dfd7eba315ba565182862bc2c97d098f319dbedb Mon Sep 17 00:00:00 2001 From: Benjamin Affolter <5555767+bliemli@users.noreply.github.com> Date: Tue, 26 Nov 2024 09:24:42 +0100 Subject: [PATCH] Fix curl command for OpenShift --- content/en/docs/scaling/_index.md | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/content/en/docs/scaling/_index.md b/content/en/docs/scaling/_index.md index 8f30ca3f..8941772d 100644 --- a/content/en/docs/scaling/_index.md +++ b/content/en/docs/scaling/_index.md @@ -251,22 +251,10 @@ Now, execute the corresponding loop command for your operating system in another Linux: {{% onlyWhen openshift %}} -{{% onlyWhenNot baloise %}} - -```bash -URL=$(oc get routes example-web-app -o go-template="{{ .spec.host }}" --namespace ) -while true; do sleep 1; curl -s http://${URL}/pod/; date "+ TIME: %H:%M:%S,%3N"; done -``` - -{{% /onlyWhenNot %}} -{{% onlyWhen baloise %}} - ```bash URL=$(oc get routes example-web-app -o go-template="{{ .spec.host }}" --namespace ) while true; do sleep 1; curl -s https://${URL}/pod/; date "+ TIME: %H:%M:%S,%3N"; done ``` - -{{% /onlyWhen %}} {{% /onlyWhen %}} {{% onlyWhenNot openshift %}} ```bash @@ -483,23 +471,12 @@ We are now going to verify that a redeployment of the application does not lead Set up the loop again to periodically check the application's response (you don't have to set the `$URL` variable again if it is still defined): {{% onlyWhen openshift %}} -{{% onlyWhenNot baloise %}} - -```bash -URL=$(oc get routes example-web-app -o go-template="{{ .spec.host }}" --namespace ) -while true; do sleep 1; curl -s http://${URL}/pod/; date "+ TIME: %H:%M:%S,%3N"; done -``` - -{{% /onlyWhenNot %}} -{{% onlyWhen baloise %}} ```bash URL=$(oc get routes example-web-app -o go-template="{{ .spec.host }}" --namespace ) while true; do sleep 1; curl -s https://${URL}/pod/; date "+ TIME: %H:%M:%S,%3N"; done ``` -{{% /onlyWhen %}} - {{% /onlyWhen %}} {{% onlyWhenNot openshift %}}