Hello all, How to display external ip with "kubect...
# rke2
f
Hello all, How to display external ip with "kubectl get nodes -o wide" cmd in rke2 - version 1.26.4? I've been tried to add node-ip-external parameter in config.yaml and that config is applied in advertise-address value.
Copy code
root     2159939  9.8  5.3 1198428 438608 ?      Ssl  Sep24  67:40 kube-apiserver --admission-control-config-file=/etc/rancher/rke2/rke2-pss.yaml --audit-log-path=/var/lib/rancher/rke2/server/logs/audit.log --audit-policy-file=/etc/rancher/rke2/audit-policy.yaml --audit-log-maxage=30 --audit-log-maxbackup=10 --audit-log-maxsize=100 --advertise-address=IP PUBLIC
my config:
Copy code
server: <https://192.168.0.61:9345>
data-dir: /var/lib/rancher/rke2
tls-san:
  - cluster.local
  - 192.168.0.61
  - 14.225.53.251
node-external-ip: IP PUBLIC
But "kubectl get nodes -o wide" is nothing
Copy code
NAME        STATUS   ROLES                       AGE     VERSION          INTERNAL-IP    EXTERNAL-IP   OS-IMAGE             KERNEL-VERSION      CONTAINER-RUNTIME
master-01   Ready    control-plane,etcd,master   2d17h   v1.26.4+rke2r1   192.168.0.61   <none>        Ubuntu 22.04.2 LTS   5.15.0-75-generic   <containerd://1.6.19-k3s1>
worker-01   Ready    <none>                      2d17h   v1.26.4+rke2r1   192.168.0.5    <none>        Ubuntu 22.04.2 LTS   5.15.0-75-generic   <containerd://1.6.19-k3>
Thanks all.