mirror of https://github.com/status-im/consul.git
Apply suggestions from code review
Co-authored-by: Tu Nguyen <im2nguyen@users.noreply.github.com>
This commit is contained in:
parent
d5eed9dff3
commit
2eeabeba71
|
@ -317,18 +317,18 @@ Refer to the [Kubernetes Gateway API documentation](https://gateway-api.sigs.k8s
|
||||||
|
|
||||||
#### Scaling
|
#### Scaling
|
||||||
|
|
||||||
You can scale a logical gateway object to multiple instances with the [`kubectl scale`](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#scaling-a-deployment) command. The object scales according to the bounds set in GatewayClassConfig.
|
You can scale a logical gateway object to multiple instances with the [`kubectl scale`](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#scaling-a-deployment) command. The object scales according to the bounds set in `GatewayClassConfig`.
|
||||||
|
|
||||||
```
|
```shell-session
|
||||||
$ kubectl get deployment --selector api-gateway.consul.hashicorp.com/name=example-gateway
|
$ kubectl get deployment --selector api-gateway.consul.hashicorp.com/name=example-gateway
|
||||||
NAME READY UP-TO-DATE AVAILABLE
|
NAME READY UP-TO-DATE AVAILABLE
|
||||||
example-gateway 1/1 1 1
|
example-gateway 1/1 1 1
|
||||||
```
|
```
|
||||||
```
|
```shell-session
|
||||||
$ kubectl scale deployment/example-gateway --replicas=3
|
$ kubectl scale deployment/example-gateway --replicas=3
|
||||||
deployment.apps/example-gateway scaled
|
deployment.apps/example-gateway scaled
|
||||||
```
|
```
|
||||||
```
|
```shell-session
|
||||||
$ kubectl get deployment --selector api-gateway.consul.hashicorp.com/name=example-gateway
|
$ kubectl get deployment --selector api-gateway.consul.hashicorp.com/name=example-gateway
|
||||||
NAME READY UP-TO-DATE AVAILABLE
|
NAME READY UP-TO-DATE AVAILABLE
|
||||||
example-gateway 3/3 3 3
|
example-gateway 3/3 3 3
|
||||||
|
|
Loading…
Reference in New Issue