kubeadm

package
v0.76.5 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AuditPolicyPath is the fixed location where kubernetes cluster audit policy files are placed.
	AuditPolicyPath              = "/etc/kubernetes/policies/audit-policy.yaml"
	EncryptionProviderConfigPath = "/etc/kubernetes/policies/encryption-provider-config.yaml"
	CSRCAPath                    = "/etc/kubernetes/pki/csr-ca.crt"
	CSRKeyPath                   = "/etc/kubernetes/pki/csr-ca.key"
)

Variables

This section is empty.

Functions

func GetClusterVersion

func GetClusterVersion(platform *platform.Platform) (string, error)

func GetFilesToMountForPrimary added in v0.17.14

func GetFilesToMountForPrimary(platform *platform.Platform) (map[string]string, error)

func GetFilesToMountForSecondary added in v0.17.14

func GetFilesToMountForSecondary(platform *platform.Platform) (map[string]string, error)

func GetNodeVersion

func GetNodeVersion(platform *platform.Platform, node v1.Node) string

func GetOrCreateBootstrapToken

func GetOrCreateBootstrapToken(platform *platform.Platform, expiry time.Duration) (string, error)

func NewClusterConfig

func NewClusterConfig(cfg *platform.Platform) api.ClusterConfiguration

NewClusterConfig constructs a default new ClusterConfiguration from a given Platform config

func NewControlPlaneJoinConfiguration

func NewControlPlaneJoinConfiguration(cfg *platform.Platform) ([]byte, error)

func NewInitConfig

func NewInitConfig(cfg *platform.Platform) api.InitConfiguration

func NewJoinConfiguration

func NewJoinConfiguration(cfg *platform.Platform, node types.VM) ([]byte, error)

func TestAudit

func TestAudit(p *platform.Platform, tr *console.TestResults)

Test k8s auditing functionality.

func TestEncryption

func TestEncryption(p *platform.Platform, tr *console.TestResults)

Test k8s encryption provider functionality.

func UploadControlPlaneCerts

func UploadControlPlaneCerts(platform *platform.Platform) (string, error)

func UploadEtcdCerts

func UploadEtcdCerts(platform *platform.Platform) (*certs.Certificate, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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