kubecerts

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func CreateJoinControlPlaneKubeConfigFiles

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

func CreatePKIAssets

func CreatePKIAssets(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