Skip to content

Commit

Permalink
Fix Invoke-RestMethod command
Browse files Browse the repository at this point in the history
  • Loading branch information
bliemli committed Nov 26, 2024
1 parent dfd7eba commit 6b99e49
Showing 1 changed file with 1 addition and 32 deletions.
33 changes: 1 addition & 32 deletions content/en/docs/scaling/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,20 +262,6 @@ URL=$(kubectl get ingress example-web-app -o go-template="{{ (index .spec.rules
while true; do sleep 1; curl -s https://${URL}/pod/; date "+ TIME: %H:%M:%S,%3N"; done
```
{{% /onlyWhenNot %}}
{{% onlyWhenNot baloise %}}

Windows PowerShell:

```bash
while(1) {
Start-Sleep -s 1
Invoke-RestMethod http://<URL>/pod/
Get-Date -Uformat "+ TIME: %H:%M:%S,%3N"
}
```

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

Windows PowerShell:

Expand All @@ -287,7 +273,6 @@ while(1) {
}
```

{{% /onlyWhen %}}
Scale from 3 replicas to 1.
The output shows which Pod is still alive and is responding to requests:

Expand Down Expand Up @@ -486,33 +471,17 @@ while true; do sleep 1; curl -s http://${URL}/pod/; date "+ TIME: %H:%M:%S,%3N";
```

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

Windows PowerShell:

```bash
while(1) {
Start-Sleep -s 1
Invoke-RestMethod http://[URL]/pod/
Get-Date -Uformat "+ TIME: %H:%M:%S,%3N"
}
```

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

Windows PowerShell:

```bash
while(1) {
Start-Sleep -s 1
Invoke-RestMethod https://[URL]/pod/
Invoke-RestMethod https://<URL>/pod/
Get-Date -Uformat "+ TIME: %H:%M:%S,%3N"
}
```

{{% /onlyWhen %}}

Restart your Deployment with:

```bash
Expand Down

0 comments on commit 6b99e49

Please sign in to comment.