Documentation
¶
Overview ¶
Package k8s provides Kubernetes client access.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LocalClient ¶
func LocalClient() (*unversioned.Client, error)
LocalClient gets a Kubernetes client from the local environment.
It does a lot of configuration file loading. Use it for cases where you have a kubectl client configured.
For cases where you know exactly where the configuration information is, you should use Client.
If you are constructing an interactive client, you may also want to look at the Kubernetes interactive client configuration.
func PodClient ¶
func PodClient() (*unversioned.Client, error)
PodClient is a Kubernetes API client that lives inside of a Pod. Pods uniformly declare environment variables that we can use to establish a client connection.
For a generic client that can read Kubectl configs, see LocalClient.
Types ¶
This section is empty.