> > Ways to connect > > You have several options for connecting to nodes, pods and services from > outside the cluster: > > - Access services through public IPs. > - Use a service with type NodePort or LoadBalancer to make the > service reachable outside the cluster. See the services > <https://kubernetes.io/docs/user-guide/services> and kubectl expose > <https://kubernetes.io/docs/user-guide/kubectl/v1.10/#expose> > documentation. > > OR *Python client*
To use Python client <https://github.com/kubernetes-client/python>, run the following command: pip install kubernetes. See Python Client Library page <https://github.com/kubernetes-client/python> for more installation options. The Python client can use the same kubeconfig file <https://kubernetes.io/docs/concepts/cluster-administration/authenticate-across-clusters-kubeconfig/> as the kubectl CLI does to locate and authenticate to the apiserver. See this example <https://github.com/kubernetes-client/python/tree/master/examples/example1.py> . On Tuesday, April 24, 2018 at 7:16:42 PM UTC+5:30, Kavitha Kempwodeyar wrote: > i want to retrieve a file stored in a pod using python need help please > -- You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q&A" group. To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-users+unsubscr...@googlegroups.com. To post to this group, send email to kubernetes-users@googlegroups.com. Visit this group at https://groups.google.com/group/kubernetes-users. For more options, visit https://groups.google.com/d/optout.