To create the admin and user cluster, complete the following steps:
- SSH to the admin workstation from the deployment workstation.
- For the admin cluster, modify the admin-cluster.yaml file to match your environment-specific variable. For detailed information, see Admin cluster configuration file.
- Validate the admin cluster configuration file using gkectl check-config command.
- Initialize your vSphere environment using gkectl prepare command.
- Create the admin cluster using the gkectl create admin command.
- For the user cluster, modify the user-cluster.yaml file to match your environment-specific variable. For detailed information, see User cluster configuration file.
- Validate the user cluster configuration file using gkectl check-config command.
where, [ADMIN_CLUSTER_KUBECONFIG] is the path of the kubeconfig file for your admin cluster.
- Create the user cluster using the gkectl create cluster command.
- Verify the successful creation of admin cluster.
- Verify the successful creation of user cluster.
Results: The user cluster would be registered with Google Cloud once the cluster is created successfully.
- Log in to Google cloud > Kubernetes Engine > Clusters to verify the results.
Figure 5. User cluster registered with GCP after successful deployment
- Select a cluster and click Login. You are prompted to choose a method you want to use for authentication of the cluster.
- Basic authentication
- Authenticate with Identity Provider configured for the cluster
Select the method of your choice and login to view the cluster overview.
For detailed information, see Logging in to a cluster from Cloud Console.
- For complete detail of the cluster, select Kubernetes cluster details > Nodes.
Figure 6. Kubernetes cluster node details in GCP
Note: The Kubernetes cluster nodes for Anthos on-prem clusters are running as vSphere VMs on PowerFlex system.
- (Optional) Check if the Kubernetes cluster nodes in the GCP console has the same name as the worker node VMs running on PowerFlex rack.
Figure 7. Kubernetes cluster nodes in VMware vCenter
For detailed information, see Creating an admin cluster and Creating a user clusters.