Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python kubernetes client find pod with name

api_response = api_instance.read_namespaced_pod(name='pod-name',namespace='namespace-name')
#But to get specifically the name of those, use something like this:
for i in api_response.items:
    print("%s" %(i.metadata.name))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #kubernetes #client #find #pod
ADD COMMENT
Topic
Name
5+3 =