package meta

import "k8s.io/kubernetes/contrib/mesos/pkg/scheduler/meta"

Package meta defines framework constants used as keys in k8s annotations that are attached to k8s pods. The scheduler uses some of these annotations for reconciliation upon failover. Other annotations are used as part of the host-to-pod port-mapping implementation understood by the k8s-mesos scheduler and custom endpoints-controller implementation.

Index

Constants

const (
	// Namespace is the label and annotation namespace for mesos keys
	Namespace = "k8s.mesosphere.io"

	// the BindingHostKey pod annotation marks a pod as being assigned to a Mesos
	// slave. It is already or will be launched on the slave as a task.
	BindingHostKey = Namespace + "/bindingHost"

	TaskIdKey                = Namespace + "/taskId"
	SlaveIdKey               = Namespace + "/slaveId"
	OfferIdKey               = Namespace + "/offerId"
	ExecutorIdKey            = Namespace + "/executorId"
	ExecutorResourcesKey     = Namespace + "/executorResources"
	PortMappingKey           = Namespace + "/portMapping"
	PortMappingKeyPrefix     = Namespace + "/port_"
	PortMappingKeyFormat     = PortMappingKeyPrefix + "%s_%d"
	PortNameMappingKeyPrefix = Namespace + "/portName_"
	PortNameMappingKeyFormat = PortNameMappingKeyPrefix + "%s_%s"
	ContainerPortKeyFormat   = Namespace + "/containerPort_%s_%s_%d"
	StaticPodFilenameKey     = Namespace + "/staticPodFilename"
	RolesKey                 = Namespace + "/roles"
)

kubernetes api object annotations

const StoreChroot = "/k8sm"

Functions

func ElectionPath

func ElectionPath(frameworkName string) string

Source Files

annotations.go doc.go store.go

Version
v1.4.7
Published
Dec 10, 2016
Platform
linux/amd64
Last checked
1 minute ago

Tools for package owners.