# 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 下载量 160 浏览量
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
资源评论
徐浪老师
- 粉丝: 8016
- 资源: 7082
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- (源码)基于Django和OpenCV的智能车视频处理系统.zip
- (源码)基于ESP8266的WebDAV服务器与3D打印机管理系统.zip
- (源码)基于Nio实现的Mycat 2.0数据库代理系统.zip
- (源码)基于Java的高校学生就业管理系统.zip
- (源码)基于Spring Boot框架的博客系统.zip
- (源码)基于Spring Boot框架的博客管理系统.zip
- (源码)基于ESP8266和Blynk的IR设备控制系统.zip
- (源码)基于Java和JSP的校园论坛系统.zip
- (源码)基于ROS Kinetic框架的AGV激光雷达导航与SLAM系统.zip
- (源码)基于PythonDjango框架的资产管理系统.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功