// NodeReachable means the node can be reached (in the sense of HTTP connection) from node controller.
NodeReachableNodeConditionKind="Reachable"
// NodeReady means the node returns StatusOK for HTTP health check.
NodeReadyNodeConditionKind="Ready"
)
typeNodeConditionStatusstring
// These are valid condition status. "ConditionFull" means node is in the condition;
// "ConditionNone" means node is not in the condition; "ConditionUnknown" means kubernetes
// can't decide if node is in the condition or not. In the future, we could add other
// intermediate conditions, e.g. ConditionDegraded.
const(
ConditionFullNodeConditionStatus="Full"
ConditionNoneNodeConditionStatus="None"
ConditionUnknownNodeConditionStatus="Unknown"
)
typeNodeConditionstruct{
KindNodeConditionKind`json:"kind" description:"kind of the condition, one of reachable, ready"`
StatusNodeConditionStatus`json:"status" description:"status of the condition, one of full, none, unknown"`
LastTransitionTimeutil.Time`json:"lastTransitionTime,omitempty" description:"last time the condition transit from one status to another"`
Reasonstring`json:"reason,omitempty" description:"(brief) reason for the condition's last transition"`
Messagestring`json:"message,omitempty" description:"human readable message indicating details about last transition"`
}
// NodeResources represents resources on a Kubernetes system node
// NodeResources represents resources on a Kubernetes system node
// see https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/resources.md for more details.
// see https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/resources.md for more details.
typeNodeResourcesstruct{
typeNodeResourcesstruct{
...
@@ -520,6 +572,8 @@ type Minion struct {
...
@@ -520,6 +572,8 @@ type Minion struct {
HostIPstring`json:"hostIP,omitempty" description:"IP address of the node"`
HostIPstring`json:"hostIP,omitempty" description:"IP address of the node"`
// Resources available on the node
// Resources available on the node
NodeResourcesNodeResources`json:"resources,omitempty" description:"characterization of node resources"`
NodeResourcesNodeResources`json:"resources,omitempty" description:"characterization of node resources"`
// Status describes the current status of a node
StatusNodeStatus`json:"status,omitempty" description:"current status of node"`
// Labels for the node
// Labels for the node
Labelsmap[string]string`json:"labels,omitempty" description:"map of string keys and values that can be used to organize and categorize minions; labels of a minion assigned by the scheduler must match the scheduled pod's nodeSelector"`
Labelsmap[string]string`json:"labels,omitempty" description:"map of string keys and values that can be used to organize and categorize minions; labels of a minion assigned by the scheduler must match the scheduled pod's nodeSelector"`
// NodeReachable means the node can be reached (in the sense of HTTP connection) from node controller.
NodeReachableNodeConditionKind="Reachable"
// NodeReady means the node returns StatusOK for HTTP health check.
NodeReadyNodeConditionKind="Ready"
)
typeNodeConditionStatusstring
// These are valid condition status. "ConditionFull" means node is in the condition;
// "ConditionNone" means node is not in the condition; "ConditionUnknown" means kubernetes
// can't decide if node is in the condition or not. In the future, we could add other
// intermediate conditions, e.g. ConditionDegraded.
const(
ConditionFullNodeConditionStatus="Full"
ConditionNoneNodeConditionStatus="None"
ConditionUnknownNodeConditionStatus="Unknown"
)
typeNodeConditionstruct{
KindNodeConditionKind`json:"kind" description:"kind of the condition, one of reachable, ready"`
StatusNodeConditionStatus`json:"status" description:"status of the condition, one of full, none, unknown"`
LastTransitionTimeutil.Time`json:"lastTransitionTime,omitempty" description:"last time the condition transit from one status to another"`
Reasonstring`json:"reason,omitempty" description:"(brief) reason for the condition's last transition"`
Messagestring`json:"message,omitempty" description:"human readable message indicating details about last transition"`
}
// NodeResources represents resources on a Kubernetes system node
// NodeResources represents resources on a Kubernetes system node
// see https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/resources.md for more details.
// see https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/resources.md for more details.
typeNodeResourcesstruct{
typeNodeResourcesstruct{
...
@@ -485,6 +537,8 @@ type Minion struct {
...
@@ -485,6 +537,8 @@ type Minion struct {
HostIPstring`json:"hostIP,omitempty" description:"IP address of the node"`
HostIPstring`json:"hostIP,omitempty" description:"IP address of the node"`
// Resources available on the node
// Resources available on the node
NodeResourcesNodeResources`json:"resources,omitempty" description:"characterization of node resources"`
NodeResourcesNodeResources`json:"resources,omitempty" description:"characterization of node resources"`
// Status describes the current status of a node
StatusNodeStatus`json:"status,omitempty" description:"current status of node"`
// Labels for the node
// Labels for the node
Labelsmap[string]string`json:"labels,omitempty" description:"map of string keys and values that can be used to organize and categorize minions; labels of a minion assigned by the scheduler must match the scheduled pod's nodeSelector"`
Labelsmap[string]string`json:"labels,omitempty" description:"map of string keys and values that can be used to organize and categorize minions; labels of a minion assigned by the scheduler must match the scheduled pod's nodeSelector"`