|
|
@@ -139,12 +139,16 @@ si se usa el ```private.rancher.lab``` registry, hay que añadir a ```NO_PROXY``
|
|
|
|
|
|
# simlink all the things - kubectl
|
|
|
ln -s $(find /var/lib/rancher/rke2/data/ -name kubectl) /usr/local/bin/kubectl
|
|
|
-
|
|
|
+
|
|
|
A partir de aquí, cambiar a usuario normal (no root)
|
|
|
|
|
|
- # add kubectl conf
|
|
|
- export KUBECONFIG=/etc/rancher/rke2/rke2.yaml
|
|
|
+#### Copiar configuración a directorio de usuario
|
|
|
|
|
|
+
|
|
|
+ mkdir $HOME/.kube/
|
|
|
+ sudo cp /etc/rancher/rke2/rke2.yaml $HOME/.kube/config
|
|
|
+ sudo chown $(id -un):$(id -gn) .kube/config
|
|
|
+
|
|
|
# check node status
|
|
|
kubectl get node
|
|
|
|