Skip to content

Commit c598c20

Browse files
committed
moved file
1 parent 89f3fc5 commit c598c20

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

docs/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ Follow the links below to learn more about Knative.
8585
- [Using a custom domain](./serving/using-a-custom-domain.md)
8686
- [Assigning a static IP address for Knative on Google Kubernetes Engine](./serving/gke-assigning-static-ip-address.md)
8787
- [Configuring HTTPS with a custom certificate](./serving/using-a-tls-cert.md)
88+
- [Configuring high availability](./config-ha.md)
8889

8990
### Samples and demos
9091

docs/install/config-ha.md renamed to docs/config-ha.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Configuring high-availability components"
33
linkTitle: "Configuring high-availability components"
4-
weight: 50
4+
weight: 20
55
type: "docs"
66
---
77

@@ -11,13 +11,13 @@ Active/passive HA in Knative is available through leader election, which is enab
1111

1212
When using a leader election HA pattern, instances of controllers are already scheduled and running inside the cluster before they are required. These controller instances compete to use a shared resource, known as the leader election lock. The instance of the controller that has access to the leader election lock resource at any given time is referred to as the leader.
1313

14-
HA functionality is available on Knative for the `autoscaler-hpa`, `controller`, `activator` , `kourier-control`, `kourier-gateway`, `istio-pilot`, and `istio-gateway` components.
14+
HA functionality is available on Knative for the `autoscaler-hpa`, `controller` and `activator` components.
1515

1616
## Enabling leader election
1717

1818
1. Enable leader election for the control plane controllers:
1919
```
20-
kubectl patch configmap/config-leader-election \
20+
$ kubectl patch configmap/config-leader-election \
2121
--namespace knative-serving \
2222
--type merge \
2323
--patch '{"data":{"enabledComponents": "controller,hpaautoscaler,certcontroller,istiocontroller,nscontroller"}}'
@@ -28,7 +28,7 @@ kubectl patch configmap/config-leader-election \
2828
Note: you will take a brief amount of control plane downtime during this step.
2929

3030
```
31-
kubectl rollout restart deployment -n knative-serving
31+
$ kubectl rollout restart deployment -n knative-serving
3232
```
3333
When your controllers come back up, they should be running leader-elected.
3434
At this point, we've configured the controllers to use leader election and we
@@ -37,7 +37,7 @@ can scale the control plane up!
3737
1. Now, you can scale the control plane up.
3838

3939
```
40-
kubectl rollouts restart deployment -n knative-serving controller
40+
$ kubectl rollouts restart deployment -n knative-serving controller
4141
```
4242

4343
## Scaling the control plane
@@ -51,5 +51,5 @@ The following serving controller deployments can be scaled up once leader electi
5151
- `networking-ns-cert`
5252

5353
```
54-
kubectl scale --replicas=2 <deployment-name>
54+
$ kubectl scale --replicas=2 <deployment-name>
5555
```

0 commit comments

Comments
 (0)