python
python copied to clipboard
Official Python client library for kubernetes
Hi, I have the same issue here #1792 for creating a resource kind `Workflow` (it's for argo workflow) using `utils.create_from_dict` I have this error: `module 'kubernetes.client' has no attribute 'ArgoprojIoV1alpha1Api'`...
**What happened (please include outputs or screenshots)**: I get `HTTP response body: 404 page not found` when I try to create a `ClusterIssuer` for cert-manager. Here's the full stack trace:...
**Link to the issue (please include a link to the specific documentation or example)**: https://github.com/kubernetes-client/python/blob/master/examples/pod_exec.py **Description of the issue (please include outputs or screenshots if possible)**: I think it would...
**What happened (please include outputs or screenshots)**:  **What you expected to happen**: When two DNS are provided, dynamic client should properly route to one of them. It is not...
**What happened (please include outputs or screenshots):** I use create_namespaced_deployment to apply 999.yaml in pod "cloneyaml". ``` root@cloneyaml:/cloneyaml# ls 999.yaml applyv2.py ``` **here is my code "applyv2.py":** ``` from flask...
Guys, Can someone please let me know why this code is not working and throws an error? ``` contexts, active_context = config.list_kube_config_contexts() if not contexts: sys.exit(1) contexts = [context['name'] for...
https://github.com/kubernetes-client/python/blob/master/doc/source/kubernetes.client.api.core_v1_api.rst is render at https://kubernetes.readthedocs.io/en/latest/kubernetes.client.api.core_v1_api.html and user finds  The module documentation is missing completely. Openapi Generator produces some...
**What happened (please include outputs or screenshots)**: Certain k8s API calls (f.e. deleting a namespace) result in the following deprecation warnings: ``` venv-test/lib/python3.9/site-packages/kubernetes/client/rest.py:44: DeprecationWarning: HTTPResponse.getheaders() is deprecated and will be...
**What happened (please include outputs or screenshots)**: Running this simple script in a big cluster takes about 30 seconds to execute: ``` import kubernetes as k8s k8s.config.load_kube_config() apps = k8s.client.AppsV1Api()...