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

    Can't seem to properly create a K8S cluster

    Scheduled Pinned Locked Moved Xen Orchestra
    xoa-recipek8s
    6 Posts 2 Posters 1.0k 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.
    • T Offline
      tinjaw
      last edited by

      I am following what is at

      https://xen-orchestra.com/blog/devblog-5-kubernetes-clutser-on-xo/

      The master is being created, but none of the nodes are getting created.

      Is Private LAN the choice one should use? When I didn't use it the nodes were created but the networking didn't work. If I use Private LAN, the nodes don't get created at all.

      Looking for any and all help.

      Thanks,
      Chaim

      1 Reply Last reply Reply Quote 0
      • T Offline
        tinjaw
        last edited by

        Further Info:

        When I use eth0 the cluster is created but doesn't work properly.

        debian@master:~$ kubectl get pods --all-namespaces
        NAMESPACE     NAME                             READY   STATUS             RESTARTS   AGE
        kube-system   coredns-66bff467f8-ksl9p         0/1     Pending            0          171m
        kube-system   coredns-66bff467f8-lxbr4         0/1     Pending            0          171m
        kube-system   etcd-master                      1/1     Running            0          171m
        kube-system   kube-apiserver-master            1/1     Running            0          171m
        kube-system   kube-controller-manager-master   1/1     Running            0          171m
        kube-system   kube-proxy-27cnt                 1/1     Running            0          171m
        kube-system   kube-proxy-54472                 1/1     Running            0          165m
        kube-system   kube-proxy-pg2p6                 1/1     Running            0          167m
        kube-system   kube-router-hzv6j                0/1     CrashLoopBackOff   36         165m
        kube-system   kube-router-lvhsl                0/1     CrashLoopBackOff   37         167m
        kube-system   kube-router-mmb9p                1/1     Running            0          171m
        kube-system   kube-scheduler-master            1/1     Running            0          171m
        debian@master:~$
        
        1 Reply Last reply Reply Quote 0
        • BenjiReisB Offline
          BenjiReis Vates 🪐 XCP-ng Team
          last edited by

          Hello,

          you don't have to use Private LAN, the photo is an example in our homelab where I used a network called that way. the only requirement is taht there's a DHCP running in the network so that the master can get an IP for the nodes to use.

          Can you elaborate 'doesn't work properly'? How many nodes did you create? Is the issue the CrashLoopBackOff status?

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

            The network CIDR you entered in the recipe should be different than the address range of the network on which the VMs runs.

            1 Reply Last reply Reply Quote 0
            • T Offline
              tinjaw @BenjiReis
              last edited by

              @BenjiReis said in Can't seem to properly create a K8S cluster:

              the only requirement is taht there's a DHCP running in the network so that the master can get an IP for the nodes to use.

              That is almost certainly the problem here.

              So, I am thinking using a VLAN and running a VM (like pfsense) to provide DHCP.

              How does that sound?

              Best,
              Chaim

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

                Yes that should work 🙂

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