Does API Client Library for Python support creation and deletion of pods and jobs on google container engine?
相关问题
- How do I change the storage class of existing pers
- Why do I get “get-credentials requires edit permis
- How do I move pods to a new node pool/ instance gr
- How do I find out the external IP of a Load Balanc
- Kubernetes cluster autoscaler does not seem to wor
相关文章
- How do I create a persistent volume claim with Rea
- GKE does not scale to/from 0 when autoscaling enab
- Can't push image to google container registry
- Accessing GCP Internal Load Balancer from another
- How to list the published container images in the
- Shiny app docker container not loading in browser
- DNS with GKE Internal Load Balancers
- TLS handshake timeout with kubernetes in GKE
Given that Kubernetes comes with a Swagger spec (1.2, not the latest version), you can use swagger-codegen to generate an Python API client for it.
Here is an example to generate Python API client using https://generator.swagger.io:
which returns a JSON with an URL to download the zipped Python API client.
Ref: https://github.com/swagger-api/swagger-codegen#online-generators
If you need help with swagger codegen or the Python API client, please open a ticket via https://github.com/swagger-api/swagger-codegen/issues
No. The client library for python contains functions for interacting with the Google Container Engine API but not the Kubernetes API. The Kubernetes API uses a standard swagger specification, so it should be possible to generate a python client library. There is also pykube if you want to experiment with a existing client library.