kubelet

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const UnreserveTip = "ignore"

Variables

This section is empty.

Functions

This section is empty.

Types

type KubeletLitekubeOptions

type KubeletLitekubeOptions struct {
	PodInfraContainerImage string `yaml:"pod-infra-container-image"`
	CertDir                string `yaml:"cert-dir"`
}

options for Litekube to start kube-controller-manager

var DefaultKLO KubeletLitekubeOptions = KubeletLitekubeOptions{
	PodInfraContainerImage: "registry.cn-hangzhou.aliyuncs.com/google-containers/pause-amd64:3.0",
}

func NewKubeletLitekubeOptions

func NewKubeletLitekubeOptions() *KubeletLitekubeOptions

func (*KubeletLitekubeOptions) AddTips

func (opt *KubeletLitekubeOptions) AddTips(section *help.Section)

type KubeletOptions

type KubeletOptions struct {
	ReservedOptions     map[string]string           `yaml:"reserve"`
	ProfessionalOptions *KubeletProfessionalOptions `yaml:"professional"`
	Options             *KubeletLitekubeOptions     `yaml:"options"`
	IgnoreOptions       map[string]string           `yaml:"-"`
}

struct to store args from input

func NewKubeletOptions

func NewKubeletOptions() *KubeletOptions

func (*KubeletOptions) CheckReservedOptions

func (opt *KubeletOptions) CheckReservedOptions() error

delete keys already be disable or define in other block

func (*KubeletOptions) HelpSection

func (opt *KubeletOptions) HelpSection() *help.Section

func (*KubeletOptions) PrintFlags

func (opt *KubeletOptions) PrintFlags(prefix string, printFunc func(format string, a ...interface{}) error) error

print all flags

func (*KubeletOptions) ToMap

func (opt *KubeletOptions) ToMap() (map[string]string, error)

type KubeletProfessionalOptions

type KubeletProfessionalOptions struct {
	//NodeIp                   string `yaml:"node-ip"`
	Kubeconfig               string `yaml:"kubeconfig"`
	Config                   string `yaml:"config"`
	CgroupDriver             string `yaml:"cgroup-driver"`
	RuntimeCgroups           string `yaml:"runtime-cgroups"`
	HostnameOverride         string `yaml:"hostname-override"`
	ContainerRuntime         string `yaml:"container-runtime"`
	BootstrapKubeconfig      string `yaml:"bootstrap-kubeconfig"`
	ContainerRuntimeEndpoint string `yaml:"container-runtime-endpoint"`
}

Empirically assigned parameters are not recommended

var DefaultKPO KubeletProfessionalOptions = KubeletProfessionalOptions{

	CgroupDriver:             "systemd",
	ContainerRuntime:         "remote",
	ContainerRuntimeEndpoint: "unix:///run/containerd/containerd.sock",
	RuntimeCgroups:           "/system.slice/containerd.service",
}

func NewKubeletProfessionalOptions

func NewKubeletProfessionalOptions() *KubeletProfessionalOptions

func (*KubeletProfessionalOptions) AddTips

func (opt *KubeletProfessionalOptions) AddTips(section *help.Section)

type PrintFunc

type PrintFunc func(format string, a ...interface{}) error

Jump to

Keyboard shortcuts

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