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 (
	// 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 = "k8s.mesosphere.io/bindingHost"

	TaskIdKey                = "k8s.mesosphere.io/taskId"
	SlaveIdKey               = "k8s.mesosphere.io/slaveId"
	OfferIdKey               = "k8s.mesosphere.io/offerId"
	ExecutorIdKey            = "k8s.mesosphere.io/executorId"
	PortMappingKeyPrefix     = "k8s.mesosphere.io/port_"
	PortMappingKeyFormat     = PortMappingKeyPrefix + "%s_%d"
	PortNameMappingKeyPrefix = "k8s.mesosphere.io/portName_"
	PortNameMappingKeyFormat = PortNameMappingKeyPrefix + "%s_%s"
	ContainerPortKeyFormat   = "k8s.mesosphere.io/containerPort_%s_%s_%d"
)

kubernetes api object annotations

const (
	//TODO(jdef) this should also be a format instead of a fixed path
	FrameworkIDKey        = "/mesos/k8sm/frameworkid"
	DefaultElectionFormat = "/mesos/k8sm/framework/%s/leader"
)

keys for things that we store

Source Files

annotations.go doc.go store.go

Version
v1.1.9-beta.0
Published
Feb 23, 2016
Platform
js/wasm
Last checked
32 minutes ago

Tools for package owners.