Add node's IP range cidr to NodeSpec

This commit is contained in:
Tomek Kulczynski
2015-02-16 13:53:00 +01:00
parent 28dd73dd8c
commit 09c955f94e
6 changed files with 14 additions and 1 deletions

View File

@@ -778,6 +778,9 @@ type EndpointsList struct {
type NodeSpec struct {
// Capacity represents the available resources of a node
Capacity ResourceList `json:"capacity,omitempty"`
// PodCIDR represents the pod IP range assigned to the node
// Note: assigning IP ranges to nodes might need to be revisited when we support migratable IPs.
PodCIDR string `json:"cidr,omitempty"`
}
// NodeStatus is information about the current status of a node.
@@ -844,7 +847,7 @@ const (
// ResourceList is a set of (resource name, quantity) pairs.
type ResourceList map[ResourceName]resource.Quantity
// Node is a worker node in Kubernetenes
// Node is a worker node in Kubernetes
// The name of the node according to etcd is in ObjectMeta.Name.
type Node struct {
TypeMeta `json:",inline"`