kubernetesk8s.io/kubernetes/cmd/kubeadm/app/util/staticpod Index | Files

package staticpod

import "k8s.io/kubernetes/cmd/kubeadm/app/util/staticpod"

Index

Functions

func ComponentPod

func ComponentPod(container v1.Container, volumes []v1.Volume) v1.Pod

ComponentPod returns a Pod object from the container and volume specifications

func ComponentProbe

func ComponentProbe(port int, path string, scheme v1.URIScheme) *v1.Probe

ComponentProbe is a helper function building a ready v1.Probe object from some simple parameters

func ComponentResources

func ComponentResources(cpu string) v1.ResourceRequirements

ComponentResources returns the v1.ResourceRequirements object needed for allocating a specified amount of the CPU

func GetExtraParameters

func GetExtraParameters(overrides map[string]string, defaults map[string]string) []string

GetExtraParameters builds a list of flag arguments two string-string maps, one with default, base commands and one with overrides

func NewVolume

func NewVolume(name, path string, pathType *v1.HostPathType) v1.Volume

NewVolume creates a v1.Volume with a hostPath mount to the specified location

func NewVolumeMount

func NewVolumeMount(name, path string, readOnly bool) v1.VolumeMount

NewVolumeMount creates a v1.VolumeMount to the specified location

func WriteStaticPodToDisk

func WriteStaticPodToDisk(componentName, manifestDir string, pod v1.Pod) error

WriteStaticPodToDisk writes a static pod file to disk

Source Files

utils.go

Version
v1.8.0
Published
Sep 28, 2017
Platform
js/wasm
Imports
10 packages
Last checked
9 minutes ago

Tools for package owners.