Google GKE Cluster Network Initialization Configuration
Support Overview
| Support | Conditions | |
|---|---|---|
| LoadBalancer Type Service | Default Support | No additional deployment is required. |
| Ingress | Default Support | Optionally enable related Ingress Type features (after enabling this feature, you can manually choose the Ingress Type through the form page), and no additional deployment is required. |
Prerequisites
If you have created a GKE cluster, please connect to the GKE cluster ; if you have not created a GKE cluster, please create a Google GKE cluster .
Operation Steps
Deploy Ingress Controller
Users do not need to manually deploy an Ingress controller. GKE provides a managed built-in Ingress controller called GKE Ingress. This controller maps Ingress resources to Google Cloud Load Balancers to handle HTTP(S) workloads in GKE, making configuration simpler and more automated.
Create Ingress, LoadBalancer Type Service
Ingress and LoadBalancer type Service can be created simultaneously or optionally based on actual situations.
Create Ingress
-
Go to Container Platform, click Networking > Ingresses in the left navigation pane.
-
Click Create Ingress, and choose GKE’s Ingress Type for Ingress Class.
-
Choose a protocol, and the default is HTTP. If you need to use HTTPS, create a certificate first ( Create Certificate ) and choose to use this certificate.
-
Click Create. After waiting for about 5 minutes, the GKE platform will automatically assign a public IP address to the Ingress.
Note: Different Ingress will be assigned different public IP addresses.
Create LoadBalancer Type Service
-
Go to Container Platform, click Networking > Services in the left navigation pane.
-
Click Create Service, choose LoadBalancer for Type.
-
Expand annotations, and fill in LoadBalancer Type Service Annotations as needed.
-
Click Create.
Related Operations
View Ingress Resources in Google Cloud
-
Go to Google Cloud > Kubernetes Engine, click Service and Ingress in the left navigation pane.
-
Click INGRESS.
-
You can view the corresponding Ingress resource information in the list.
Create Certificate
When using the HTTPS protocol, you need to save HTTPS certificate credentials in the form of a secret dictionary (TLS type) in advance.
-
Go to Container Platform, click Configuration > Secrets in the left navigation pane.
-
Click Create Secret.
-
Choose the TLS type, and import or fill in the Certificates and Private Key as needed.
-
Click Create.