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

    Kubernetes management

    Scheduled Pinned Locked Moved Advanced features
    14 Posts 4 Posters 1.3k Views 3 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.
    • BenjiReisB Offline
      BenjiReis Vates 🪐 XCP-ng Team @fred974
      last edited by

      @fred974 you should have kubectl installed.

      Do you have access to the cloudinit logs of the master ?

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

        Update:
        I think I reproduce the issue:

        E: Failed to fetch http://deb.debian.org/debian/pool/main/g/glib2.0/libglib2.0-bin_2.58.3-2+deb10u1_amd64.deb  404  Not Found [IP: 2a04:4e42:62::644 80]
        E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
        2021-11-04 13:31:54,514 - util.py[WARNING]: Failed to install packages: ['apt-transport-https', 'ca-certificates', 'curl', 'gnupg2', 'software-properties-common']
        2021-11-04 13:31:54,515 - cc_package_update_upgrade_install.py[WARNING]: 2 failed with exceptions, re-raising the last one
        

        It seems the recipe can't install curl which is necessary to then install the kubernetes package, i'll look into it.

        1 Reply Last reply Reply Quote 0
        • olivierlambertO Online
          olivierlambert Vates 🪐 Co-Founder CEO
          last edited by

          This is probably because Debian 10 changed the repo, so we should probably recreate a new template and modify the recipe.

          In the meantime, you can manually install what's missing.

          F 1 Reply Last reply Reply Quote 0
          • F Offline
            fred974 @olivierlambert
            last edited by

            @olivierlambert Thank you both for looking into it. Can you please tell how I can figure out what package is missing?

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

              @fred974 you can look at https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/

              This is what's followed by the recipe.

              F 1 Reply Last reply Reply Quote 1
              • F Offline
                fred974 @BenjiReis
                last edited by

                @benjireis Thank you

                1 Reply Last reply Reply Quote 0
                • R Offline
                  ravenet
                  last edited by

                  For managing your kubernetes, I'd look closely at installing Rancher

                  F 1 Reply Last reply Reply Quote 0
                  • F Offline
                    fred974 @ravenet
                    last edited by

                    @ravenet said in Kubernetes management:

                    For managing your kubernetes, I'd look closely at installing Rancher

                    Thank you. I'll take a look

                    F 1 Reply Last reply Reply Quote 1
                    • F Offline
                      fred974 @fred974
                      last edited by

                      @ravenet sorry for the delayed reply. I took a look at Ranger. Can you please tell me where does it need to be install? The xcp-ng recipie create 2x nodes and 1x master. Do I install Ranger on the master or a completly different VM?

                      Thank you

                      R 1 Reply Last reply Reply Quote 0
                      • R Offline
                        ravenet @fred974
                        last edited by

                        @fred974
                        The decision on where you install Racher is up to you. You can first try a separate VM with docker, or even test using the beta xcp docker runx piece, then do a basic rancher in docker for testing, but this obviously has some redundancy/resiliency HA limits. if it breaks you end up with no access or failover and loss of data or even ability to manage your kube cluster depending on how you setup docker volumes etc. Is good to test and get familiar. You should technically be installing rancher in kubernetes, but in a dedicated management cluster.

                        Honestly for home lab, docker is fine, as is tossing it in your kubernetes cluster if already setup, just mind your backups and figure out volumes so you can recover if goes kaboom.

                        Here's a rancher best practices for you, though obviously meant for large corporate and cloud rollouts.

                        https://www.suse.com/support/kb/doc/?id=000020105

                        F 1 Reply Last reply Reply Quote 0
                        • olivierlambertO Online
                          olivierlambert Vates 🪐 Co-Founder CEO
                          last edited by olivierlambert

                          We'd love to have a Rancher node driver for XO API 😉 Just sayin' 😉

                          https://rancher.com/docs/rancher/v2.5/en/admin-settings/drivers/node-drivers/

                          F 1 Reply Last reply Reply Quote 1
                          • F Offline
                            fred974 @ravenet
                            last edited by

                            @ravenet Thank you very much. That link you sent is very usefull 🙂

                            1 Reply Last reply Reply Quote 0
                            • F Offline
                              fred974 @olivierlambert
                              last edited by

                              @olivierlambert said in Kubernetes management:

                              We'd love to have a Rancher node driver for XO API 😉 Just sayin' 😉

                              https://rancher.com/docs/rancher/v2.5/en/admin-settings/drivers/node-drivers/

                              I whish I could help.. Maybe one day once I understand the basic of it all😵

                              1 Reply Last reply Reply Quote 0
                              • olivierlambertO olivierlambert moved this topic from Something else on
                              • First post
                                Last post