Obtaining the Configuration Required for Cluster Installation
Function
This API is used to obtain the configuration required for cluster installation (currently, only for on-premises clusters).
URI
POST /v1/clusters/{clusterid}/clusterconf
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
clusterid |
Yes |
String |
Cluster ID |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
USERNAME |
No |
String |
Username |
|
MASTER-1 |
No |
String |
IP address of master node 1 |
|
MASTER-2 |
No |
String |
IP address of master node 2 |
|
MASTER-3 |
No |
String |
IP address of master node 3 |
|
ACCESS_EXTERNAL_LOAD_BALANCE |
No |
Boolean |
Whether to enable an external load balancer |
|
CILIUM_IPV4POOL_CIDR |
No |
String |
CIDR block of the IPv4 address pool of the Cilium network component |
|
NETWORK_CIDR |
No |
String |
Container network CIDR block |
|
DNS_SERVER_IP |
No |
String |
IP address of a DNS server |
|
NTP_SERVER_IP |
No |
String |
IP address of a NTP server |
|
IAM_DOMAIN_ID |
No |
String |
IAM domain ID |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
{User defined key} |
Map<String,Object> |
- |
Status code: 400
|
Parameter |
Type |
Description |
|---|---|---|
|
- |
String |
- |
Status code: 500
|
Parameter |
Type |
Description |
|---|---|---|
|
- |
String |
- |
Example Requests
Cluster configuration parameters entered by the user on the frontend
POST https://ucs.myhuaweicloud.com/v1/clusters/{clusterid}/clusterconf
{
"USERNAME" : "root",
"MASTER-1" : "1.1.1.1",
"MASTER-2" : "2.1.1.1",
"MASTER-3" : "3.1.1.1",
"ACCESS_EXTERNAL_LOAD_BALANCE" : false,
"CILIUM_IPV4POOL_CIDR" : "10.16.0.0/16",
"NETWORK_CIDR" : "10.16.0.0/16",
"DNS_SERVER_IP" : "3.1.1.1",
"NTP_SERVER_IP" : "null",
"IAM_DOMAIN_ID" : "a934cc67ec7e4910b04098cc5689505b"
}
Example Responses
Status code: 200
Configuration required for cluster installation returned
{
"ACCESS_EXTERNAL_LOAD_BALANCE" : false,
"CILIUM_IPV4POOL_CIDR" : "10.16.0.0/16",
"DNS_SERVER_IP" : "3.1.1.1",
"IAM_DOMAIN_ID" : "a934cc67ec7e4910b04098cc5689505b",
"IAM_ENDPOINT" : "https://iam.cn-north-5.ulanqab.huawei.com",
"IMAGES_PACKAGE_PATH" : "https://ucs-onprem.obs.cn-north-5.ulanqab.huawei.com/packages/ucs-onpremise/25.3.0/ucs-onpremise_images_25.3.0.2_amd64.tar.gz",
"INSTALL_NTP" : false,
"MASTER-1" : "1.1.1.1",
"MASTER-2" : "2.1.1.1",
"MASTER-3" : "3.1.1.1",
"NETWORK_CIDR" : "10.16.0.0/16",
"NETWORK_PROVIDER" : "cilium",
"NTP_SERVER_IP" : "null",
"PACKAGE_PATH" : "https://ucs-onprem.obs.cn-north-5.ulanqab.huawei.com/packages/ucs-onpremise/25.3.0/ucs-onpremise_25.3.0.2_amd64.tar.gz",
"PROXY_MODE" : "ebpf",
"TAINT_MANAGE" : "yes",
"TIMEZONE" : "Asia/Shanghai",
"USERNAME" : "root",
"VIRTUAL_IP" : "4.1.1.1"
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Configuration required for cluster installation returned |
|
400 |
Client request error. The server could not execute the request. |
|
500 |
Internal server error |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot