Skip to content

Commit

Permalink
Fix curl command for OpenShift
Browse files Browse the repository at this point in the history
  • Loading branch information
bliemli committed Nov 26, 2024
1 parent 6f04036 commit dfd7eba
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions content/en/docs/scaling/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <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 <namespace>)
while true; do sleep 1; curl -s https://${URL}/pod/; date "+ TIME: %H:%M:%S,%3N"; done
```

{{% /onlyWhen %}}
{{% /onlyWhen %}}
{{% onlyWhenNot openshift %}}
```bash
Expand Down Expand Up @@ -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 <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 <namespace>)
while true; do sleep 1; curl -s https://${URL}/pod/; date "+ TIME: %H:%M:%S,%3N"; done
```

{{% /onlyWhen %}}

{{% /onlyWhen %}}
{{% onlyWhenNot openshift %}}

Expand Down

0 comments on commit dfd7eba

Please sign in to comment.