【文件属性】:
文件名称:eksauth:生成令牌以针对Kubernetes EKS集群进行身份验证的Python模块
文件大小:3KB
文件格式:ZIP
更新时间:2021-05-02 20:42:46
kubernetes aws eks Python
EKS认证
这是一个简单的python模块,它生成与Heptio IAM Authenticator兼容的令牌。
使用此模块,您可以通过python脚本针对EKS集群进行身份验证,而无需使用heptio身份验证器二进制文件
用法
from eksauth import auth
from kubernetes import client , config
# Get EKS auth token
eks = auth . EKSAuth ( 'TestBed' )
token = eks . get_token ()
# Load kubernetes configuration
config . load_kube_config ()
configuration = client . Configuration ()
configuration . api_key [ 'authori
【文件预览】:
eksauth-master
----.gitignore(1KB)
----eksauth()
--------__init__.py(0B)
--------auth.py(2KB)
----get_pods.py(564B)
----README.md(909B)