If you like to see kubernetes components in web-UI, wave provides "weave scope" UI.
Ref: https://www.weave.works/docs/scope/latest/installing/#k8s
Follow the below steps:
Code Block | ||
---|---|---|
| ||
# install weave Scope. $ kubectl apply -f "https://cloud.weave.works/k8s/scope.yaml?k8s-version=$(kubectl version | base64 | tr -d '\n')" namespace "weave" created serviceaccount "weave-scope" created clusterrole "weave-scope" created clusterrolebinding "weave-scope" created deployment "weave-scope-app" created service "weave-scope-app" created daemonset "weave-scope-agent" created Note: In the case of federation setup, change the current-context to that of host cluster, before running the above command. Then install firefox. $ apt install firefox # Port forwarding $ kubectl port-forward -n weave "$(kubectl get -n weave pod --selector=weave-scope-component=app -o jsonpath='{.items..metadata.name}')" 4040 Forwarding from 127.0.0.1:4040 -> 4040 Then run firefox on a separate shell. Assuming that "X11-Forwarding" is enabled, a firefox window will pop up. (it could be very slow.. wait enough after running firefox). In the URL, navigate to http://localhost:4040 # If Firefox is slow, you can try google-chrome.. ( tested this: https://askubuntu.com/questions/79280/how-to-install-chrome-browser-properly-via-command-line) You will see the below output. |