This message was deleted.
# rke2
a
This message was deleted.
c
CLI flags and config file values are interchangeable
m
@creamy-pencil-82913 I also got the same issue here. Creating the file below does not seem to work:
Copy code
/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:
Copy code
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.
c
what do you mean by does not work
what happens
Are you putting those files in place before RKE2 starts, or after it’s already been running for a bit?
m
Putting the files in before running:
Copy code
systemctl enable rke2-server.service
systemctl start rke2-server.service
The most noticeable one is kubectl not being installed:
Copy code
$ 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:
Copy code
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"
c
https://docs.rke2.io/install/quickstart
• Additional utilities will be installed at
/var/lib/rancher/rke2/bin/
. They include:
kubectl
,
crictl
, and
ctr
. Note that these are not on your path by default.
Did you add that bin dir to your path?
Those messages are normal during startup
m
you mean something like this right?
Copy code
ln -s $(find /var/lib/rancher/rke2/data/ -name kubectl) /usr/local/bin/kubectl
ow, that was somehow commented out on my script . Thanks!