Huawei Cloud CCE Cluster Network Initialization Configuration
TOC
Support Overview
Prerequisites
If you have created a CCE cluster, import the CCE cluster (Public Cloud).
Configuration Steps
You can create ingress and LoadBalancer services simultaneously or choose one based on your needs.
Create Ingress
There are two methods to create ingress. Method 1: Manual Ingress Class Selection is recommended.
Note: Avoid creating two ingress resources with the same path.
(Recommended) Method 1: Manual Ingress Class Selection
-
In Container Platform, click Network > Ingress in the left navigation.
-
Click Create Ingress and select CCE Ingress Class for Ingress Class.
-
Select Protocol. Default is HTTP. For HTTPS, first create a certificate and select it.
-
Switch to YAML and add the following annotations based on your default Ingress Controller type. For annotation details, see Using Annotations to Configure Load Balancers:
Note: Replace the values in the annotations below with actual environment values.
-
Click Create. Once created, you can access cluster services through ELB.
Method 2: Use Default Ingress Class
-
Create an IngressClass YAML file with the following content. For details, see Default Ingress Class:
-
Save the file and apply it to the imported cluster. Replace
<filename.yaml>with your actual YAML filename: -
In Container Platform, click Network > Ingress in the left navigation.
-
Select Protocol. Default is HTTP. For HTTPS, first create a certificate and select it.
-
Click Create. Once created, you can access cluster services through ELB.
Create LoadBalancer Service
-
In Container Platform, click Network > Services in the left navigation.
-
Click Create Service and select LoadBalancer for External Access.
-
Expand annotations and fill in LoadBalancer service annotations as needed.
-
Click Create.
Related Operations
Create Certificate
When using HTTPS protocol, save HTTPS certificate credentials as a Secret (TLS type) in advance.
-
In Container Platform, click Configuration > Secrets in the left navigation.
-
Click Create Secret.
-
Select TLS type and import or fill in Certificate and Private Key as needed.
-
Click Create.