Documentation
¶
Index ¶
- func RunInitMasterChecks(cfg *kubeadmapi.MasterConfiguration) error
- func RunJoinNodeChecks(cfg *kubeadmapi.NodeConfiguration) error
- func RunResetCheck() error
- type DirAvailableCheck
- type FileAvailableCheck
- type HostnameCheck
- type HttpProxyCheck
- type InPathCheck
- type IsRootCheck
- type PortOpenCheck
- type PreFlightCheck
- type PreFlightError
- type ServiceCheck
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunInitMasterChecks ¶
func RunInitMasterChecks(cfg *kubeadmapi.MasterConfiguration) error
func RunJoinNodeChecks ¶
func RunJoinNodeChecks(cfg *kubeadmapi.NodeConfiguration) error
func RunResetCheck ¶
func RunResetCheck() error
Types ¶
type DirAvailableCheck ¶
type DirAvailableCheck struct {
Path string
}
DirAvailableCheck checks if the given directory either does not exist, or is empty.
type FileAvailableCheck ¶
type FileAvailableCheck struct {
Path string
}
FileAvailableCheck checks that the given file does not already exist.
type HostnameCheck ¶
type HostnameCheck struct{}
HostnameCheck checks if hostname match dns sub domain regex. If hostname doesn't match this regex, kubelet will not launch static pods like kube-apiserver/kube-controller-manager and so on.
type HttpProxyCheck ¶
type HttpProxyCheck struct {
Proto string
Host string
Port int
}
HttpProxyCheck checks if https connection to specific host is going to be done directly or over proxy. If proxy detected, it will return warning.
type InPathCheck ¶
type InPathCheck struct {
// contains filtered or unexported fields
}
InPathChecks checks if the given executable is present in the path.
type IsRootCheck ¶
type IsRootCheck struct {
// contains filtered or unexported fields
}
IsRootCheck verifies user is root
type PortOpenCheck ¶
type PortOpenCheck struct {
// contains filtered or unexported fields
}
PortOpenCheck ensures the given port is available for use.
type PreFlightCheck ¶
type PreFlightCheck interface {
Check() (warnings, errors []error)
}
PreFlightCheck validates the state of the system to ensure kubeadm will be successful as often as possilble.
type PreFlightError ¶
type PreFlightError struct {
Msg string
}
type ServiceCheck ¶
type ServiceCheck struct {
Service string
}
ServiceCheck verifies that the given service is enabled and active. If we do not detect a supported init system however, all checks are skipped and a warning is returned.