k8s

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2017 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDeployment

func CreateDeployment(kubeconfig, serverImage, gatewayImage, name string) error

CreateDeployment creates a new deployment in the cluster

func DeleteDeployment

func DeleteDeployment(kubeconfig, deployment string) error

DeleteDeployment deletes a deployment from the cluster

func GetKubeClient

func GetKubeClient(kubeconfig string) (*kubernetes.Clientset, *restclient.Config, error)

GetKubeClient is a convenience method for creating kubernetes config and client for a given kubeconfig

Types

type Tunnel added in v0.4.3

type Tunnel struct {
	Local     int
	Remote    int
	Namespace string
	PodName   string
	Out       io.Writer
	// contains filtered or unexported fields
}

Tunnel describes a ssh-like tunnel to a kubernetes pod

func NewTunnel added in v0.4.3

func NewTunnel(client rest.Interface, config *rest.Config, namespace, podName string, remote int) *Tunnel

NewTunnel creates a new tunnel

func (*Tunnel) Close added in v0.4.3

func (t *Tunnel) Close()

Close disconnects a tunnel connection

func (*Tunnel) ForwardPort added in v0.4.3

func (t *Tunnel) ForwardPort(localPort int) error

ForwardPort opens a tunnel to a kubernetes pod

Jump to

Keyboard shortcuts

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