Daisuke
Contributor
- Joined
- Jun 23, 2011
- Messages
- 1,041
I would like to connect to Kubernetes running on Scale, with Lens. Output from my Mac,
k8 ports on Scale:
How do I generate the
I see port 179 and 50051, I presume one of these ports should be used for forwarding?
uranus.lan
is the Scale server:Code:
$ host uranus uranus.lan has address 192.168.1.8 $ kubectl version -o json { "clientVersion": { "major": "1", "minor": "25", "gitVersion": "v1.25.3", "gitCommit": "434bfd82814af038ad94d62ebe59b133fcb50506", "gitTreeState": "clean", "buildDate": "2022-10-12T10:47:25Z", "goVersion": "go1.19.2", "compiler": "gc", "platform": "darwin/amd64" }, "kustomizeVersion": "v4.5.7" } The connection to the server localhost:8080 was refused - did you specify the right host or port?
k8 ports on Scale:
Code:
# netstat -tulpn | egrep 'kube|k3s' tcp 0 0 127.0.0.1:10248 0.0.0.0:* LISTEN 16127/k3s server tcp 0 0 127.0.0.1:6444 0.0.0.0:* LISTEN 16127/k3s server tcp 0 0 127.0.0.1:10257 0.0.0.0:* LISTEN 16127/k3s server tcp 0 0 192.168.1.8:179 0.0.0.0:* LISTEN 18655/kube-router tcp 0 0 127.0.0.1:10259 0.0.0.0:* LISTEN 16127/k3s server tcp 0 0 127.0.0.1:43797 0.0.0.0:* LISTEN 16127/k3s server tcp 0 0 127.0.0.1:50051 0.0.0.0:* LISTEN 18655/kube-router tcp 0 0 192.168.1.8:50051 0.0.0.0:* LISTEN 18655/kube-router tcp6 0 0 :::10250 :::* LISTEN 16127/k3s server tcp6 0 0 :::6443 :::* LISTEN 16127/k3s server tcp6 0 0 ::1:179 :::* LISTEN 18655/kube-router tcp6 0 0 :::20244 :::* LISTEN 18655/kube-router
How do I generate the
.kube/config
file on my Mac? This way I don't have to port forward anything.I see port 179 and 50051, I presume one of these ports should be used for forwarding?
Last edited: