install

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2025 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Package install wraps install steps.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APTAddRepo

func APTAddRepo(opt APTAddRepoOptions) error

func APTHold

func APTHold(packages ...string) error

func APTInstall

func APTInstall(packages ...string) error

func APTKey

func APTKey(keyName, keyURL string) error

func APTUpdate

func APTUpdate() error

func APTUpgrade

func APTUpgrade() error

func CheckTCPPortIsFree

func CheckTCPPortIsFree(n int) error

func CiliumInstall

func CiliumInstall(opt CiliumInstallOptions) error

func ConfigureContainerd

func ConfigureContainerd() error

func ConfigureKernelParameters

func ConfigureKernelParameters(name string, params map[string]any) error

func DefaultIngress added in v0.6.0

func DefaultIngress() error

func DisableSwap

func DisableSwap() error

DisableSwap disables swap on node.

func GetDefaultGatewayIP

func GetDefaultGatewayIP() (string, error)

func HelmAddRepo

func HelmAddRepo(name, url string) error

func HelmUpgrade

func HelmUpgrade(opt HelmUpgradeOptions) error

func HetznerCloudInstall added in v0.5.0

func HetznerCloudInstall() error

func InstallBinary

func InstallBinary(bin Binary) error

InstallBinary installs a binary to machine.

func KubeadmInit

func KubeadmInit(opts KubeadmInitOptions) error

func KubeadmJoin

func KubeadmJoin(controlPlaneNodeInternalIP string) error

func KubectlApply

func KubectlApply(opt KubectlApplyOptions) error

func LoadKernelModules

func LoadKernelModules(name string, modules ...string) error

func Run

func Run() error

func Service added in v0.3.0

func Service(opt ServiceOptions) error

func SetupKubeconfig

func SetupKubeconfig() error

func Systemctl

func Systemctl(action, service string) error

Types

type APTAddRepoOptions

type APTAddRepoOptions struct {
	Name       string
	Arch       []string
	SignedBy   string
	URL        string
	Components []string
}

type Binary

type Binary struct {
	URL    string
	Name   string
	SHA256 string
}

type CiliumConfig

type CiliumConfig struct {
	K8sServiceHost string // 1.1.1.1
}

type CiliumInstallOptions

type CiliumInstallOptions struct {
	Version        string
	K8sServiceHost string
}

type HelmUpgradeOptions

type HelmUpgradeOptions struct {
	Version         string
	Name            string
	Install         bool
	Namespace       string
	CreateNamespace bool
	Chart           string
	Values          string
	Repo            string
	KubeConfig      string
}

type InitParams

type InitParams struct {
	Endpoint string `json:"endpoint"` // 1.2.3.4:6443
	Token    string `json:"token"`
	Hash     string `json:"hash"`
}

type KubeadmInitOptions

type KubeadmInitOptions struct {
	SkipPhases           []string
	PodNetworkCIDR       string
	ServiceCIDR          string
	ControlPlaneEndpoint string
	ExtraSans            []string
}

type KubectlApplyOptions

type KubectlApplyOptions struct {
	File       string
	Kubeconfig string
}

type Metric

type Metric struct {
	MTU int `json:"mtu"`
}

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
}

Jump to

Keyboard shortcuts

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