Hi Team - Trying to create RKE2 clusters using clu...
# rke2
q
Hi Team - Trying to create RKE2 clusters using cluster template - https://github.com/rancherfederal/rancher-cluster-templates/tree/main However unable to create nodepools with different k8s version. Snippet for cluster template From below template was able to successfully create clusters with 1.31 however trying to perform upgrade to 1.32 k8s version by creating new node pools with 1.32 and then plan is to delete the old node-pool which are with 1.31 from the same cluster.
Copy code
# machinePoolDefaults:
    {{- if ne .Values.cloudprovider "custom" }}
    machinePools:
    {{- if .Values.nodepools }} {{ range $index, $nodepool := .Values.nodepools }}
    - name: {{ $nodepool.name }}
      kubernetesVersion: {{ $nodepool.kubernetesversion }}
      quantity: {{ $nodepool.quantity }}
      controlPlaneRole: {{ $nodepool.controlplane }}
      etcdRole: {{ $nodepool.etcd }}
      workerRole: {{ $nodepool.worker }}