Documentation
¶
Index ¶
- func RunChecks(checks []Checker, ww io.Writer) error
- func RunInitMasterChecks(cfg *kubeadmapi.MasterConfiguration) error
- func RunJoinNodeChecks(cfg *kubeadmapi.NodeConfiguration) error
- func RunRootCheckOnly() error
- func TryStartKubelet()
- type Checker
- type DirAvailableCheck
- type Error
- type ExternalEtcdVersionCheck
- type FileAvailableCheck
- type FileContentCheck
- type FileExistingCheck
- type FirewalldCheck
- type HTTPProxyCheck
- type HostnameCheck
- type InPathCheck
- type IsRootCheck
- type PortOpenCheck
- type ServiceCheck
- type SystemVerificationCheck
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunChecks ¶ added in v1.6.0
func RunChecks(checks []Checker, ww io.Writer) error
RunChecks runs each check, displays it's warnings/errors, and once all are processed will exit if any errors occurred.
func RunInitMasterChecks ¶
func RunInitMasterChecks(cfg *kubeadmapi.MasterConfiguration) error
func RunJoinNodeChecks ¶
func RunJoinNodeChecks(cfg *kubeadmapi.NodeConfiguration) error
func RunRootCheckOnly ¶ added in v1.6.0
func RunRootCheckOnly() error
func TryStartKubelet ¶ added in v1.6.0
func TryStartKubelet()
Types ¶
type Checker ¶ added in v1.6.0
type Checker interface {
Check() (warnings, errors []error)
}
Checker validates the state of the system to ensure kubeadm will be successful as often as possilble.
type DirAvailableCheck ¶
type DirAvailableCheck struct {
Path string
}
DirAvailableCheck checks if the given directory either does not exist, or is empty.
type ExternalEtcdVersionCheck ¶ added in v1.6.0
type ExternalEtcdVersionCheck struct {
Etcd kubeadmapi.Etcd
}
ExternalEtcdVersionCheck checks if version of external etcd meets the demand of kubeadm
type FileAvailableCheck ¶
type FileAvailableCheck struct {
Path string
}
FileAvailableCheck checks that the given file does not already exist.
type FileContentCheck ¶ added in v1.6.0
type FileContentCheck struct {
Path string
Content []byte
}
FileContentCheck checks that the given file contains the string Content.
type FileExistingCheck ¶ added in v1.6.0
type FileExistingCheck struct {
Path string
}
FileExistingCheck checks that the given file does not already exist.
type FirewalldCheck ¶ added in v1.6.0
type FirewalldCheck struct {
// contains filtered or unexported fields
}
FirewalldCheck checks if firewalld is enabled or active, and if so outputs a warning.
type HTTPProxyCheck ¶ added in v1.6.0
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 HostnameCheck ¶
type HostnameCheck struct {
// contains filtered or unexported fields
}
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 InPathCheck ¶
type InPathCheck struct {
// contains filtered or unexported fields
}
InPathCheck checks if the given executable is present in the path
type PortOpenCheck ¶
type PortOpenCheck struct {
// contains filtered or unexported fields
}
PortOpenCheck ensures the given port is available for use.
type ServiceCheck ¶
type ServiceCheck struct {
Service string
CheckIfActive bool
}
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.
type SystemVerificationCheck ¶ added in v1.6.0
type SystemVerificationCheck struct{}