Skip to content

Commit 9087bac

Browse files
authored
Merge pull request kubernetes#3406 from ysy2020/cluster-autoscaler-huaweicloud
update README file
2 parents b18cf56 + 815e254 commit 9087bac

File tree

1 file changed

+20
-21
lines changed
  • cluster-autoscaler/cloudprovider/huaweicloud

1 file changed

+20
-21
lines changed

cluster-autoscaler/cloudprovider/huaweicloud/README.md

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# Cluster Autoscaler on Huawei Cloud
22

33
## Overview
4-
The cluster autoscaler for [Huawei Cloud](https://www.huaweicloud.com/) scales worker nodes within any
5-
specified Huawei Cloud Container Engine (CCE) cluster's node pool where the `Autoscaler` label is on.
4+
The cluster autoscaler for [Huawei ServiceStage](https://www.huaweicloud.com/intl/en-us/product/servicestage.html) scales worker nodes within any
5+
specified container cluster's node pool where the `Autoscaler` label is on.
66
It runs as a Deployment on a worker node in the cluster. This README will go over some of the necessary steps required
77
to get the cluster autoscaler up and running.
88

99
Note:
1010

11-
1. Cluster autoscaler must be run on CCE v1.15.6 (Kubernetes v1.15) or later.
12-
2. Node pool attached to the CCE cluster must have the `Autoscaler` flag turned on, and minimum number of nodes and maximum
13-
number of nodes being set. Node pools can be managed under `Resource Management` in CCE console.
11+
1. Cluster autoscaler must be run on a version of Huawei container engine 1.15.6 or later.
12+
2. Node pool attached to the cluster must have the `Autoscaler` flag turned on, and minimum number of nodes and maximum
13+
number of nodes being set. Node pools can be managed by `Resource Management` from Huawei container engine console.
1414
3. If warnings about installing `autoscaler addon` are encountered after creating a node pool with `Autoscaler` flag on,
1515
just ignore this warning and DO NOT install the addon.
1616
4. Do not build your image in a Huawei Cloud ECS. Build the image in a machine that has access to the Google Container Registry (GCR).
@@ -75,7 +75,7 @@ The following steps use Huawei SoftWare Repository for Container (SWR) as an exa
7575
```
7676
7777
5. For the cluster autoscaler to function normally, make sure the `Sharing Type` of the image is `Public`.
78-
If the CCE has trouble pulling the image, go to SWR console and check whether the `Sharing Type` of the image is
78+
If the cluster has trouble pulling the image, go to SWR console and check whether the `Sharing Type` of the image is
7979
`Private`. If it is, click `Edit` button on top right and set the `Sharing Type` to `Public`.
8080
8181
### Deploy Cluster Autoscaler
@@ -111,7 +111,7 @@ and [My Credentials](https://support.huaweicloud.com/en-us/usermanual-ca/ca_01_0
111111
112112
- `region`
113113
114-
Fill in the region of the CCE here. For example, for region `Beijing4`:
114+
Fill in the region of the cluster here. For example, for region `Beijing4`:
115115
```
116116
region=cn-north-4
117117
```
@@ -122,25 +122,24 @@ and [My Credentials](https://support.huaweicloud.com/en-us/usermanual-ca/ca_01_0
122122
123123
#### Configure deployment
124124
An example deployment file is provided at [examples/cluster-autoscaler-deployment.yaml](examples/cluster-autoscaler-deployment.yaml).
125-
Change the `image` to the image you just pushed, the `cluster-name` to the CCE cluster's id and `nodes` to your
125+
Change the `image` to the image you just pushed, the `cluster-name` to the cluster's id and `nodes` to your
126126
own configurations of the node pool with format
127127
```
128128
{Minimum number of nodes}:{Maximum number of nodes}:{Node pool name}
129129
```
130-
The above parameters should match the parameters of the node pool you created. Currently, Huawei CCE only provides
130+
The above parameters should match the parameters of the node pool you created. Currently, Huawei ServiceStage only provides
131131
autoscaling against a single node pool.
132132
133133
More configuration options can be added to the cluster autoscaler, such as `scale-down-delay-after-add`, `scale-down-unneeded-time`, etc.
134134
See available configuration options [here](https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#what-are-the-parameters-to-ca).
135135
136-
#### Deploy cluster autoscaler on CCE
136+
#### Deploy cluster autoscaler on the cluster
137+
1. Log in to a machine which can manage the cluster with `kubectl`.
137138
138-
1. Log in to a machine which can manage the CCE cluster with `kubectl`.
139-
140-
Make sure the machine has kubectl access to the CCE cluster. We recommend using a worker node to manage the cluster. Follow
139+
Make sure the machine has kubectl access to the cluster. We recommend using a worker node to manage the cluster. Follow
141140
the instructions for
142141
[Connecting to a Kubernetes Cluster Using kubectl](https://support.huaweicloud.com/intl/en-us/usermanual-cce/cce_01_0107.html)
143-
to set up kubectl access to CCE cluster if you cannot execute `kubectl` on your machine.
142+
to set up kubectl access to the cluster if you cannot execute `kubectl` on your machine.
144143
145144
2. Create the Service Account:
146145
```
@@ -158,7 +157,7 @@ to set up kubectl access to CCE cluster if you cannot execute `kubectl` on your
158157
```
159158
160159
### Testing
161-
Now the cluster autoscaler should be successfully deployed on the cluster. Check it on the CCE UI console, or execute
160+
Now the cluster autoscaler should be successfully deployed on the cluster. Check it by executing
162161
```
163162
kubectl get pods -n kube-system
164163
```
@@ -212,18 +211,18 @@ and will be removed by the cluster autoscaler
212211
213212
## Notes
214213
215-
1. Huawei Cloud CCE cluster does not yet support autoscaling against multiple node pools within a single cluster, but
216-
this is currently in development. For now, make sure that there's only one node pool with `Autoscaler` label
217-
on in the CCE cluster.
218-
2. If the version of the CCE cluster is v1.15.6 or older, log statements similar to the following may be present in the
214+
1. Huawei ServiceStage does not yet support autoscaling against multiple node pools within a single cluster, but
215+
this is currently under development. For now, make sure that there's only one node pool with `Autoscaler` label
216+
on in the cluster.
217+
2. If the version of the cluster is v1.15.6 or older, log statements similar to the following may be present in the
219218
autoscaler pod logs:
220219
```
221220
E0402 13:25:05.472999 1 reflector.go:178] k8s.io/client-go/informers/factory.go:135: Failed to list *v1.CSINode: the server could not find the requested resource
222221
```
223-
This is normal and will be fixed by a future version of CCE.
222+
This is normal and will be fixed by a future version of cluster.
224223
225224
## Support & Contact Info
226225
227226
Interested in Cluster Autoscaler on Huawei Cloud? Want to talk? Have questions, concerns or great ideas?
228227
229-
Please reach out to us at `[email protected]`.
228+
Please reach out to us at `[email protected]`.

0 commit comments

Comments
 (0)