k8s

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2015 License: Apache-2.0 Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL