Error while creating cluster in Baremetal VMs for Anthos

142 views
Skip to first unread message

Abhishek kaushal

unread,
Apr 24, 2021, 9:26:29 AM4/24/21
to gce-discussion
I am getting error while trying to hybrid cluster on Bare metal on -prem  VMs

I have 2 Bare metal VMs and trying to create cluster using  -

./bmctl create cluster -c cluster1
 finally I am getting error  -

Error parsing cluster config: 1 error occurred:
        * Cluster.baremetal.cluster.gke.io "cluster1" is invalid: Spec.LoadBalancer.AddressPools: Invalid value: 0: At least one load balancer address pool required

Below is the configuration I am using in Cluster1.YAML -


controlPlane:
    nodePoolSpec:
      nodes:
      - address: 10.10.100.180
  clusterNetwork:
    pods:
      cidrBlocks:
      - 192.168.0.0/16
    services:
      cidrBlocks:
      - 10.96.0.0/12
  # Load balancer configuration
  loadBalancer:
    ports:
      controlPlaneLBPort: 443
    vips:
      controlPlaneVIP: 10.10.100.41
      ingressVIP: 10.10.100.42
      addressPools:
       name: Pool1
       addresses: 10.10.100.42-10.10.100.50
       nodePoolSpec:
       nodes: 
       address: 10.10.100.42

Please suggest your input


Fady (Google Cloud Platform)

unread,
Apr 26, 2021, 5:48:07 PM4/26/21
to gce-discussion
From the error message it seems a load balancer is missing. It might be that the yaml file is missing the load balancer mode as per this document. This example also includes "mode: bundled" which should trigger an installation of a load balancer  on "load balancer nodes" during cluster creation. Otherwise as explained in the same document, you would have to create a load balancer first before cluster creation and set the mode to "manual" in the cluster config yaml file.  I hope that helps. 
Reply all
Reply to author
Forward
0 new messages