To create the admin and user cluster, complete the following steps:
gkectl check-config --config admin-cluster.yaml |
gkectl prepare --config admin-cluster.yaml --skip-validation-all |
gkectl create admin --config admin-cluster.yaml |
gkectl check-config --kubeconfig [ADMIN_CLUSTER_KUBECONFIG] --config user-cluster.yaml |
where, [ADMIN_CLUSTER_KUBECONFIG] is the path of the kubeconfig file for your admin cluster.
gkectl create cluster --kubeconfig [ADMIN_CLUSTER_KUBECONFIG] --config user-cluster.yaml |
kubectl get nodes --kubeconfig [ADMIN_CLUSTER_KUBECONFIG] |
kubectl get nodes --kubeconfig [USER_CLUSTER_KUBECONFIG] |
Results: The user cluster would be registered with Google Cloud once the cluster is created successfully.
Figure 5. User cluster registered with GCP after successful deployment
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.
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.
Figure 7. Kubernetes cluster nodes in VMware vCenter
For detailed information, see Creating an admin cluster and Creating a user clusters.