DEV Community

Aliabbask08
Aliabbask08

Posted on

Access pod content without exposing service

You can access pod content without exposing service

  1. Get the self link from pod
    kubectl get pod -o yaml |grep selfLink

  2. Now, access pod content using kubectl --raw
    kubectl get --raw :/proxy/

    eg. kubectl get --raw /api/v1/namespaces/secret/pods/nginx-7cc574999-6hnsj:80/proxy/index.html

Top comments (0)