Documentation
¶
Overview ¶
Package install wraps install steps.
Index ¶
- func APTAddRepo(opt APTAddRepoOptions) error
- func APTHold(packages ...string) error
- func APTInstall(packages ...string) error
- func APTKey(keyName, keyURL string) error
- func APTUpdate() error
- func APTUpgrade() error
- func CheckTCPPortIsFree(n int) error
- func CiliumInstall(opt CiliumInstallOptions) error
- func ConfigureContainerd() error
- func ConfigureKernelParameters(name string, params map[string]any) error
- func DefaultIngress() error
- func DisableSwap() error
- func GetDefaultGatewayIP() (string, error)
- func HelmAddRepo(name, url string) error
- func HelmUpgrade(opt HelmUpgradeOptions) error
- func HetznerCloudInstall() error
- func InstallBinary(bin Binary) error
- func KubeadmInit(opts KubeadmInitOptions) error
- func KubeadmJoin(controlPlaneNodeInternalIP string) error
- func KubectlApply(opt KubectlApplyOptions) error
- func LoadKernelModules(name string, modules ...string) error
- func Run() error
- func Service(opt ServiceOptions) error
- func SetupKubeconfig() error
- func Systemctl(action, service string) error
- type APTAddRepoOptions
- type Binary
- type CiliumConfig
- type CiliumInstallOptions
- type HelmUpgradeOptions
- type InitParams
- type KubeadmInitOptions
- type KubectlApplyOptions
- type Metric
- type Route
- type ServiceOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APTAddRepo ¶
func APTAddRepo(opt APTAddRepoOptions) error
func APTInstall ¶
func APTUpgrade ¶
func APTUpgrade() error
func CheckTCPPortIsFree ¶
func CiliumInstall ¶
func CiliumInstall(opt CiliumInstallOptions) error
func ConfigureContainerd ¶
func ConfigureContainerd() error
func DefaultIngress ¶ added in v0.6.0
func DefaultIngress() error
func GetDefaultGatewayIP ¶
func HelmAddRepo ¶
func HelmUpgrade ¶
func HelmUpgrade(opt HelmUpgradeOptions) error
func HetznerCloudInstall ¶ added in v0.5.0
func HetznerCloudInstall() error
func InstallBinary ¶
InstallBinary installs a binary to machine.
func KubeadmInit ¶
func KubeadmInit(opts KubeadmInitOptions) error
func KubeadmJoin ¶
func KubectlApply ¶
func KubectlApply(opt KubectlApplyOptions) error
func LoadKernelModules ¶
func Service ¶ added in v0.3.0
func Service(opt ServiceOptions) error
func SetupKubeconfig ¶
func SetupKubeconfig() error
Types ¶
type APTAddRepoOptions ¶
type CiliumConfig ¶
type CiliumConfig struct {
K8sServiceHost string // 1.1.1.1
}
type CiliumInstallOptions ¶
type HelmUpgradeOptions ¶
type InitParams ¶
type KubeadmInitOptions ¶
type KubectlApplyOptions ¶
type Route ¶
type Route struct {
Dst string `json:"dst"`
Gateway string `json:"gateway,omitempty"`
Dev string `json:"dev"`
Protocol string `json:"protocol"`
PrefSrc string `json:"prefsrc"`
Metric int `json:"metric"`
Flags []any `json:"flags"`
Metrics []Metric `json:"metrics,omitempty"`
Scope string `json:"scope,omitempty"`
}
type ServiceOptions ¶ added in v0.3.0
type ServiceOptions struct {
Join bool
}
Click to show internal directories.
Click to hide internal directories.