Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 234 Bytes

kubernetes.rst

File metadata and controls

12 lines (9 loc) · 234 Bytes

Kubernetes

Authentication

# Kubernetes (from k8s pod)
f = open('/var/run/secrets/kubernetes.io/serviceaccount/token')
jwt = f.read()
client.auth_kubernetes("example", jwt)