adamant-kite-43734
07/27/2023, 4:55 AMcreamy-pencil-82913
07/27/2023, 6:03 AMcreamy-pencil-82913
07/27/2023, 6:03 AMmillions-caravan-63276
07/27/2023, 11:22 PM/var/lib/rancher/rke2/server/manifests/rke2-cilium-config.yaml
---
apiVersion: <http://helm.cattle.io/v1|helm.cattle.io/v1>
kind: HelmChartConfig
metadata:
name: rke2-cilium
namespace: kube-system
spec:
valuesContent: |-
kubeProxyReplacement: strict
k8sServiceHost: <MY_SERVER_IP>
k8sServicePort: 6443
cni:
chainingMode: "none"
I also tried adding:
cat << EOF > /etc/rancher/rke2/config.yaml
cni:
- cilium
EOF
it does not seem to work.
What am I missing?
I am doing a fresh installation on ubuntu servers by the way.creamy-pencil-82913
07/27/2023, 11:37 PMcreamy-pencil-82913
07/27/2023, 11:37 PMcreamy-pencil-82913
07/27/2023, 11:38 PMmillions-caravan-63276
07/27/2023, 11:42 PMsystemctl enable rke2-server.service
systemctl start rke2-server.service
The most noticeable one is kubectl not being installed:
$ export KUBECONFIG=/etc/rancher/rke2/rke2.yaml
$ kubectl get node -o wide
Command 'kubectl' not found, but can be installed with:
sudo snap install kubectl
I also get some errors like:
Jul 27 23:36:59 kubecluster1 rke2[54582]: time="2023-07-27T23:36:59Z" level=error msg="error syncing 'kube-system/rke2-snapshot-controller-crd': handler helm-controller-chart-registration: <http://helmcharts.helm.cattle.io|helmcharts.helm.cattle.io> \"rke2-snapshot-controller-crd\" not found, requeuing"
Jul 27 23:37:00 kubecluster1 rke2[54582]: time="2023-07-27T23:37:00Z" level=error msg="error syncing 'kube-system/rke2-snapshot-validation-webhook': handler helm-controller-chart-registration: <http://helmcharts.helm.cattle.io|helmcharts.helm.cattle.io> \"rke2-snapshot-validation-webhook\" not found, requeuing"
creamy-pencil-82913
07/27/2023, 11:46 PM• Additional utilities will be installed at. They include:/var/lib/rancher/rke2/bin/
,kubectl
, andcrictl
. Note that these are not on your path by default.ctr
creamy-pencil-82913
07/27/2023, 11:47 PMcreamy-pencil-82913
07/27/2023, 11:47 PMmillions-caravan-63276
07/27/2023, 11:49 PMln -s $(find /var/lib/rancher/rke2/data/ -name kubectl) /usr/local/bin/kubectl
millions-caravan-63276
07/27/2023, 11:51 PM