XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    kubernetes recipe fails to deploy cluster

    Scheduled Pinned Locked Moved Unsolved Xen Orchestra
    11 Posts 3 Posters 747 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • olivierlambertO Offline
      olivierlambert Vates 🪐 Co-Founder CEO
      last edited by

      This is question for @BenjiReis when he's around 🙂

      1 Reply Last reply Reply Quote 0
      • BenjiReisB Offline
        BenjiReis Vates 🪐 XCP-ng Team
        last edited by

        Does the network CIDR you enter corresponds to the network CIDR of VLAN 15?
        If so, you shouldn't do that, Kubernetes master needs its own CIDR to give to its node.

        1 Reply Last reply Reply Quote 0
        • D Offline
          d1rtym0nk3y
          last edited by

          Thanks @BenjiReis
          No, it doesn't - i was using a smaller CIDR.
          VLAN 15 is 10.0.15.0/24 and I was trying to get the recipe to assign hosts inside 10.0.15.40/30

          The Networks in my pools correspond to VLANs defined on my switches.
          So i'm not sure how i would proceed, any suggestions?

          1 Reply Last reply Reply Quote 0
          • BenjiReisB Offline
            BenjiReis Vates 🪐 XCP-ng Team
            last edited by

            Can you try a CIDR not used by any of your networks?
            The network would be reserved for the Kubernetes master and nodes.
            Here your CIDR overlaps one another.

            D 1 Reply Last reply Reply Quote 0
            • D Offline
              d1rtym0nk3y @BenjiReis
              last edited by

              @BenjiReis
              So using a random unused CIDR results in the same problem.

              I have to select a Network, the network is either the Default (untagged) or one of the networks that corresponds to a VLAN tag.

              Using a CIDR that the switch is not aware of will mean the network won't have a default gateway and no route to the internet, or any of the other VLANs for that matter.

              1 Reply Last reply Reply Quote 0
              • BenjiReisB Offline
                BenjiReis Vates 🪐 XCP-ng Team
                last edited by BenjiReis

                No the CIDR used by kubernetes is only used by Kubernetes to communicate between the master and the nodes.
                The VMs will get an IP on your network for you to communicate with the VMs.

                D 1 Reply Last reply Reply Quote 0
                • D Offline
                  d1rtym0nk3y @BenjiReis
                  last edited by

                  @BenjiReis said in kubernetes recipe fails to deploy cluster:

                  No the CIDR used by kubernetes is only used by Kubernetes to communicate between the master and the nodes.

                  So each VM gets two VIFs? one private for k8s cluster traffic and another for "public", ingress, node ports etc ?

                  If thats the case, i'm still not sure this will work for us, as our switches won't be able to route an arbitrary CIDR between XCP hosts if it doesn't belong to one of our networks

                  The VMs will get an IP on your network for you to communicate with the VMs.

                  By DHCP ?

                  D 1 Reply Last reply Reply Quote 0
                  • BenjiReisB Offline
                    BenjiReis Vates 🪐 XCP-ng Team
                    last edited by

                    Perhaps what you can try is having VLAN15 CIDR goes from 10.0.15.0 to 10.0.15.n and the CIDR for kubernetes going from 10.0.15.n+1 to 10.0.15.254 and you're router addressing the whole 10.0.15.X range?

                    What do you think?

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      d1rtym0nk3y @d1rtym0nk3y
                      last edited by

                      @d1rtym0nk3y said in kubernetes recipe fails to deploy cluster:

                      The VMs will get an IP on your network for you to communicate with the VMs.

                      By DHCP ?

                      @BenjiReis could you confirm if the master/nodes get their public address via DHCP ?

                      BenjiReisB 1 Reply Last reply Reply Quote 0
                      • BenjiReisB Offline
                        BenjiReis Vates 🪐 XCP-ng Team @d1rtym0nk3y
                        last edited by

                        @d1rtym0nk3y If DHCP is configured on your network then yes.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post