API ModulesΒΆ
Pykube exports its main classes on the package level, so you can do:
from pykube import KubeConfig, HTTPClient, Pod
KubeConfig
is the main configuration class to load~/.kube/config
or from in-cluster service accountHTTPClient
represents the Kubernetes API client- Kubernetes resource kinds (
Pod
, etc) are defined inpykube.objects