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

    Kubernetes cluster recipe not working

    Scheduled Pinned Locked Moved Solved Advanced features
    xoa-recipe
    7 Posts 3 Posters 1.6k 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.
    • B Offline
      b.dietrich
      last edited by

      Hello,

      I would like to use to the kubernetes recipe to create a cluster with static IP addresses.

      I defined all the parameters but I have the following errors :

      xoa.recipe.createKubernetesCluster
      {
        "clusterName": "xoa",
        "controlPlaneIpAddress": "x.x.x.82/24",
        "controlPlanePoolSize": 1,
        "gatewayIpAddress": "x.x.x.254",
        "k8sVersion": "1.27.5-00",
        "nameservers": [
          "x.x.x.254"
        ],
        "nbNodes": 1,
        "network": "21674553-be9e-128c-9d61-7a2203ada824",
        "searches": [
          "x.net",
        ],
        "sr": "9615003f-0b18-efd4-4859-8a2da0d50d91",
        "sshKey": "ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAlJ+mBuRF2Dkw8ZU7oIna0t7PHLE33AbasMrb4uOoYfFPGNbWbC+Qsl5TrDJAFSIv2jmKkIHV7sttYxy99FFxF/4doiEunEJmXsqC1zuAOrdl3//Cet03QGQdiStqXSqvORFJNOFXjc3/x1lAGuK1J64DkhkiF4+mgXzBZ9w62JkCmurQGe5dmotHlFOl204qJnkj5r0FcsAtdXaPphn7zCTw77SQhlV5/1csshXfzZSDCZUOGljqXT+aNcXmP48W1YgOwnP4keyuTpq8TJgpXJuiXjqk92vsBpp5ifh+K6YvgAGIZkyWhULsg6zTfJbqwFWcAag+5n61w3dKwWlpFQ==",
        "workerNodeIpAddresses": [
          "x.x.x.83/24"
        ]
      }
      {
        "code": 10,
        "data": {},
        "message": "All static configuration parameters must be defined",
        "name": "XoError",
        "stack": "XoError: All static configuration parameters must be defined
          at factory (/usr/local/lib/node_modules/xo-server-xoa/node_modules/xo-common/src/api-errors.js:21:32)
          at Xoa.createCluster (/usr/local/lib/node_modules/xo-server-xoa/src/recipes/kubernetes-cluster.js:60:28)
          at Api.#callApiMethod (file:///usr/local/lib/node_modules/xo-server/src/xo-mixins/api.mjs:417:20)"
      }
      

      It seems to work in DHCP mode but i need to do it with static addresses.

      - node: 18.12.1
      - npm: 8.19.2
      - xen-orchestra-upload-ova: 0.1.4
      - xo-cli-premium: 0.20.0
      - xo-server: 5.118.0
      - xo-server-audit-premium: 0.10.3
      - xo-server-auth-github-premium: 0.2.2
      - xo-server-auth-google-premium: 0.2.2
      - xo-server-auth-ldap-premium: 0.10.7
      - xo-server-auth-oidc-premium: 0.3.0
      - xo-server-auth-saml-premium: 0.10.1
      - xo-server-backup-reports-premium: 0.17.3
      - xo-server-load-balancer-premium: 0.7.3
      - xo-server-netbox-premium: 0.3.7
      - xo-server-netdata-premium: 0.2.0
      - xo-server-perf-alert-premium: 0.3.6
      - xo-server-sdn-controller-premium: 1.0.8
      - xo-server-telemetry: 0.5.0
      - xo-server-transport-email-premium: 0.6.1
      - xo-server-transport-icinga2-premium: 0.1.2
      - xo-server-transport-nagios-premium: 1.0.1
      - xo-server-transport-slack-premium: 0.0.0
      - xo-server-transport-xmpp-premium: 0.1.1
      - xo-server-usage-report-premium: 0.10.4
      - xo-server-web-hooks-premium: 0.3.3
      - xo-server-xoa: 0.24.0
      - xo-web-premium: 5.121.0
      - xoa-cli: 0.35.0
      - xoa-updater: 0.46.0
      
      V 1 Reply Last reply Reply Quote 0
      • V Offline
        VGerris @olivierlambert
        last edited by

        @olivierlambert hi, I wasn't up to date I think. it works on the latest version, thanks!

        1 Reply Last reply Reply Quote 1
        • V Offline
          VGerris @b.dietrich
          last edited by

          Sorry that I cannot answer your question, but on the topic, I am wondering if the recipe source is available anywhere public?
          I am interested because I would like to create a recipe for OKD, the upstream version of RedHat OpenShift.

          That way I could probably help troubleshoot this kind of issue.
          I also have not found any documentation and when trying to use static IP it is unclear to me with 3 nodes and 3 control planes what the VIP should be set too for example.

          I will soon start with a manual install, but I am waiting for hardware at the moment because of the memory and CPU requirements for OKD.
          When I pull it off manually I would love to use the recipe based automation of it.

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

            @b-dietrich it's probably a bug, are you on a fully up to date XOA? (ie latest channel)

            V 1 Reply Last reply Reply Quote 0
            • V Offline
              VGerris @olivierlambert
              last edited by

              @olivierlambert hi, I wasn't up to date I think. it works on the latest version, thanks!

              1 Reply Last reply Reply Quote 1
              • olivierlambertO olivierlambert marked this topic as a question on
              • olivierlambertO olivierlambert has marked this topic as solved on
              • olivierlambertO Offline
                olivierlambert Vates 🪐 Co-Founder CEO
                last edited by olivierlambert

                Don't forget this important warning in our doc 😉

                1ec5f582-70b5-46d7-a08d-218ba162006e-image.png

                https://xen-orchestra.com/docs/community.html#report-a-bug

                Glad to know it works now 🙂

                V 1 Reply Last reply Reply Quote 1
                • V Offline
                  VGerris @olivierlambert
                  last edited by

                  @olivierlambert hi, will do. Not sure what happened, I used the source compiled versiom first, where it was missing. Think I had to register to get the updates and that version worked. Thank you!

                  1 Reply Last reply Reply Quote 0
                  • B Offline
                    b.dietrich
                    last edited by

                    It finally work with latest version of xo-server 5.85.

                    1 Reply Last reply Reply Quote 0
                    • olivierlambertO olivierlambert moved this topic from Xen Orchestra on

                    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                    With your input, this post could be even better 💗

                    Register Login
                    • First post
                      Last post