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
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)
Click to show internal directories.
Click to hide internal directories.