Changes to core types for introducing PodTemplateSpec

This commit is contained in:
Clayton Coleman
2014-11-06 21:06:58 -05:00
parent 9f15e96bd6
commit e3be1e9e14
3 changed files with 79 additions and 29 deletions

View File

@@ -746,6 +746,8 @@ type PodSpec struct {
Volumes []Volume `json:"volumes" yaml:"volumes"`
Containers []Container `json:"containers" yaml:"containers"`
RestartPolicy RestartPolicy `json:"restartPolicy,omitempty" yaml:"restartPolicy,omitempty"`
// NodeSelector is a selector which must be true for the pod to fit on a node
NodeSelector map[string]string `json:"nodeSelector,omitempty" yaml:"nodeSelector,omitempty"`
}
// BoundPod is a collection of containers that should be run on a host. A BoundPod