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 account
  • HTTPClient represents the Kubernetes API client
  • Kubernetes resource kinds (Pod, etc) are defined in pykube.objects