kubeadm

package
v0.0.0-...-ff55af6 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const APIServerPort = 6443

APIServerPort is the expected default APIServerPort on the control plane node(s) https://kubernetes.io/docs/reference/access-authn-authz/controlling-access/#api-server-ports-and-ips

View Source
const ConfigTemplateAlphaV2 = `` /* 2288-byte string literal not displayed */

ConfigTemplateAlphaV2 is the kubadm config template for v1alpha2

NOTE: this is the v1.11 version of this API, breaking changes occurred in v1.12 vs v1.11, but v1.12 also has v1alpha3 which we use instead

see: https://github.com/kubernetes/kubernetes/tree/release-1.11/cmd/kubeadm/app/apis/kubeadm/v1alpha2

View Source
const ConfigTemplateAlphaV3 = `` /* 2632-byte string literal not displayed */

ConfigTemplateAlphaV3 is the kubadm config template for API version v1alpha3

View Source
const ConfigTemplateBetaV1 = `` /* 2635-byte string literal not displayed */

ConfigTemplateBetaV1 is the kubadm config template for API version v1beta1

View Source
const ConfigTemplateBetaV2 = `` /* 2634-byte string literal not displayed */

ConfigTemplateBetaV2 is the kubadm config template for API version v1beta2

View Source
const ObjectName = "config"

ObjectName is the name every generated object will have I.E. `metadata:\nname: config`

View Source
const Token = "abcdef.0123456789abcdef"

Token defines a dummy, well known token for automating TLS bootstrap process

Variables

This section is empty.

Functions

func Config

func Config(data ConfigData) (config string, err error)

Config returns a kubeadm config generated from config data, in particular the kubernetes version

Types

type ConfigData

type ConfigData struct {
	ClusterName       string
	KubernetesVersion string
	// The ControlPlaneEndpoint, that is the address of the external loadbalancer
	// if defined or the bootstrap node
	ControlPlaneEndpoint string
	// The Local API Server port
	APIBindPort int
	// The API server external listen IP (which we will port forward)
	APIServerAddress string
	// ControlPlane flag specifies the node belongs to the control plane
	ControlPlane bool
	// The main IP address of the node
	NodeAddress string
	// The Token for TLS bootstrap
	Token string
	// The subnet used for pods
	PodSubnet string
	// The subnet used for services
	ServiceSubnet string
	// IPv4 values take precedence over IPv6 by default, if true set IPv6 default values
	IPv6 bool
}

ConfigData is supplied to the kubeadm config template, with values populated by the cluster package

Jump to

Keyboard shortcuts

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