kubernetes

package
v0.0.0-...-3479ee1 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewService

func NewService() service.Service

Types

type Component

type Component struct {
	// contains filtered or unexported fields
}

func NewManifestComponent

func NewManifestComponent(name string, masterOnly bool) Component

NewManifestComponent creates a new component that runs in a static pod inside kubelet

func NewServiceAndTimerComponent

func NewServiceAndTimerComponent(name string, masterOnly bool) Component

NewServiceAndTimerComponent creates a new component that runs in a systemd service & timer

func NewServiceComponent

func NewServiceComponent(name string, masterOnly bool) Component

NewServiceComponent creates a new component that runs in a systemd service

func (Component) AddonPath

func (c Component) AddonPath() string

AddonPath returns the full path of the file containing the addon that runs the component.

func (Component) CAPath

func (c Component) CAPath() string

CAPath returns the full path of the CA certificate for this component.

func (Component) CertificatePath

func (c Component) CertificatePath() string

CertificatePath returns the full path of the public key part of the certificate for this component.

func (Component) CertificatesServiceName

func (c Component) CertificatesServiceName() string

CertificatesServiceName returns the name of the systemd service that generates the TLS certificates for the component.

func (Component) CertificatesServicePath

func (c Component) CertificatesServicePath() string

CertificatesServicePath returns the full path of the file containing the systemd service that generates the TLS certificates for the component.

func (Component) CertificatesTimerName

func (c Component) CertificatesTimerName() string

CertificatesTimerName returns the name of the systemd timer that generates the TLS certificates for the component.

func (Component) CertificatesTimerPath

func (c Component) CertificatesTimerPath() string

CertificatesTimerPath returns the full path of the file containing the systemd timer that generates the TLS certificates for the component.

func (Component) HasTimer

func (c Component) HasTimer() bool

HasTimer returns true if this component is deployed as a systemd service + timer.

func (Component) IsManifest

func (c Component) IsManifest() bool

IsManifest returns true if this component is deployed as a static pod inside kubelet using a manifest.

func (Component) JobID

func (c Component) JobID(clusterID string) string

JobID returns the ID of the vault-monkey job used to access certificates for this component.

func (Component) KeyPath

func (c Component) KeyPath() string

KeyPath returns the full path of the private key part of the certificate for this component.

func (Component) KubeConfigPath

func (c Component) KubeConfigPath() string

KubeConfigPath returns the full path of the kubeconfig configuration file for this component.

func (Component) ManifestName

func (c Component) ManifestName() string

ManifestName returns the name of the static pod manifest that runs the component.

func (Component) ManifestPath

func (c Component) ManifestPath() string

ManifestPath returns the full path of the file containing the static pod manifest that runs the component.

func (Component) MasterOnly

func (c Component) MasterOnly() bool

MasterOnly returns true if this component should only be deployed on master nodes.

func (Component) Name

func (c Component) Name() string

Name returns the name of the component

func (Component) RestartCommand

func (c Component) RestartCommand() string

RestartCommand returns a full command that restarts the component

func (Component) ServiceName

func (c Component) ServiceName() string

ServiceName returns the name of the systemd service that runs the component.

func (Component) ServicePath

func (c Component) ServicePath() string

ServicePath returns the full path of the file containing the systemd service that runs the component.

func (Component) String

func (c Component) String() string

String returns the name of the component

func (Component) TimerName

func (c Component) TimerName() string

TimerName returns the name of the systemd timer that runs the component.

func (Component) TimerPath

func (c Component) TimerPath() string

TimerPath returns the full path of the file containing the systemd timer that runs the component.

Jump to

Keyboard shortcuts

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