kubecerts

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AdminKubeConfigFileName             = "admin"
	ControllerManagerKubeConfigFileName = "controller-manager"
	KubeletKubeConfigFileName           = "kubelet"
	SchedulerKubeConfigFileName         = "scheduler"
	ClusterName                         = "kubernetes"
)

Variables

This section is empty.

Functions

func CreateJoinControlPlaneKubeConfigFiles

func CreateJoinControlPlaneKubeConfigFiles(dir, nodeName, controlPlaneEndpoint string, certificateValidity time.Duration) map[string]string

func CreatePKIAssets

func CreatePKIAssets(apiServerAddress string, dir string, node Node)

func CreateWorkerKubeConfigFile

func CreateWorkerKubeConfigFile(dir, nodeName, controlPlaneEndpoint string, certificateValidity time.Duration) map[string]string

Types

type Node

type Node struct {
	Name string
	Host string

	ApiServer string
	SvcCIDR   string

	CertificateValidity time.Duration

	SANS []string
}

Jump to

Keyboard shortcuts

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