# kubernetes.client
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: release-1.31
- Package version: 31.0.0+snapshot
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
## Requirements.
Python 2.7 and 3.4+
## Installation & Usage
### pip install
If the python package is hosted on a repository, you can install directly using:
```sh
pip install git+https://github.com/kubernetes-client/python.git
```
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/kubernetes-client/python.git`)
Then import the package:
```python
import kubernetes.client
```
### Setuptools
Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
```sh
python setup.py install --user
```
(or `sudo python setup.py install` to install the package for all users)
Then import the package:
```python
import kubernetes.client
```
## Getting Started
Please follow the [installation procedure](#installation--usage) and then run the following:
```python
from __future__ import print_function
import time
import kubernetes.client
from kubernetes.client.rest import ApiException
from pprint import pprint
configuration = kubernetes.client.Configuration()
# Configure API key authorization: BearerToken
configuration.api_key['authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['authorization'] = 'Bearer'
# Defining host is optional and default to http://localhost
configuration.host = "http://localhost"
# Defining host is optional and default to http://localhost
configuration.host = "http://localhost"
# Enter a context with an instance of the API kubernetes.client
with kubernetes.client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = kubernetes.client.WellKnownApi(api_client)
try:
api_response = api_instance.get_service_account_issuer_open_id_configuration()
pprint(api_response)
except ApiException as e:
print("Exception when calling WellKnownApi->get_service_account_issuer_open_id_configuration: %s\n" % e)
```
## Documentation for API Endpoints
All URIs are relative to *http://localhost*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*WellKnownApi* | [**get_service_account_issuer_open_id_configuration**](docs/WellKnownApi.md#get_service_account_issuer_open_id_configuration) | **GET** /.well-known/openid-configuration |
*AdmissionregistrationApi* | [**get_api_group**](docs/AdmissionregistrationApi.md#get_api_group) | **GET** /apis/admissionregistration.k8s.io/ |
*AdmissionregistrationV1Api* | [**create_mutating_webhook_configuration**](docs/AdmissionregistrationV1Api.md#create_mutating_webhook_configuration) | **POST** /apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations |
*AdmissionregistrationV1Api* | [**create_validating_admission_policy**](docs/AdmissionregistrationV1Api.md#create_validating_admission_policy) | **POST** /apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies |
*AdmissionregistrationV1Api* | [**create_validating_admission_policy_binding**](docs/AdmissionregistrationV1Api.md#create_validating_admission_policy_binding) | **POST** /apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings |
*AdmissionregistrationV1Api* | [**create_validating_webhook_configuration**](docs/AdmissionregistrationV1Api.md#create_validating_webhook_configuration) | **POST** /apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations |
*AdmissionregistrationV1Api* | [**delete_collection_mutating_webhook_configuration**](docs/AdmissionregistrationV1Api.md#delete_collection_mutating_webhook_configuration) | **DELETE** /apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations |
*AdmissionregistrationV1Api* | [**delete_collection_validating_admission_policy**](docs/AdmissionregistrationV1Api.md#delete_collection_validating_admission_policy) | **DELETE** /apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies |
*AdmissionregistrationV1Api* | [**delete_collection_validating_admission_policy_binding**](docs/AdmissionregistrationV1Api.md#delete_collection_validating_admission_policy_binding) | **DELETE** /apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings |
*AdmissionregistrationV1Api* | [**delete_collection_validating_webhook_configuration**](docs/AdmissionregistrationV1Api.md#delete_collection_validating_webhook_configuration) | **DELETE** /apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations |
*AdmissionregistrationV1Api* | [**delete_mutating_webhook_configuration**](docs/AdmissionregistrationV1Api.md#delete_mutating_webhook_configuration) | **DELETE** /apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name} |
*AdmissionregistrationV1Api* | [**delete_validating_admission_policy**](docs/AdmissionregistrationV1Api.md#delete_validating_admission_policy) | **DELETE** /apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies/{name} |
*AdmissionregistrationV1Api* | [**delete_validating_admission_policy_binding**](docs/AdmissionregistrationV1Api.md#delete_validating_admission_policy_binding) | **DELETE** /apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings/{name} |
*AdmissionregistrationV1Api* | [**delete_validating_webhook_configuration**](docs/AdmissionregistrationV1Api.md#delete_validating_webhook_configuration) | **DELETE** /apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name} |
*AdmissionregistrationV1Api* | [**get_api_resources**](docs/AdmissionregistrationV1Api.md#get_api_resources) | **GET** /apis/admissionregistration.k8s.io/v1/ |
*AdmissionregistrationV1Api* | [**list_mutating_webhook_configuration**](docs/AdmissionregistrationV1Api.md#list_mutating_webhook_configuration) | **GET** /apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations |
*AdmissionregistrationV1Api* | [**list_validating_admission_policy**](docs/AdmissionregistrationV1Api.md#list_validating_admission_policy) | **GET** /apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies |
*AdmissionregistrationV1Api* | [**list_validating_admission_policy_binding**](docs/AdmissionregistrationV1Api.md#list_validating_admission_policy_binding) | **GET** /apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings |
*AdmissionregistrationV1Api* | [**list_validating_webhook_configuration**](docs/AdmissionregistrationV1Api.md#list_validating_webhook_configuration) | **GET** /apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations |
*AdmissionregistrationV1Api* | [**patch_mutating_webhook_configuration**](docs/AdmissionregistrationV1Api.md#patch_mutating_webhook_configuration) | **PATCH** /apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name} |
*AdmissionregistrationV1Api* | [**patch_validating_admission_policy**](docs/AdmissionregistrationV1Api.md#patch_validating_admission_policy) | **PATCH** /apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies/{name} |
*AdmissionregistrationV1Api* | [**patch_validating_admission_policy_binding**](docs/AdmissionregistrationV1Api.md#patch_validating_admission_policy_binding) | **PATCH** /apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings/{name} |
*AdmissionregistrationV1Api* | [**patch_validating_admission_policy_status**](docs/AdmissionregistrationV1Api.md#patch_validating_admission_policy_status) | **PATCH** /apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies/{name}/status |
*AdmissionregistrationV1Api* | [**patch_validating_webhook_configuration**](docs/AdmissionregistrationV1Api.md#patch_validating_webhook_configuration) | **P
没有合适的资源?快使用搜索试试~ 我知道了~
kubernetes 的官方 Python 客户端库.zip
共2000个文件
py:779个
md:705个
rst:459个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 182 浏览量
2024-11-21
22:03:39
上传
评论
收藏 3.74MB ZIP 举报
温馨提示
Kubernetes Python clientkubernetes API的 Python 客户端。安装来源:git clone --recursive https://github.com/kubernetes-client/python.gitcd pythonpython setup.py install直接从PyPI:pip install kubernetes示例列出所有 pod:from kubernetes import client, config# Configs can be set in Configuration class directly or using helper utilityconfig.load_kube_config()v1 = client.CoreV1Api()print("Listing pods with their IPs:")ret = v1.list_pod_for_all_namespaces(watch=False)for i in ret.items:
资源推荐
资源详情
资源评论
收起资源包目录
kubernetes 的官方 Python 客户端库.zip (2000个子文件)
swagger.json 5.5MB
implicit-svclist.json 1KB
Makefile 901B
CoreV1Api.md 1.37MB
AppsV1Api.md 489KB
CHANGELOG.md 460KB
ResourceV1alpha3Api.md 381KB
StorageV1Api.md 326KB
RbacAuthorizationV1Api.md 270KB
AdmissionregistrationV1Api.md 259KB
NetworkingV1Api.md 227KB
BatchV1Api.md 182KB
README.md 181KB
CustomObjectsApi.md 158KB
FlowcontrolApiserverV1beta3Api.md 153KB
FlowcontrolApiserverV1Api.md 152KB
AdmissionregistrationV1alpha1Api.md 139KB
AdmissionregistrationV1beta1Api.md 139KB
NetworkingV1beta1Api.md 134KB
AutoscalingV2Api.md 95KB
AutoscalingV1Api.md 95KB
PolicyV1Api.md 94KB
CertificatesV1Api.md 93KB
CoordinationV1alpha1Api.md 78KB
StoragemigrationV1alpha1Api.md 78KB
ApiextensionsV1Api.md 77KB
DiscoveryV1Api.md 77KB
InternalApiserverV1alpha1Api.md 77KB
CoordinationV1Api.md 77KB
EventsV1Api.md 77KB
ApiregistrationV1Api.md 76KB
StorageV1alpha1Api.md 62KB
StorageV1beta1Api.md 62KB
CertificatesV1alpha1Api.md 61KB
SchedulingV1Api.md 61KB
NodeV1Api.md 60KB
AuthorizationV1Api.md 26KB
README.md 15KB
AuthenticationV1Api.md 14KB
V1ServiceSpec.md 14KB
V1PodSpec.md 12KB
release.md 9KB
V1ValidationRule.md 9KB
V1JSONSchemaProps.md 9KB
AuthenticationV1alpha1Api.md 8KB
AuthenticationV1beta1Api.md 8KB
V1ObjectMeta.md 8KB
V1Container.md 8KB
V1JobSpec.md 8KB
V1EphemeralContainer.md 7KB
V1CSIDriverSpec.md 7KB
V1TopologySpreadConstraint.md 6KB
V1alpha1Validation.md 6KB
V1beta1Validation.md 6KB
V1Validation.md 6KB
V1MutatingWebhook.md 6KB
CONTRIBUTING.md 6KB
V1PodStatus.md 5KB
V1CertificateSigningRequestSpec.md 5KB
V1PersistentVolumeClaimStatus.md 5KB
V1ValidatingWebhook.md 5KB
V1PersistentVolumeSpec.md 5KB
V1JobStatus.md 5KB
V1PodSecurityContext.md 4KB
timeout-settings.md 4KB
LogsApi.md 4KB
V1CSIStorageCapacity.md 4KB
EventsV1Event.md 4KB
V1alpha1ValidatingAdmissionPolicySpec.md 3KB
V1ContainerStatus.md 3KB
V1beta1ValidatingAdmissionPolicySpec.md 3KB
V1SecurityContext.md 3KB
V1ValidatingAdmissionPolicySpec.md 3KB
V1Volume.md 3KB
V1alpha1ValidatingAdmissionPolicyBindingSpec.md 3KB
V1beta1ValidatingAdmissionPolicyBindingSpec.md 3KB
V1ValidatingAdmissionPolicyBindingSpec.md 3KB
V1StatefulSetSpec.md 3KB
V1PodAffinityTerm.md 3KB
V1ServicePort.md 3KB
V1alpha3DeviceRequest.md 3KB
V1APIServiceSpec.md 3KB
V1LimitedPriorityLevelConfiguration.md 3KB
PULL_REQUEST_TEMPLATE.md 3KB
PULL_REQUEST_TEMPLATE.md 3KB
CoreV1Event.md 3KB
V1PodDisruptionBudgetStatus.md 3KB
V1beta3LimitedPriorityLevelConfiguration.md 3KB
V1StorageClass.md 3KB
V1alpha3CELDeviceSelector.md 3KB
V1NodeStatus.md 3KB
V1DeleteOptions.md 3KB
V1PodDisruptionBudgetSpec.md 3KB
V1ServiceAccount.md 3KB
V1PersistentVolumeClaimSpec.md 3KB
V1alpha1LeaseCandidateSpec.md 3KB
V1NetworkPolicySpec.md 3KB
V1alpha3ResourceSlice.md 3KB
V1RollingUpdateDaemonSet.md 2KB
V1Probe.md 2KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
徐浪老师
- 粉丝: 8523
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 永磁同步电机旋转高频信号注入法零低速无位置控制仿真,相比高频方波信号注入法,旋转高频信号注入法噪声更小损耗更低,该模型注入1000Hz旋转高频电压信号到电机中用于产生激励电流,在低速100rpm下无感
- jQuery实现的带左右切换按钮鼠标滑过图片向上弹出放大动态特效源码.zip
- 电子电气架构中整车网络管理与休眠唤醒机制详解
- jQuery实现点击按钮爆炸式弹出不同颗粒动画特效源码.zip
- 管材切割机sw18全套技术资料100%好用.zip
- 基于STM32环境温湿度监测系统设计(附项目代码zip)
- 钢板折边机sw18全套技术资料100%好用.zip
- IMG_20250104_163933.jpg
- win32汇编环境,理解BeginPaint函数与GetDC函数的区别
- SMTP(2).zip
- 过滤器清洗机step全套技术资料100%好用.zip
- CCNA-200-301.pdf
- 计算机视觉中圆与椭圆超最小二乘拟合算法(HyperLS)的理论与实验研究
- COMSOL 一维电化学模型和热模型 很重要,P2D模型计算 可以得到准确的热源 同时也可以仿真电压得到准确的数据 拟合即可使用 不用担心审稿人问你数据来源
- 轨道式可调铁板分张器sw19可编辑全套技术资料100%好用.zip
- 环形柔性链输送机sw16可编辑全套技术资料100%好用.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功