Skip to content

Commit

Permalink
Correct typo
Browse files Browse the repository at this point in the history
Correct typo - suggested by Sandor.

Signed-off-by: Alex Ellis <[email protected]>
  • Loading branch information
alexellis committed Aug 10, 2019
1 parent 5eb9963 commit 1b480fd
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/tutorials/kubernetes-hpa.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ horizontalpodautoscaler.autoscaling/nodeinfo autoscaled

View the HPA record with:

```
```sh
kubectl get hpa/nodeinfo -n openfaas-fn

NAME REFERENCE TARGETS MINPODS MAXPODS REPLICAS AGE
Expand All @@ -203,7 +203,7 @@ kubectl get hpa/nodeinfo -n openfaas-fn -o yaml

You can use `kubectl describe hpa/nodeinfo -n openfaas-fn` to get detailed information including any events such as scaling up and down.

```
```sh
kubectl describe hpa/nodeinfo -n openfaas-fn

Name: nodeinfo
Expand All @@ -230,7 +230,7 @@ Events: <none>

Use the following command with hey

```
```sh
export OPENFAAS_URL=http://127.0.0.1:31112

hey -c 5 \
Expand All @@ -245,23 +245,23 @@ You should note that HPA is designed to react slowly to changes in traffic, both

Now in a new window monitor the progress:

```
```sh
kubectl describe hpa/nodeinfo -n openfaas
```

Or in an automated fashion:

```
```sh
# watch -n 5 "kubectl describe hpa/nodeinfo -n openfaas-fn"
```

You can also monitor the replicas of your function in the OpenFaaS UI or via the CLI:

```
```sh
watch -n 5 "faas-cli list"
```

Here is ane example of the replicas scaling up in response to the traffic created by `hey`:
Here is an example of the replicas scaling up in response to the traffic created by `hey`:

```sh
Name: nodeinfo
Expand Down

0 comments on commit 1b480fd

Please sign in to comment.