I tried to install Rancher, on single node rke2, u...
# rancher-setup
b
I tried to install Rancher, on single node rke2, using air gap mode So I created a docker registry and I downloaded and loaded the rancher images(2.10.1) using the
rancher-save-images.sh
and
rancher-load-images.sh
scripts of course I also created the
/etc/rancher/rke2/registries.yaml
file to allow rke2 to use it Moreover, I fetched the helm chart and finally used this command to install Rancher
helm install rancher ./rancher-2.10.1.tgz  --namespace cattle-system --set hostname=rancher.test --set rancherImage=dockerpriv.test:5000/rancher/rancher --set ingress.tls.source=secret --set privateCA=true --set systemDefaultRegistry=dockerpriv.test:5000 --set useBundledSystemChart=true --set global.cattle.psp.enabled=false --set bootstrapPassword=hpeinvent
So I checked the rancher log inside the
cattle-system
namespace and I saw
Copy code
W0321 14:00:41.357316       7 reflector.go:561] pkg/mod/k8s.io/client-go@v0.31.1/tools/cache/reflector.go:243: failed to list *v1.AKSClusterConfig: the server could not find the requested resource (get aksclusterconfigs.meta.k8s.io)
E0321 14:00:41.357373       7 reflector.go:158] "Unhandled Error" err="pkg/mod/k8s.io/client-go@v0.31.1/tools/cache/reflector.go:243: Failed to watch *v1.AKSClusterConfig: failed to list *v1.AKSClusterConfig: the server could not find the requested resource (get aksclusterconfigs.meta.k8s.io)" logger="UnhandledError"
It seems that Rancher pod is not able to create the CRD resources but I don't know why
b
For standalone, you would have to import the Azure-related CRD's since I don't believe they come with Rke2 by default. You may need to start your search with "Get Rancher AKS Operator Offline" - git clone https://github.com/rancher/aks-operator.git