Deckhouse Kubernetes Platform on Huawei Cloud
Installation of Deckhouse Kubernetes Platform on Huawei Cloud is only possible in the Enterprise Edition. See information about commercial editions.
Before installation, ensure the following:
- Cloud provider quotas for cluster deployment.
- The
cloud-initpackage is installed on the VMs. After the VM starts, servicescloud-config.service,cloud-final.service,cloud-init.servicemust be running. - The virtual machine template contains only one disk.
Deckhouse Kubernetes Platform components interact with Huawei Cloud resources through the Huawei Cloud API. To configure this connection, you need to create a user in the Huawei Cloud IAM service and provide it with the necessary permissions.
Configuring IAM via the web interface
To configure IAM via the web interface, first create a new user group and assign the necessary permissions. Follow these steps:
- Go to the “Identity and Access Management (IAM)” section.
- Open the “User Groups” page and click “Create User Group”.
- In the “Name” field, enter the group name (e.g.,
deckhouse). - Click “OK” to create the group.
- Select the newly created group from the list.
- On the “Permissions” tab, click “Authorize”.
- Assign the following policies: “ECS Admin”, “VPC Administrator”, “NAT Admin”, “ELB FullAccess”, “DEW KeypairFullAccess”.
- Click “Next”, then “OK”, and complete the setup by clicking “Finish”.
Then add a new user. Follow these steps:
- Go to the “Users” page in the IAM section and click “Create User”.
- In the “Username” field, enter the username (e.g.,
deckhouse). - Set “Access type” to “Programmatic access” and make sure “Management console access” is disabled.
- Select “Access key” as the “Credential Type”.
- Click “Next”.
- Select the previously created user group.
- Click “Create” to complete the user creation process.
- Click “OK” to download the
Access Key IDandSecret Access Key. Make sure to save these credentials in a secure location, as they will be needed to access the API.
Obtain the ID of the project where the cluster will be deployed. To do this, follow these steps:
- Go to the “Identity and Access Management (IAM)” section.
- In the left-hand menu, select “Projects”.
- From the project list, select the project that corresponds to the region where the cluster will be deployed.
- On the project page, in the “Basic Information” section, copy the value of the
Project IDfield. - Use the obtained value as the
projectIDparameter when configuring the cluster.
The enterpriseProjectID parameter is optional. The cluster can be deployed without specifying it. Use this parameter if the cluster resources need to be placed in a specific Enterprise Project.
To obtain the Enterprise Project ID, follow these steps:
- In the upper-right corner of the Huawei Cloud console, open the profile menu.
- Select “Enterprise Management”.
- On the “Enterprise Project Management Service” page, select the Enterprise Project where the cluster resources should be placed.
- On the selected Enterprise Project page, copy the value of the
IDfield. - Use the obtained value as the
enterpriseProjectIDparameter when configuring the cluster.
JSON policies
Below are the contents of the policies in JSON format: