k8s

package
v1.16.1 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2019 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIServerBootOp

func APIServerBootOp(nodes, cps []*cke.Node, serviceSubnet, domain string, params cke.APIServerParams) cke.Operator

APIServerBootOp returns an Operator to bootstrap kube-apiserver

func APIServerParams

func APIServerParams(controlPlanes []*cke.Node, advertiseAddress, serviceSubnet string, auditLogEnabeled bool, auditLogPolicy string) cke.ServiceParams

APIServerParams returns parameters for API server.

func APIServerRestartOp

func APIServerRestartOp(nodes, cps []*cke.Node, serviceSubnet, domain string, params cke.APIServerParams) cke.Operator

APIServerRestartOp returns an Operator to restart kube-apiserver

func ControllerManagerBootOp

func ControllerManagerBootOp(nodes []*cke.Node, cluster string, serviceSubnet string, params cke.ServiceParams) cke.Operator

ControllerManagerBootOp returns an Operator to bootstrap kube-controller-manager

func ControllerManagerParams

func ControllerManagerParams(clusterName, serviceSubnet string) cke.ServiceParams

ControllerManagerParams returns parameters for kube-controller-manager.

func ControllerManagerRestartOp

func ControllerManagerRestartOp(nodes []*cke.Node, cluster, serviceSubnet string, params cke.ServiceParams) cke.Operator

ControllerManagerRestartOp returns an Operator to restart kube-controller-manager

func KubeProxyBootOp

func KubeProxyBootOp(nodes []*cke.Node, cluster string, params cke.ServiceParams) cke.Operator

KubeProxyBootOp returns an Operator to boot kube-proxy.

func KubeProxyRestartOp

func KubeProxyRestartOp(nodes []*cke.Node, cluster string, params cke.ServiceParams) cke.Operator

KubeProxyRestartOp returns an Operator to restart kube-proxy.

func KubeletBootOp

func KubeletBootOp(nodes, registeredNodes []*cke.Node, apiServer *cke.Node, cluster, podSubnet string, params cke.KubeletParams) cke.Operator

KubeletBootOp returns an Operator to boot kubelet.

func KubeletRestartOp

func KubeletRestartOp(nodes []*cke.Node, cluster, podSubnet string, params cke.KubeletParams) cke.Operator

KubeletRestartOp returns an Operator to restart kubelet

func KubeletServiceParams

func KubeletServiceParams(n *cke.Node, params cke.KubeletParams) cke.ServiceParams

KubeletServiceParams returns parameters for kubelet.

func ProxyParams

func ProxyParams(n *cke.Node) cke.ServiceParams

ProxyParams returns parameters for kube-proxy.

func SchedulerBootOp

func SchedulerBootOp(nodes []*cke.Node, cluster string, params cke.SchedulerParams) cke.Operator

SchedulerBootOp returns an Operator to bootstrap kube-scheduler

func SchedulerParams

func SchedulerParams() cke.ServiceParams

SchedulerParams returns parameters for kube-scheduler.

func SchedulerRestartOp

func SchedulerRestartOp(nodes []*cke.Node, cluster string, params cke.SchedulerParams) cke.Operator

SchedulerRestartOp returns an Operator to restart kube-scheduler

Types

type AESConfiguration added in v1.13.17

type AESConfiguration struct {
	Keys []Key `json:"keys"`
}

AESConfiguration is a simplified version of the struct defined in https://github.com/kubernetes/apiserver/blob/master/pkg/apis/config/types.go

type EncryptionConfiguration added in v1.13.17

type EncryptionConfiguration struct {
	APIVersion string                  `json:"apiVersion,omitempty"`
	Kind       string                  `json:"kind,omitempty"`
	Resources  []ResourceConfiguration `json:"resources"`
}

EncryptionConfiguration is a simplified version of the struct defined in https://github.com/kubernetes/apiserver/blob/master/pkg/apis/config/types.go

Rationate: kubernetes repository is too large and not intended for client usage.

type Key added in v1.13.17

type Key struct {
	Name   string `json:"name"`
	Secret string `json:"secret"`
}

Key is a simplified version of the struct defined in https://github.com/kubernetes/apiserver/blob/master/pkg/apis/config/types.go

type KubeletAuthentication

type KubeletAuthentication struct {
	ClientCAFile string
}

KubeletAuthentication is a simplified version of the struct defined in https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/apis/config/types.go

Rationate: kubernetes repository is too large and not intended for client usage.

func (KubeletAuthentication) MarshalJSON

func (a KubeletAuthentication) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (KubeletAuthentication) MarshalYAML

func (a KubeletAuthentication) MarshalYAML() (interface{}, error)

MarshalYAML implements yaml.Marshaler.

type KubeletConfiguration

type KubeletConfiguration struct {
	APIVersion        string `json:"apiVersion,omitempty"`
	Kind              string `json:"kind,omitempty"`
	Address           string `json:"address,omitempty"`
	Port              int32  `json:"port,omitempty"`
	ReadOnlyPort      int32  `json:"readOnlyPort"`
	TLSCertFile       string `json:"tlsCertFile"`
	TLSPrivateKeyFile string `json:"tlsPrivateKeyFile"`

	Authentication KubeletAuthentication `json:"authentication"`
	Authorization  kubeletAuthorization  `json:"authorization"`

	HealthzPort           int32    `json:"healthzPort,omitempty"`
	HealthzBindAddress    string   `json:"healthzBindAddress,omitempty"`
	OOMScoreAdj           int32    `json:"oomScoreAdj"`
	ClusterDomain         string   `json:"clusterDomain,omitempty"`
	ClusterDNS            []string `json:"clusterDNS,omitempty"`
	PodCIDR               string   `json:"podCIDR,omitempty"`
	RuntimeRequestTimeout string   `json:"runtimeRequestTimeout,omitempty"`

	FeatureGates map[string]bool `json:"featureGates,omitempty"`
	FailSwapOn   bool            `json:"failSwapOn"`

	ContainerLogMaxSize  string `json:"containerLogMaxSize,omitempty"`
	ContainerLogMaxFiles int32  `json:"containerLogMaxFiles,omitempty"`
}

KubeletConfiguration is a simplified version of the struct defined in https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/apis/config/types.go

Rationate: kubernetes repository is too large and not intended for client usage.

type ProviderConfiguration added in v1.13.17

type ProviderConfiguration struct {
	AESCBC   *AESConfiguration `json:"aescbc,omitempty"`
	Identity *struct{}         `json:"identity,omitempty"`
}

ProviderConfiguration is a simplified version of the struct defined in https://github.com/kubernetes/apiserver/blob/master/pkg/apis/config/types.go

type ResourceConfiguration added in v1.13.17

type ResourceConfiguration struct {
	Resources []string                `json:"resources"`
	Providers []ProviderConfiguration `json:"providers"`
}

ResourceConfiguration is a simplified version of the struct defined in https://github.com/kubernetes/apiserver/blob/master/pkg/apis/config/types.go

Jump to

Keyboard shortcuts

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