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 ( // 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
View Source
const StoreChroot = "/k8sm"
Variables ¶
This section is empty.
Functions ¶
func ElectionPath ¶ added in v1.2.3
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.