meta

package
v1.3.11-beta.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2016 License: Apache-2.0 Imports: 0 Imported by: 0

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.0

func ElectionPath(frameworkName string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL