Namestring`json:"name" description:"name of the container; must be a DNS_LABEL and unique within the pod; cannot be updated"`
Namestring`json:"name" description:"name of the container; must be a DNS_LABEL and unique within the pod; cannot be updated"`
// Optional.
// Optional.
Imagestring`json:"image,omitempty" description:"Docker image name; see http://releases.k8s.io/HEAD/docs/user-guide/images.md"`
Imagestring`json:"image,omitempty" description:"Docker image name; see http://releases.k8s.io/HEAD/docs/user-guide/images.md"`
Ports[]ContainerPort`json:"ports"`
}
typeContainerPortstruct{
Namestring`json:"name"`
ContainerPortint32`json:"containerPort"`
Protocolstring`json:"protocol"`
}
}
// Service is a named abstraction of software service (for example, mysql) consisting of local port
// Service is a named abstraction of software service (for example, mysql) consisting of local port
...
@@ -235,3 +243,35 @@ type NodeList struct {
...
@@ -235,3 +243,35 @@ type NodeList struct {
Items[]Node`json:"items" description:"list of nodes"`
Items[]Node`json:"items" description:"list of nodes"`
}
}
typePodstruct{
ObjectMeta`json:"metadata,omitempty" description:"standard object metadata; see http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata"`
PodStatus`json:"status,omitempty" description:"pod status object; see http://kubernetes.io/v1.1/docs/api-reference/v1/definitions.html#_v1_podstatus"`
PodSpec`json:"spec,omitempty" description:"pod spec object; see http://kubernetes.io/v1.1/docs/api-reference/v1/definitions.html#_v1_podspec"`
}
typepodEventstruct{
EventTypeEventType`json:"type"`
Pod*Pod`json:"object"`
}
typePodListstruct{
ListMeta`json:"metadata,omitempty" description:"standard list metadata; see http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata"`
Items[]Pod`json:"items" description:"list of pods"`
}
typePodStatusstruct{
Phasestring`json:"phase" description:"Current condition of the pod. More info: http://kubernetes.io/v1.1/docs/user-guide/pod-states.html#pod-phase"`
PodIPstring`json:"podIP" description:"IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated."`
Conditions[]PodCondition`json:"conditions" description:"Current service state of pod."`
}
typePodSpecstruct{
Containers[]Container`json:"containers" description:"list of containers, see http://kubernetes.io/v1.1/docs/api-reference/v1/definitions.html#_v1_container"`
}
typePodConditionstruct{
Typestring`json:"type" description:"Type is the type of the condition. Currently only Ready."`
Statusstring`json:"status" description:"Status is the status of the condition. Can be True, False, Unknown."`