Documentation ¶
Overview ¶
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 ¶
View Source
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" 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" StaticPodFilenameKey = "k8s.mesosphere.io/staticPodFilename" )
kubernetes api object annotations
View Source
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
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.