Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To establish a cluster with a shared network in GKE, you can follow these steps:

  1. Create a new VPC network: a. Go to the VPC networks page in the Google Cloud Console. b. Click Create VPC network. c. Enter a name and select a region for the network. d. Choose the IP address range for the network.

  2. Create a GKE cluster: a. Go to the Kubernetes Engine page in the Google Cloud Console. b. Click Create cluster. c. Choose the VPC network you created in step 1 for the cluster's networking. d. Choose the desired node pool configuration, including the number of nodes, machine type etc.

  3. Configure firewall rules: a. Go to the Firewall rules page in the Google Cloud Console. b. Click Create firewall rule. c. Enter a name and description for the rule. d. Choose a priority value. e. Set a direction for the rule. f. Choose the network that you created in step 1. g. Configure the source and destination IP ranges and protocols according to your requirements.

  4. Deploy your application: a. Connect to your newly created cluster by running the gcloud container clusters get-credentials command in the Google Cloud Console. b. Create a Kubernetes deployment and service for your application.

Once you have completed these steps, your GKE cluster should be running on the shared VPC network you created in step 1. This allows other resources on the same shared network to access your cluster and your application.