kubeadm

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Overview

Package kubeadm contains kubeadm related constants and configuration

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 ConfigTemplateAlphaV1orV2 = `` /* 948-byte string literal not displayed */

ConfigTemplateAlphaV1orV2 is the kubadm config template for API versions v1alpha1 and v1alpha2

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

ConfigTemplateAlphaV3 is the kubadm config template for API version v1alpha3

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

ConfigTemplateBetaV1 is the kubadm config template for API version v1beta1

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 API Server port
	APIBindPort int
	// The Token for TLS bootstrap
	Token string
	// DerivedConfigData is populated by Derive()
	// These auto-generated fields are available to Config templates,
	// but not meant to be set by hand
	DerivedConfigData
}

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

func (*ConfigData) Derive

func (c *ConfigData) Derive()

Derive automatically derives DockerStableTag if not specified

type DerivedConfigData

type DerivedConfigData struct {
	// DockerStableTag is automatically derived from KubernetesVersion
	DockerStableTag string
}

DerivedConfigData fields are automatically derived by ConfigData.Derive if they are not specified / zero valued

Jump to

Keyboard shortcuts

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