This message was deleted.
# rancher-desktop
a
This message was deleted.
l
shailmis@shailmis-mac rancher-prac % kubectl get pods -n prom I0422 170141.525928 26252 versioner.go:56] Remote kubernetes server unreachable Unable to connect to the server: net/http: TLS handshake timeout
~shailmis@shailmis-mac rancher-prac % kubectl port-forward -n prom prometheus-prometheus-kube-prometheus-prometheus-0 9090 Forwarding from 127.0.0.1:9090 -> 9090 Forwarding from [:1]9090 -> 9090 Handling connection for 9090 E0422 165938.171990 26106 portforward.go:407] an error occurred forwarding 9090 -> 9090: error forwarding port 9090 to pod e5cd9deab842ee891c4517d88eb9f48c026719d8eb33fa8110031d64733cda8b, uid : failed to execute portforward in network namespace "/var/run/netns/cni-4f8f1052-f327-b958-833f-fe0532b4bd8e": failed to connect to localhost:9090 inside namespace "e5cd9deab842ee891c4517d88eb9f48c026719d8eb33fa8110031d64733cda8b", IPv4: dial tcp4 127.0.0.19090 connect: connection refused IPv6 dial tcp6 [:1]9090: connect: connection refused E0422 165938.175672 26106 portforward.go:233] lost connection to pod Handling connection for 9090 E0422 165938.176527 26106 portforward.go:345] error creating error stream for port 9090 -> 9090: EOF shailmis@shailmis-mac rancher-prac % kubectl get pods No resources found in default namespace. shailmis@shailmis-mac rancher-prac % kubectl get pods -n prom NAME READY STATUS RESTARTS AGE alertmanager-prometheus-kube-prometheus-alertmanager-0 2/2 Running 0 17m prometheus-kube-prometheus-operator-6495c54bbf-b96cl 1/1 Running 0 17m prometheus-grafana-9df5d5bc6-95ngr 3/3 Running 0 17m prometheus-prometheus-node-exporter-w9qmt 1/1 Running 3 (2m5s ago) 17m prometheus-prometheus-kube-prometheus-prometheus-0 1/2 CrashLoopBackOff 5 (2m5s ago) 17m prometheus-kube-state-metrics-7fbdd95dc4-tsjv9 1/1 Running 1 (2m5s ago) 17m~
Copy code
shailmis@shailmis-mac rancher-prac % kubectl port-forward -n prom prometheus-prometheus-kube-prometheus-prometheus-0 9090
Forwarding from 127.0.0.1:9090 -> 9090
Forwarding from [::1]:9090 -> 9090
Handling connection for 9090
E0422 16:59:38.171990  26106 portforward.go:407] an error occurred forwarding 9090 -> 9090: error forwarding port 9090 to pod e5cd9deab842ee891c4517d88eb9f48c026719d8eb33fa8110031d64733cda8b, uid : failed to execute portforward in network namespace "/var/run/netns/cni-4f8f1052-f327-b958-833f-fe0532b4bd8e": failed to connect to localhost:9090 inside namespace "e5cd9deab842ee891c4517d88eb9f48c026719d8eb33fa8110031d64733cda8b", IPv4: dial tcp4 127.0.0.1:9090: connect: connection refused IPv6 dial tcp6 [::1]:9090: connect: connection refused
E0422 16:59:38.175672  26106 portforward.go:233] lost connection to pod
Handling connection for 9090
E0422 16:59:38.176527  26106 portforward.go:345] error creating error stream for port 9090 -> 9090: EOF
shailmis@shailmis-mac rancher-prac % kubectl get pods
No resources found in default namespace.
shailmis@shailmis-mac rancher-prac % kubectl get pods -n prom
NAME                           READY  STATUS       RESTARTS    AGE
alertmanager-prometheus-kube-prometheus-alertmanager-0  2/2   Running      0       17m
prometheus-kube-prometheus-operator-6495c54bbf-b96cl   1/1   Running      0       17m
prometheus-grafana-9df5d5bc6-95ngr            3/3   Running      0       17m
prometheus-prometheus-node-exporter-w9qmt        1/1   Running      3 (2m5s ago)  17m
prometheus-prometheus-kube-prometheus-prometheus-0    1/2   CrashLoopBackOff  5 (2m5s ago)  17m
prometheus-kube-state-metrics-7fbdd95dc4-tsjv9      1/1   Running      1 (2m5s ago)  17m
port forward is making Kubernetes cluster unstable.