k3s

package
v0.8.15 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: MIT Imports: 9 Imported by: 1

Documentation

Overview

Package k3s

Copyright © 2023 zcubbs https://github.com/zcubbs

Package k3s.

Copyright © 2023 zcubbs https://github.com/zcubbs

Index

Constants

View Source
const ConfigFileLocation = "/etc/rancher/k3s"
View Source
const InstallScript = "/tmp/k3s-install.sh"
View Source
const UninstallScript = "/usr/local/bin/k3s-uninstall.sh"

Variables

This section is empty.

Functions

func Install

func Install(config Config, debug bool) error

func InstallK9s

func InstallK9s(debug bool) error

func PrintKubeconfig added in v0.4.0

func PrintKubeconfig(kubeconfig, serverUrl string) error

func Uninstall

func Uninstall(debug bool) error

func WriteTemplateToFile

func WriteTemplateToFile(templateStr string, config Config, outputFilePath string) error

Types

type Config

type Config struct {
	Version                 string
	Disable                 []string
	TlsSan                  []string
	DataDir                 string
	DefaultLocalStoragePath string
	WriteKubeconfigMode     string
	HttpsListenPort         string
	ResolvConfPath          string
}

Jump to

Keyboard shortcuts

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