You can access pod content without exposing service
Get the self link from pod
kubectl get pod -o yaml |grep selfLink-
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)