Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
4314 lines (4314 sloc) 255 KB
{
"type": "object",
"$schema": "http://json-schema.org/schema#",
"x-kubernetes-group-version-kind": [
{
"Kind": "Deployment",
"Version": "v1beta1",
"Group": "apps"
}
],
"description": "Deployment enables declarative updates for Pods and ReplicaSets.",
"properties": {
"status": {
"description": "DeploymentStatus is the most recently observed status of the Deployment.",
"properties": {
"replicas": {
"type": "integer",
"description": "Total number of non-terminated pods targeted by this deployment (their labels match the selector).",
"format": "int32"
},
"observedGeneration": {
"type": "integer",
"description": "The generation observed by the deployment controller.",
"format": "int64"
},
"updatedReplicas": {
"type": "integer",
"description": "Total number of non-terminated pods targeted by this deployment that have the desired template spec.",
"format": "int32"
},
"availableReplicas": {
"type": "integer",
"description": "Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.",
"format": "int32"
},
"unavailableReplicas": {
"type": "integer",
"description": "Total number of unavailable pods targeted by this deployment.",
"format": "int32"
},
"readyReplicas": {
"type": "integer",
"description": "Total number of ready pods targeted by this deployment.",
"format": "int32"
},
"conditions": {
"items": {
"required": [
"type",
"status"
],
"description": "DeploymentCondition describes the state of a deployment at a certain point.",
"properties": {
"status": {
"type": "string",
"description": "Status of the condition, one of True, False, Unknown."
},
"lastUpdateTime": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"lastTransitionTime": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"reason": {
"type": [
"string",
"null"
],
"description": "The reason for the condition's last transition."
},
"message": {
"type": [
"string",
"null"
],
"description": "A human readable message indicating details about the transition."
},
"type": {
"type": "string",
"description": "Type of deployment condition."
}
}
},
"type": [
"array",
"null"
],
"description": "Represents the latest available observations of a deployment's current state."
}
}
},
"kind": {
"type": [
"string",
"null"
],
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds"
},
"spec": {
"required": [
"template"
],
"description": "DeploymentSpec is the specification of the desired behavior of the Deployment.",
"properties": {
"progressDeadlineSeconds": {
"type": "integer",
"description": "The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Once autoRollback is implemented, the deployment controller will automatically rollback failed deployments. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s.",
"format": "int32"
},
"replicas": {
"type": "integer",
"description": "Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.",
"format": "int32"
},
"strategy": {
"description": "DeploymentStrategy describes how to replace existing pods with new ones.",
"properties": {
"rollingUpdate": {
"description": "Spec to control the desired behavior of rolling update.",
"properties": {
"maxSurge": {
"oneOf": [
{
"type": [
"string",
"null"
]
},
{
"type": "integer"
}
]
},
"maxUnavailable": {
"oneOf": [
{
"type": [
"string",
"null"
]
},
{
"type": "integer"
}
]
}
}
},
"type": {
"type": [
"string",
"null"
],
"description": "Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate."
}
}
},
"paused": {
"type": "boolean",
"description": "Indicates that the deployment is paused."
},
"rollbackTo": {
"properties": {
"revision": {
"type": "integer",
"description": "The revision to rollback to. If set to 0, rollbck to the last revision.",
"format": "int64"
}
}
},
"template": {
"description": "PodTemplateSpec describes the data a pod should have when created from a template",
"properties": {
"spec": {
"required": [
"containers"
],
"description": "PodSpec is a description of a pod.",
"properties": {
"dnsPolicy": {
"type": [
"string",
"null"
],
"description": "Set DNS policy for containers within the pod. One of 'ClusterFirstWithHostNet', 'ClusterFirst' or 'Default'. Defaults to \"ClusterFirst\". To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'."
},
"hostNetwork": {
"type": "boolean",
"description": "Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false."
},
"restartPolicy": {
"type": [
"string",
"null"
],
"description": "Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: http://kubernetes.io/docs/user-guide/pod-states#restartpolicy"
},
"automountServiceAccountToken": {
"type": "boolean",
"description": "AutomountServiceAccountToken indicates whether a service account token should be automatically mounted."
},
"securityContext": {
"description": "PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext.",
"properties": {
"runAsNonRoot": {
"type": "boolean",
"description": "Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."
},
"fsGroup": {
"type": "integer",
"description": "A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\n\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw----\n\nIf unset, the Kubelet will not modify the ownership and permissions of any volume.",
"format": "int64"
},
"seLinuxOptions": {
"description": "SELinuxOptions are the labels to be applied to the container",
"properties": {
"role": {
"type": [
"string",
"null"
],
"description": "Role is a SELinux role label that applies to the container."
},
"type": {
"type": [
"string",
"null"
],
"description": "Type is a SELinux type label that applies to the container."
},
"user": {
"type": [
"string",
"null"
],
"description": "User is a SELinux user label that applies to the container."
},
"level": {
"type": [
"string",
"null"
],
"description": "Level is SELinux level label that applies to the container."
}
}
},
"runAsUser": {
"type": "integer",
"description": "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container.",
"format": "int64"
},
"supplementalGroups": {
"items": {
"type": "integer",
"format": "int64"
},
"type": [
"array",
"null"
],
"description": "A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container."
}
}
},
"nodeName": {
"type": [
"string",
"null"
],
"description": "NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements."
},
"hostname": {
"type": [
"string",
"null"
],
"description": "Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value."
},
"serviceAccount": {
"type": [
"string",
"null"
],
"description": "DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead."
},
"nodeSelector": {
"additionalProperties": {
"type": [
"string",
"null"
]
},
"type": "object",
"description": "NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: http://kubernetes.io/docs/user-guide/node-selection/README"
},
"affinity": {
"description": "Affinity is a group of affinity scheduling rules.",
"properties": {
"podAffinity": {
"description": "Pod affinity is a group of inter pod affinity scheduling rules.",
"properties": {
"requiredDuringSchedulingIgnoredDuringExecution": {
"items": {
"description": "Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key <topologyKey> tches that of any node on which a pod of the set of pods is running",
"properties": {
"labelSelector": {
"description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.",
"properties": {
"matchLabels": {
"additionalProperties": {
"type": [
"string",
"null"
]
},
"type": "object",
"description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed."
},
"matchExpressions": {
"items": {
"required": [
"key",
"operator"
],
"description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
"properties": {
"operator": {
"type": "string",
"description": "operator represents a key's relationship to a set of values. Valid operators ard In, NotIn, Exists and DoesNotExist."
},
"values": {
"items": {
"type": [
"string",
"null"
]
},
"type": [
"array",
"null"
],
"description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch."
},
"key": {
"type": "string",
"description": "key is the label key that the selector applies to."
}
}
},
"type": [
"array",
"null"
],
"description": "matchExpressions is a list of label selector requirements. The requirements are ANDed."
}
}
},
"namespaces": {
"items": {
"type": [
"string",
"null"
]
},
"type": [
"array",
"null"
],
"description": "namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\""
},
"topologyKey": {
"type": [
"string",
"null"
],
"description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. For PreferredDuringScheduling pod anti-affinity, empty topologyKey is interpreted as \"all topologies\" (\"all topologies\" here means all the topologyKeys indicated by scheduler command-line argument --failure-domains); for affinity and for RequiredDuringScheduling pod anti-affinity, empty topologyKey is not allowed."
}
}
},
"type": [
"array",
"null"
],
"description": "NOT YET IMPLEMENTED. TODO: Uncomment field once it is implemented. If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system will try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. RequiredDuringSchedulingRequiredDuringExecution []PodAffinityTerm `json:\"requiredDuringSchedulingRequiredDuringExecution,omitempty\"` If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."
},
"preferredDuringSchedulingIgnoredDuringExecution": {
"items": {
"required": [
"weight",
"podAffinityTerm"
],
"description": "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)",
"properties": {
"podAffinityTerm": {
"description": "Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key <topologyKey> tches that of any node on which a pod of the set of pods is running",
"properties": {
"labelSelector": {
"description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.",
"properties": {
"matchLabels": {
"additionalProperties": {
"type": [
"string",
"null"
]
},
"type": "object",
"description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed."
},
"matchExpressions": {
"items": {
"required": [
"key",
"operator"
],
"description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
"properties": {
"operator": {
"type": "string",
"description": "operator represents a key's relationship to a set of values. Valid operators ard In, NotIn, Exists and DoesNotExist."
},
"values": {
"items": {
"type": [
"string",
"null"
]
},
"type": [
"array",
"null"
],
"description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch."
},
"key": {
"type": "string",
"description": "key is the label key that the selector applies to."
}
}
},
"type": [
"array",
"null"
],
"description": "matchExpressions is a list of label selector requirements. The requirements are ANDed."
}
}
},
"namespaces": {
"items": {
"type": [
"string",
"null"
]
},
"type": [
"array",
"null"
],
"description": "namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\""
},
"topologyKey": {
"type": [
"string",
"null"
],
"description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. For PreferredDuringScheduling pod anti-affinity, empty topologyKey is interpreted as \"all topologies\" (\"all topologies\" here means all the topologyKeys indicated by scheduler command-line argument --failure-domains); for affinity and for RequiredDuringScheduling pod anti-affinity, empty topologyKey is not allowed."
}
}
},
"weight": {
"type": "integer",
"description": "weight associated with matching the corresponding podAffinityTerm, in the range 1-100.",
"format": "int32"
}
}
},
"type": [
"array",
"null"
],
"description": "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."
}
}
},
"nodeAffinity": {
"description": "Node affinity is a group of node affinity scheduling rules.",
"properties": {
"requiredDuringSchedulingIgnoredDuringExecution": {
"required": [
"nodeSelectorTerms"
],
"description": "A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms.",
"properties": {
"nodeSelectorTerms": {
"items": {
"required": [
"matchExpressions"
],
"description": "A null or empty node selector term matches no objects.",
"properties": {
"matchExpressions": {
"items": {
"required": [
"key",
"operator"
],
"description": "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
"properties": {
"operator": {
"type": "string",
"description": "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt."
},
"values": {
"items": {
"type": [
"string",
"null"
]
},
"type": [
"array",
"null"
],
"description": "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch."
},
"key": {
"type": "string",
"description": "The label key that the selector applies to."
}
}
},
"type": "array",
"description": "Required. A list of node selector requirements. The requirements are ANDed."
}
}
},
"type": "array",
"description": "Required. A list of node selector terms. The terms are ORed."
}
}
},
"preferredDuringSchedulingIgnoredDuringExecution": {
"items": {
"required": [
"weight",
"preference"
],
"description": "An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).",
"properties": {
"preference": {
"required": [
"matchExpressions"
],
"description": "A null or empty node selector term matches no objects.",
"properties": {
"matchExpressions": {
"items": {
"required": [
"key",
"operator"
],
"description": "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
"properties": {
"operator": {
"type": "string",
"description": "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt."
},
"values": {
"items": {
"type": [
"string",
"null"
]
},
"type": [
"array",
"null"
],
"description": "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch."
},
"key": {
"type": "string",
"description": "The label key that the selector applies to."
}
}
},
"type": "array",
"description": "Required. A list of node selector requirements. The requirements are ANDed."
}
}
},
"weight": {
"type": "integer",
"description": "Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.",
"format": "int32"
}
}
},
"type": [
"array",
"null"
],
"description": "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred."
}
}
},
"podAntiAffinity": {
"description": "Pod anti affinity is a group of inter pod anti affinity scheduling rules.",
"properties": {
"requiredDuringSchedulingIgnoredDuringExecution": {
"items": {
"description": "Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key <topologyKey> tches that of any node on which a pod of the set of pods is running",
"properties": {
"labelSelector": {
"description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.",
"properties": {
"matchLabels": {
"additionalProperties": {
"type": [
"string",
"null"
]
},
"type": "object",
"description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed."
},
"matchExpressions": {
"items": {
"required": [
"key",
"operator"
],
"description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
"properties": {
"operator": {
"type": "string",
"description": "operator represents a key's relationship to a set of values. Valid operators ard In, NotIn, Exists and DoesNotExist."
},
"values": {
"items": {
"type": [
"string",
"null"
]
},
"type": [
"array",
"null"
],
"description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch."
},
"key": {
"type": "string",
"description": "key is the label key that the selector applies to."
}
}
},
"type": [
"array",
"null"
],
"description": "matchExpressions is a list of label selector requirements. The requirements are ANDed."
}
}
},
"namespaces": {
"items": {
"type": [
"string",
"null"
]
},
"type": [
"array",
"null"
],
"description": "namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\""
},
"topologyKey": {
"type": [
"string",
"null"
],
"description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. For PreferredDuringScheduling pod anti-affinity, empty topologyKey is interpreted as \"all topologies\" (\"all topologies\" here means all the topologyKeys indicated by scheduler command-line argument --failure-domains); for affinity and for RequiredDuringScheduling pod anti-affinity, empty topologyKey is not allowed."
}
}
},
"type": [
"array",
"null"
],
"description": "NOT YET IMPLEMENTED. TODO: Uncomment field once it is implemented. If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system will try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. RequiredDuringSchedulingRequiredDuringExecution []PodAffinityTerm `json:\"requiredDuringSchedulingRequiredDuringExecution,omitempty\"` If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."
},
"preferredDuringSchedulingIgnoredDuringExecution": {
"items": {
"required": [
"weight",
"podAffinityTerm"
],
"description": "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)",
"properties": {
"podAffinityTerm": {
"description": "Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key <topologyKey> tches that of any node on which a pod of the set of pods is running",
"properties": {
"labelSelector": {
"description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.",
"properties": {
"matchLabels": {
"additionalProperties": {
"type": [
"string",
"null"
]
},
"type": "object",
"description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed."
},
"matchExpressions": {
"items": {
"required": [
"key",
"operator"
],
"description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
"properties": {
"operator": {
"type": "string",
"description": "operator represents a key's relationship to a set of values. Valid operators ard In, NotIn, Exists and DoesNotExist."
},
"values": {
"items": {
"type": [
"string",
"null"
]
},
"type": [
"array",
"null"
],
"description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch."
},
"key": {
"type": "string",
"description": "key is the label key that the selector applies to."
}
}
},
"type": [
"array",
"null"
],
"description": "matchExpressions is a list of label selector requirements. The requirements are ANDed."
}
}
},
"namespaces": {
"items": {
"type": [
"string",
"null"
]
},
"type": [
"array",
"null"
],
"description": "namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\""
},
"topologyKey": {
"type": [
"string",
"null"
],
"description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. For PreferredDuringScheduling pod anti-affinity, empty topologyKey is interpreted as \"all topologies\" (\"all topologies\" here means all the topologyKeys indicated by scheduler command-line argument --failure-domains); for affinity and for RequiredDuringScheduling pod anti-affinity, empty topologyKey is not allowed."
}
}
},
"weight": {
"type": "integer",
"description": "weight associated with matching the corresponding podAffinityTerm, in the range 1-100.",
"format": "int32"
}
}
},
"type": [
"array",
"null"
],
"description": "The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."
}
}
}
}
},
"tolerations": {
"items": {
"description": "The pod this Toleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>.",
"properties": {
"operator": {
"type": [
"string",
"null"
],
"description": "Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category."
},
"key": {
"type": [
"string",
"null"
],
"description": "Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys."
},
"tolerationSeconds": {
"type": "integer",
"description": "TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system.",
"format": "int64"
},
"effect": {
"type": [
"string",
"null"
],
"description": "Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute."
},
"value": {
"type": [
"string",
"null"
],
"description": "Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string."
}
}
},
"type": [
"array",
"null"
],
"description": "If specified, the pod's tolerations."
},
"subdomain": {
"type": [
"string",
"null"
],
"description": "If specified, the fully qualified Pod hostname will be \"<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>\". If not specified, the pod will not have a domainname at all."
},
"containers": {
"items": {
"required": [
"name"
],
"description": "A single application container that you want to run within a pod.",
"properties": {
"livenessProbe": {
"description": "Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.",
"properties": {
"httpGet": {
"required": [
"port"
],
"description": "HTTPGetAction describes an action based on HTTP Get requests.",
"properties": {
"path": {
"type": [
"string",
"null"
],
"description": "Path to access on the HTTP server."
},
"host": {
"type": [
"string",
"null"
],
"description": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead."
},
"scheme": {
"type": [
"string",
"null"
],
"description": "Scheme to use for connecting to the host. Defaults to HTTP."
},
"httpHeaders": {
"items": {
"required": [
"name",
"value"
],
"description": "HTTPHeader describes a custom header to be used in HTTP probes",
"properties": {
"name": {
"type": "string",
"description": "The header field name"
},
"value": {
"type": "string",
"description": "The header field value"
}
}
},
"type": [
"array",
"null"
],
"description": "Custom headers to set in the request. HTTP allows repeated headers."
},
"port": {
"oneOf": [
{
"type": [
"string",
"null"
]
},
{
"type": "integer"
}
]
}
}
},
"timeoutSeconds": {
"type": "integer",
"description": "Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: http://kubernetes.io/docs/user-guide/pod-states#container-probes",
"format": "int32"
},
"exec": {
"description": "ExecAction describes a \"run in container\" action.",
"properties": {
"command": {
"items": {
"type": [
"string",
"null"
]
},
"type": [
"array",
"null"
],
"description": "Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy."
}
}
},
"initialDelaySeconds": {
"type": "integer",
"description": "Number of seconds after the container has started before liveness probes are initiated. More info: http://kubernetes.io/docs/user-guide/pod-states#container-probes",
"format": "int32"
},
"tcpSocket": {
"required": [
"port"
],
"description": "TCPSocketAction describes an action based on opening a socket",
"properties": {
"port": {
"oneOf": [
{
"type": [
"string",
"null"
]
},
{
"type": "integer"
}
]
}
}
},
"periodSeconds": {
"type": "integer",
"description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.",
"format": "int32"
},
"successThreshold": {
"type": "integer",
"description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1.",
"format": "int32"
},
"failureThreshold": {
"type": "integer",
"description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.",
"format": "int32"
}
}
},
"args": {
"items": {
"type": [
"string",
"null"
]
},
"type": [
"array",
"null"
],
"description": "Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/containers#containers-and-commands"
},
"terminationMessagePath": {
"type": [
"string",
"null"
],
"description": "Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated."
},
"name": {
"type": "string",
"description": "Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated."
},
"envFrom": {
"items": {
"description": "EnvFromSource represents the source of a set of ConfigMaps",
"properties": {
"prefix": {
"type": [
"string",
"null"
],
"description": "An optional identifer to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER."
},
"configMapRef": {
"description": "ConfigMapEnvSource selects a ConfigMap to populate the environment variables with.\n\nThe contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables.",
"properties": {
"optional": {
"type": "boolean",
"description": "Specify whether the ConfigMap must be defined"
},
"name": {
"type": [
"string",
"null"
],
"description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names"
}
}
},
"secretRef": {
"description": "SecretEnvSource selects a Secret to populate the environment variables with.\n\nThe contents of the target Secret's Data field will represent the key-value pairs as environment variables.",
"properties": {
"optional": {
"type": "boolean",
"description": "Specify whether the Secret must be defined"
},
"name": {
"type": [
"string",
"null"
],
"description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names"
}
}
}
}
},
"type": [
"array",
"null"
],
"description": "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated."
},
"workingDir": {
"type": [
"string",
"null"
],
"description": "Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated."
},
"image": {
"type": [
"string",
"null"
],
"description": "Docker image name. More info: http://kubernetes.io/docs/user-guide/images"
},
"stdin": {
"type": "boolean",
"description": "Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false."
},
"volumeMounts": {
"items": {
"required": [
"name",
"mountPath"
],
"description": "VolumeMount describes a mounting of a Volume within a container.",
"properties": {
"readOnly": {
"type": "boolean",
"description": "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false."
},
"mountPath": {
"type": "string",
"description": "Path within the container at which the volume should be mounted. Must not contain ':'."
},
"subPath": {
"type": [
"string",
"null"
],
"description": "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root)."
},
"name": {
"type": "string",
"description": "This must match the Name of a Volume."
}
}
},
"type": [
"array",
"null"
],
"description": "Pod volumes to mount into the container's filesystem. Cannot be updated."
},
"tty": {
"type": "boolean",
"description": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false."
},
"terminationMessagePolicy": {
"type": [
"string",
"null"
],
"description": "Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated."
},
"ports": {
"items": {
"required": [
"containerPort"
],
"description": "ContainerPort represents a network port in a single container.",
"properties": {
"hostIP": {
"type": [
"string",
"null"
],
"description": "What host IP to bind the external port to."
},
"protocol": {
"type": [
"string",
"null"
],
"description": "Protocol for port. Must be UDP or TCP. Defaults to \"TCP\"."
},
"containerPort": {
"type": "integer",
"description": "Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.",
"format": "int32"
},
"name": {
"type": [
"string",
"null"
],
"description": "If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services."
},
"hostPort": {
"type": "integer",
"description": "Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this.",
"format": "int32"
}
}
},
"type": [
"array",
"null"
],
"description": "List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Cannot be updated."
},
"command": {
"items": {
"type": [
"string",
"null"
]
},
"type": [
"array",
"null"
],
"description": "Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/containers#containers-and-commands"
},
"env": {
"items": {
"required": [
"name"
],
"description": "EnvVar represents an environment variable present in a Container.",
"properties": {
"valueFrom": {
"description": "EnvVarSource represents a source for the value of an EnvVar.",
"properties": {
"secretKeyRef": {
"required": [
"key"
],
"description": "SecretKeySelector selects a key of a Secret.",
"properties": {
"optional": {
"type": "boolean",
"description": "Specify whether the Secret or it's key must be defined"
},
"name": {
"type": [
"string",
"null"
],
"description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names"
},
"key": {
"type": "string",
"description": "The key of the secret to select from. Must be a valid secret key."
}
}
},
"fieldRef": {
"required": [
"fieldPath"
],
"description": "ObjectFieldSelector selects an APIVersioned field of an object.",
"properties": {
"fieldPath": {
"type": "string",
"description": "Path of the field to select in the specified API version."
},
"apiVersion": {
"type": [
"string",
"null"
],
"description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\"."
}
}
},
"configMapKeyRef": {
"required": [
"key"
],
"description": "Selects a key from a ConfigMap.",
"properties": {
"optional": {
"type": "boolean",
"description": "Specify whether the ConfigMap or it's key must be defined"
},
"name": {
"type": [
"string",
"null"
],
"description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names"
},
"key": {
"type": "string",
"description": "The key to select."
}
}
},
"resourceFieldRef": {
"required": [
"resource"
],
"description": "ResourceFieldSelector represents container resources (cpu, memory) and their output format",
"properties": {
"containerName": {
"type": [
"string",
"null"
],
"description": "Container name: required for volumes, optional for env vars"
},
"resource": {
"type": "string",
"description": "Required: resource to select"
},
"divisor": {
"oneOf": [
{
"type": [
"string",
"null"
]
},
{
"type": "integer"
}
]
}
}
}
}
},
"name": {
"type": "string",
"description": "Name of the environment variable. Must be a C_IDENTIFIER."
},
"value": {
"type": [
"string",
"null"
],
"description": "Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\"."
}
}
},
"type": [
"array",
"null"
],
"description": "List of environment variables to set in the container. Cannot be updated."
},
"imagePullPolicy": {
"type": [
"string",
"null"
],
"description": "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/images#updating-images"
},
"readinessProbe": {
"description": "Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.",
"properties": {
"httpGet": {
"required": [
"port"
],
"description": "HTTPGetAction describes an action based on HTTP Get requests.",
"properties": {
"path": {
"type": [
"string",
"null"
],
"description": "Path to access on the HTTP server."
},
"host": {
"type": [
"string",
"null"
],
"description": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead."
},
"scheme": {
"type": [
"string",
"null"
],
"description": "Scheme to use for connecting to the host. Defaults to HTTP."
},
"httpHeaders": {
"items": {
"required": [
"name",
"value"
],
"description": "HTTPHeader describes a custom header to be used in HTTP probes",
"properties": {
"name": {
"type": "string",
"description": "The header field name"
},
"value": {
"type": "string",
"description": "The header field value"
}
}
},
"type": [
"array",
"null"
],
"description": "Custom headers to set in the request. HTTP allows repeated headers."
},
"port": {
"oneOf": [
{
"type": [
"string",
"null"
]
},
{
"type": "integer"
}
]
}
}
},
"timeoutSeconds": {
"type": "integer",
"description": "Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: http://kubernetes.io/docs/user-guide/pod-states#container-probes",
"format": "int32"
},
"exec": {
"description": "ExecAction describes a \"run in container\" action.",
"properties": {
"command": {
"items": {
"type": [
"string",
"null"
]
},
"type": [
"array",
"null"
],
"description": "Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy."
}
}
},
"initialDelaySeconds": {
"type": "integer",
"description": "Number of seconds after the container has started before liveness probes are initiated. More info: http://kubernetes.io/docs/user-guide/pod-states#container-probes",
"format": "int32"
},
"tcpSocket": {
"required": [
"port"
],
"description": "TCPSocketAction describes an action based on opening a socket",
"properties": {
"port": {
"oneOf": [
{
"type": [
"string",
"null"
]
},
{
"type": "integer"
}
]
}
}
},
"periodSeconds": {
"type": "integer",
"description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.",
"format": "int32"
},
"successThreshold": {
"type": "integer",
"description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1.",
"format": "int32"
},
"failureThreshold": {
"type": "integer",
"description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.",
"format": "int32"
}
}
},
"securityContext": {
"description": "SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence.",
"properties": {
"readOnlyRootFilesystem": {
"type": "boolean",
"description": "Whether this container has a read-only root filesystem. Default is false."
},
"runAsUser": {
"type": "integer",
"description": "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.",
"format": "int64"
},
"capabilities": {
"description": "Adds and removes POSIX capabilities from running containers.",
"properties": {
"add": {
"items": {
"type": [
"string",
"null"
]
},
"type": [
"array",
"null"
],
"description": "Added capabilities"
},
"drop": {
"items": {
"type": [
"string",
"null"
]
},
"type": [
"array",
"null"
],
"description": "Removed capabilities"
}
}
},
"runAsNonRoot": {
"type": "boolean",
"description": "Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."
},
"seLinuxOptions": {
"description": "SELinuxOptions are the labels to be applied to the container",
"properties": {
"role": {
"type": [
"string",
"null"
],
"description": "Role is a SELinux role label that applies to the container."
},
"type": {
"type": [
"string",
"null"
],
"description": "Type is a SELinux type label that applies to the container."
},
"user": {
"type": [
"string",
"null"
],
"description": "User is a SELinux user label that applies to the container."
},
"level": {
"type": [
"string",
"null"
],
"description": "Level is SELinux level label that applies to the container."
}
}
},
"privileged": {
"type": "boolean",
"description": "Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false."
}
}
},
"lifecycle": {
"description": "Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.",
"properties": {
"preStop": {
"description": "Handler defines a specific action that should be taken",
"properties": {
"httpGet": {
"required": [
"port"
],
"description": "HTTPGetAction describes an action based on HTTP Get requests.",
"properties": {
"path": {
"type": [
"string",
"null"
],
"description": "Path to access on the HTTP server."
},
"host": {
"type": [
"string",
"null"
],
"description": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead."
},
"scheme": {
"type": [
"string",
"null"
],
"description": "Scheme to use for connecting to the host. Defaults to HTTP."
},
"httpHeaders": {
"items": {
"required": [
"name",
"value"
],
"description": "HTTPHeader describes a custom header to be used in HTTP probes",
"properties": {
"name": {
"type": "string",
"description": "The header field name"
},
"value": {
"type": "string",
"description": "The header field value"
}
}
},
"type": [
"array",
"null"
],
"description": "Custom headers to set in the request. HTTP allows repeated headers."
},
"port": {
"oneOf": [
{
"type": [
"string",
"null"
]
},
{
"type": "integer"
}
]
}
}
},
"tcpSocket": {
"required": [
"port"
],
"description": "TCPSocketAction describes an action based on opening a socket",
"properties": {
"port": {
"oneOf": [
{
"type": [
"string",
"null"
]
},
{
"type": "integer"
}
]
}
}
},
"exec": {
"description": "ExecAction describes a \"run in container\" action.",
"properties": {
"command": {
"items": {
"type": [
"string",
"null"
]
},
"type": [
"array",
"null"
],
"description": "Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy."
}
}
}
}
},
"postStart": {
"description": "Handler defines a specific action that should be taken",
"properties": {
"httpGet": {
"required": [
"port"
],
"description": "HTTPGetAction describes an action based on HTTP Get requests.",
"properties": {
"path": {
"type": [
"string",
"null"
],
"description": "Path to access on the HTTP server."
},
"host": {
"type": [
"string",
"null"
],
"description": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead."
},
"scheme": {
"type": [
"string",
"null"
],
"description": "Scheme to use for connecting to the host. Defaults to HTTP."
},
"httpHeaders": {
"items": {
"required": [
"name",
"value"
],
"description": "HTTPHeader describes a custom header to be used in HTTP probes",
"properties": {
"name": {
"type": "string",
"description": "The header field name"
},
"value": {
"type": "string",
"description": "The header field value"
}
}
},
"type": [
"array",
"null"
],
"description": "Custom headers to set in the request. HTTP allows repeated headers."
},
"port": {
"oneOf": [
{
"type": [
"string",
"null"
]
},
{
"type": "integer"
}
]
}
}
},
"tcpSocket": {
"required": [
"port"
],
"description": "TCPSocketAction describes an action based on opening a socket",
"properties": {
"port": {
"oneOf": [
{
"type": [
"string",
"null"
]
},
{
"type": "integer"
}
]
}
}
},
"exec": {
"description": "ExecAction describes a \"run in container\" action.",
"properties": {
"command": {
"items": {
"type": [
"string",
"null"
]
},
"type": [
"array",
"null"
],
"description": "Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy."
}
}
}
}
}
}
},
"resources": {
"description": "ResourceRequirements describes the compute resource requirements.",
"properties": {
"requests": {
"additionalProperties": {
"oneOf": [
{
"type": [
"string",
"null"
]
},
{
"type": "integer"
}
]
},
"type": "object",
"description": "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: http://kubernetes.io/docs/user-guide/compute-resources/"
},
"limits": {
"additionalProperties": {
"oneOf": [
{
"type": [
"string",
"null"
]
},
{
"type": "integer"
}
]
},
"type": "object",
"description": "Limits describes the maximum amount of compute resources allowed. More info: http://kubernetes.io/docs/user-guide/compute-resources/"
}
}
},
"stdinOnce": {
"type": "boolean",
"description": "Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false"
}
}
},
"type": "array",
"description": "List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/containers"
},
"serviceAccountName": {
"type": [
"string",
"null"
],
"description": "ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: http://releases.k8s.io/HEAD/docs/design/service_accounts.md"
},
"schedulerName": {
"type": [
"string",
"null"
],
"description": "If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler."
},
"hostIPC": {
"type": "boolean",
"description": "Use the host's ipc namespace. Optional: Default to false."
},
"activeDeadlineSeconds": {
"type": "integer",
"description": "Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer.",
"format": "int64"
},
"terminationGracePeriodSeconds": {
"type": "integer",
"description": "Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds.",
"format": "int64"
},
"hostPID": {
"type": "boolean",
"description": "Use the host's pid namespace. Optional: Default to false."
},
"volumes": {
"items": {
"required": [
"name"
],
"description": "Volume represents a named volume in a pod that may be accessed by any container in the pod.",
"properties": {
"portworxVolume": {
"required": [
"volumeID"
],
"description": "PortworxVolumeSource represents a Portworx volume resource.",
"properties": {
"readOnly": {
"type": "boolean",
"description": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."
},
"volumeID": {
"type": "string",
"description": "VolumeID uniquely identifies a Portworx volume"
},
"fsType": {
"type": [
"string",
"null"
],
"description": "FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified."
}
}
},
"glusterfs": {
"required": [
"endpoints",
"path"
],
"description": "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.",
"properties": {
"path": {
"type": "string",
"description": "Path is the Glusterfs volume path. More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod"
},
"readOnly": {
"type": "boolean",
"description": "ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod"
},
"endpoints": {
"type": "string",
"description": "EndpointsName is the endpoint name that details Glusterfs topology. More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod"
}
}
},
"gitRepo": {
"required": [
"repository"
],
"description": "Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling.",
"properties": {
"directory": {
"type": [
"string",
"null"
],
"description": "Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name."
},
"repository": {
"type": "string",
"description": "Repository URL"
},
"revision": {
"type": [
"string",
"null"
],
"description": "Commit hash for the specified revision."
}
}
},
"flocker": {
"description": "Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling.",
"properties": {
"datasetName": {
"type": [
"string",
"null"
],
"description": "Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated"
},
"datasetUUID": {
"type": [
"string",
"null"
],
"description": "UUID of the dataset. This is unique identifier of a Flocker dataset"
}
}
},
"iscsi": {
"required": [
"targetPortal",
"iqn",
"lun"
],
"description": "Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.",
"properties": {
"targetPortal": {
"type": "string",
"description": "iSCSI target portal. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260)."
},
"portals": {
"items": {
"type": [
"string",
"null"
]
},
"type": [
"array",
"null"
],
"description": "iSCSI target portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260)."
},
"fsType": {
"type": [
"string",
"null"
],
"description": "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://kubernetes.io/docs/user-guide/volumes#iscsi"
},
"readOnly": {
"type": "boolean",
"description": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false."
},
"iqn": {
"type": "string",
"description": "Target iSCSI Qualified Name."
},
"iscsiInterface": {
"type": [
"string",
"null"
],
"description": "Optional: Defaults to 'default' (tcp). iSCSI interface name that uses an iSCSI transport."
},
"lun": {
"type": "integer",
"description": "iSCSI target lun number.",
"format": "int32"
}
}
},
"projected": {
"required": [
"sources"
],
"description": "Represents a projected volume source",
"properties": {
"sources": {
"items": {
"description": "Projection that may be projected along with other supported volume types",
"properties": {
"configMap": {
"description": "Adapts a ConfigMap into a projected volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a projected volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. Note that this is identical to a configmap volume source without the default mode.",
"properties": {
"items": {
"items": {
"required": [
"key",
"path"
],
"description": "Maps a string key to a path within a volume.",
"properties": {
"path": {
"type": "string",
"description": "The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'."
},
"mode": {
"type": "integer",
"description": "Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.",
"format": "int32"
},
"key": {
"type": "string",
"description": "The key to project."
}
}
},
"type": [
"array",
"null"
],
"description": "If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'."
},
"optional": {
"type": "boolean",
"description": "Specify whether the ConfigMap or it's keys must be defined"
},
"name": {
"type": [
"string",
"null"
],
"description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names"
}
}
},
"secret": {
"description": "Adapts a secret into a projected volume.\n\nThe contents of the target Secret's Data field will be presented in a projected volume as files using the keys in the Data field as the file names. Note that this is identical to a secret volume source without the default mode.",
"properties": {
"items": {
"items": {
"required": [
"key",
"path"
],
"description": "Maps a string key to a path within a volume.",
"properties": {
"path": {
"type": "string",
"description": "The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'."
},
"mode": {
"type": "integer",
"description": "Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.",
"format": "int32"
},
"key": {
"type": "string",
"description": "The key to project."
}
}
},
"type": [
"array",
"null"
],
"description": "If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'."
},
"optional": {
"type": "boolean",
"description": "Specify whether the Secret or its key must be defined"
},
"name": {
"type": [
"string",
"null"
],
"description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names"
}
}
},
"downwardAPI": {
"description": "Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode.",
"properties": {
"items": {
"items": {
"required": [
"path"
],
"description": "DownwardAPIVolumeFile represents information to create the file containing the pod field",
"properties": {
"path": {
"type": "string",
"description": "Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'"
},
"fieldRef": {
"required": [
"fieldPath"
],
"description": "ObjectFieldSelector selects an APIVersioned field of an object.",
"properties": {
"fieldPath": {
"type": "string",
"description": "Path of the field to select in the specified API version."
},
"apiVersion": {
"type": [
"string",
"null"
],
"description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\"."
}
}
},
"mode": {
"type": "integer",
"description": "Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.",
"format": "int32"
},
"resourceFieldRef": {
"required": [
"resource"
],
"description": "ResourceFieldSelector represents container resources (cpu, memory) and their output format",
"properties": {
"containerName": {
"type": [
"string",
"null"
],
"description": "Container name: required for volumes, optional for env vars"
},
"resource": {
"type": "string",
"description": "Required: resource to select"
},
"divisor": {
"oneOf": [
{
"type": [
"string",
"null"
]
},
{
"type": "integer"
}
]
}
}
}
}
},
"type": [
"array",
"null"
],
"description": "Items is a list of DownwardAPIVolume file"
}
}
}
}
},
"type": "array",
"description": "list of volume projections"
},
"defaultMode": {
"type": "integer",
"description": "Mode bits to use on created files by default. Must be a value between 0 and 0777. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.",
"format": "int32"
}
}
},
"secret": {
"description": "Adapts a Secret into a volume.\n\nThe contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling.",
"properties": {
"items": {
"items": {
"required": [
"key",
"path"
],
"description": "Maps a string key to a path within a volume.",
"properties": {
"path": {
"type": "string",
"description": "The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'."
},
"mode": {
"type": "integer",
"description": "Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.",
"format": "int32"
},
"key": {
"type": "string",
"description": "The key to project."
}
}
},
"type": [
"array",
"null"
],
"description": "If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'."
},
"optional": {
"type": "boolean",
"description": "Specify whether the Secret or it's keys must be defined"
},
"defaultMode": {
"type": "integer",
"description": "Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.",
"format": "int32"
},
"secretName": {
"type": [
"string",
"null"
],
"description": "Name of the secret in the pod's namespace to use. More info: http://kubernetes.io/docs/user-guide/volumes#secrets"
}
}
},
"flexVolume": {
"required": [
"driver"
],
"description": "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. This is an alpha feature and may change in future.",
"properties": {
"readOnly": {
"type": "boolean",
"description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."
},
"options": {
"additionalProperties": {
"type": [
"string",
"null"
]
},
"type": "object",
"description": "Optional: Extra command options if any."
},
"driver": {
"type": "string",
"description": "Driver is the name of the driver to use for this volume."
},
"secretRef": {
"description": "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.",
"properties": {
"name": {
"type": [
"string",
"null"
],
"description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names"
}
}
},
"fsType": {
"type": [
"string",
"null"
],
"description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script."
}
}
},
"photonPersistentDisk": {
"required": [
"pdID"
],
"description": "Represents a Photon Controller persistent disk resource.",
"properties": {
"fsType": {
"type": [
"string",
"null"
],
"description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified."
},
"pdID": {
"type": "string",
"description": "ID that identifies Photon Controller persistent disk"
}
}
},
"azureDisk": {
"required": [
"diskName",
"diskURI"
],
"description": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.",
"properties": {
"diskURI": {
"type": "string",
"description": "The URI the data disk in the blob storage"
},
"diskName": {
"type": "string",
"description": "The Name of the data disk in the blob storage"
},
"cachingMode": {
"type": [
"string",
"null"
],
"description": "Host Caching mode: None, Read Only, Read Write."
},
"readOnly": {
"type": "boolean",
"description": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."
},
"fsType": {
"type": [
"string",
"null"
],
"description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified."
}
}
},
"fc": {
"required": [
"targetWWNs",
"lun"
],
"description": "Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling.",
"properties": {
"readOnly": {
"type": "boolean",
"description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."
},
"targetWWNs": {
"items": {
"type": [
"string",
"null"
]
},
"type": "array",
"description": "Required: FC target worldwide names (WWNs)"
},
"lun": {
"type": "integer",
"description": "Required: FC target lun number",
"format": "int32"
},
"fsType": {
"type": [
"string",
"null"
],
"description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified."
}
}
},
"scaleIO": {
"required": [
"gateway",
"system",
"secretRef"
],
"description": "ScaleIOVolumeSource represents a persistent ScaleIO volume",
"properties": {
"storageMode": {
"type": [
"string",
"null"
],
"description": "Indicates whether the storage for a volume should be thick or thin (defaults to \"thin\")."
},
"secretRef": {
"description": "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.",
"properties": {
"name": {
"type": [
"string",
"null"
],
"description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names"
}
}
},
"protectionDomain": {
"type": [
"string",
"null"
],
"description": "The name of the Protection Domain for the configured storage (defaults to \"default\")."
},
"volumeName": {
"type": [
"string",
"null"
],
"description": "The name of a volume already created in the ScaleIO system that is associated with this volume source."
},
"sslEnabled": {
"type": "boolean",
"description": "Flag to enable/disable SSL communication with Gateway, default false"
},
"system": {
"type": "string",
"description": "The name of the storage system as configured in ScaleIO."
},
"fsType": {
"type": [
"string",
"null"
],
"description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified."
},
"readOnly": {
"type": "boolean",
"description": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."
},
"storagePool": {
"type": [
"string",
"null"
],
"description": "The Storage Pool associated with the protection domain (defaults to \"default\")."
},
"gateway": {
"type": "string",
"description": "The host address of the ScaleIO API Gateway."
}
}
},
"emptyDir": {
"description": "Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.",
"properties": {
"medium": {
"type": [
"string",
"null"
],
"description": "What type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir"
}
}
},
"persistentVolumeClaim": {
"required": [
"claimName"
],
"description": "PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system).",
"properties": {
"readOnly": {
"type": "boolean",
"description": "Will force the ReadOnly setting in VolumeMounts. Default false."
},
"claimName": {
"type": "string",
"description": "ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims"
}
}
},
"configMap": {
"description": "Adapts a ConfigMap into a volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling.",
"properties": {
"items": {
"items": {
"required": [
"key",
"path"
],
"description": "Maps a string key to a path within a volume.",
"properties": {
"path": {
"type": "string",
"description": "The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'."
},
"mode": {
"type": "integer",
"description": "Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.",
"format": "int32"
},
"key": {
"type": "string",
"description": "The key to project."
}
}
},
"type": [
"array",
"null"
],
"description": "If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'."
},
"optional": {
"type": "boolean",
"description": "Specify whether the ConfigMap or it's keys must be defined"
},
"defaultMode": {
"type": "integer",
"description": "Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.",
"format": "int32"
},
"name": {
"type": [
"string",
"null"
],
"description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names"
}
}
},
"cephfs": {
"required": [
"monitors"
],
"description": "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.",
"properties": {
"secretRef": {
"description": "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.",
"properties": {
"name": {
"type": [
"string",
"null"
],
"description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names"
}
}
},
"secretFile": {
"type": [
"string",
"null"
],
"description": "Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it"
},
"readOnly": {
"type": "boolean",
"description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it"
},
"user": {
"type": [
"string",
"null"
],
"description": "Optional: User is the rados user name, default is admin More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it"
},
"path": {
"type": [
"string",
"null"
],
"description": "Optional: Used as the mounted root, rather than the full Ceph tree, default is /"
},
"monitors": {
"items": {
"type": [
"string",
"null"
]
},
"type": "array",
"description": "Required: Monitors is a collection of Ceph monitors More info: http://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it"
}
}
},
"name": {
"type": "string",
"description": "Volume's name. Must be a DNS_LABEL and unique within the pod. More info: http://kubernetes.io/docs/user-guide/identifiers#names"
},
"azureFile": {
"required": [
"secretName",
"shareName"
],
"description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.",
"properties": {
"shareName": {
"type": "string",
"description": "Share Name"
},
"readOnly": {
"type": "boolean",
"description": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."
},
"secretName": {
"type": "string",
"description": "the name of secret that contains Azure Storage Account Name and Key"
}
}
},
"quobyte": {
"required": [
"registry",
"volume"
],
"description": "Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling.",
"properties": {
"volume": {
"type": "string",
"description": "Volume is a string that references an already created Quobyte volume by name."
},
"readOnly": {
"type": "boolean",
"description": "ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false."
},
"group": {
"type": [
"string",
"null"
],
"description": "Group to map volume access to Default is no group"
},
"registry": {
"type": "string",
"description": "Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes"
},
"user": {
"type": [
"string",
"null"
],
"description": "User to map volume access to Defaults to serivceaccount user"
}
}
},
"hostPath": {
"required": [
"path"
],
"description": "Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.",
"properties": {
"path": {
"type": "string",
"description": "Path of the directory on the host. More info: http://kubernetes.io/docs/user-guide/volumes#hostpath"
}
}
},
"nfs": {
"required": [
"server",
"path"
],
"description": "Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling.",
"properties": {
"path": {
"type": "string",
"description": "Path that is exported by the NFS server. More info: http://kubernetes.io/docs/user-guide/volumes#nfs"
},
"readOnly": {
"type": "boolean",
"description": "ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: http://kubernetes.io/docs/user-guide/volumes#nfs"
},
"server": {
"type": "string",
"description": "Server is the hostname or IP address of the NFS server. More info: http://kubernetes.io/docs/user-guide/volumes#nfs"
}
}
},
"gcePersistentDisk": {
"required": [
"pdName"
],
"description": "Represents a Persistent Disk resource in Google Compute Engine.\n\nA GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling.",
"properties": {
"readOnly": {
"type": "boolean",
"description": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk"
},
"partition": {
"type": "integer",
"description": "The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk",
"format": "int32"
},
"pdName": {
"type": "string",
"description": "Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk"
},
"fsType": {
"type": [
"string",
"null"
],
"description": "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk"
}
}
},
"cinder": {
"required": [
"volumeID"
],
"description": "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.",
"properties": {
"readOnly": {
"type": "boolean",
"description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md"
},
"volumeID": {
"type": "string",
"description": "volume id used to identify the volume in cinder More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md"
},
"fsType": {
"type": [
"string",
"null"
],
"description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md"
}
}
},
"awsElasticBlockStore": {
"required": [
"volumeID"
],
"description": "Represents a Persistent Disk resource in AWS.\n\nAn AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling.",
"properties": {
"readOnly": {
"type": "boolean",
"description": "Specify \"true\" to force and set the ReadOnly property in VolumeMounts to \"true\". If omitted, the default is \"false\". More info: http://kubernetes.io/docs/user-guide/volumes#awselasticblockstore"
},
"partition": {
"type": "integer",
"description": "The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty).",
"format": "int32"
},
"volumeID": {
"type": "string",
"description": "Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: http://kubernetes.io/docs/user-guide/volumes#awselasticblockstore"
},
"fsType": {
"type": [
"string",
"null"
],
"description": "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://kubernetes.io/docs/user-guide/volumes#awselasticblockstore"
}
}
},
"rbd": {
"required": [
"monitors",
"image"
],
"description": "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.",
"properties": {
"secretRef": {
"description": "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.",
"properties": {
"name": {
"type": [
"string",
"null"
],
"description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names"
}
}
},
"image": {
"type": "string",
"description": "The rados image name. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it"
},
"keyring": {
"type": [
"string",
"null"
],
"description": "Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it"
},
"fsType": {
"type": [
"string",
"null"
],
"description": "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: http://kubernetes.io/docs/user-guide/volumes#rbd"
},
"readOnly": {
"type": "boolean",
"description": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it"
},
"user": {
"type": [
"string",
"null"
],
"description": "The rados user name. Default is admin. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it"
},
"monitors": {
"items": {
"type": [
"string",
"null"
]
},
"type": "array",
"description": "A collection of Ceph monitors. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it"
},
"pool": {
"type": [
"string",
"null"
],
"description": "The rados pool name. Default is rbd. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it."
}
}
},
"downwardAPI": {
"description": "DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling.",
"properties": {
"items": {
"items": {
"required": [
"path"
],
"description": "DownwardAPIVolumeFile represents information to create the file containing the pod field",
"properties": {
"path": {
"type": "string",
"description": "Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'"
},
"fieldRef": {
"required": [
"fieldPath"
],
"description": "ObjectFieldSelector selects an APIVersioned field of an object.",
"properties": {
"fieldPath": {
"type": "string",
"description": "Path of the field to select in the specified API version."
},
"apiVersion": {
"type": [
"string",
"null"
],
"description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\"."
}
}
},
"mode": {
"type": "integer",
"description": "Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.",
"format": "int32"
},
"resourceFieldRef": {
"required": [
"resource"
],
"description": "ResourceFieldSelector represents container resources (cpu, memory) and their output format",
"properties": {
"containerName": {
"type": [
"string",
"null"
],
"description": "Container name: required for volumes, optional for env vars"
},
"resource": {
"type": "string",
"description": "Required: resource to select"
},
"divisor": {
"oneOf": [
{
"type": [
"string",
"null"
]
},
{
"type": "integer"
}
]
}
}
}
}
},
"type": [
"array",
"null"
],
"description": "Items is a list of downward API volume file"
},
"defaultMode": {
"type": "integer",
"description": "Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.",
"format": "int32"
}
}
},
"vsphereVolume": {
"required": [
"volumePath"
],
"description": "Represents a vSphere volume resource.",
"properties": {
"volumePath": {
"type": "string",
"description": "Path that identifies vSphere volume vmdk"
},
"fsType": {
"type": [
"string",
"null"
],
"description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified."
}
}
}
}
},
"type": [
"array",
"null"
],
"description": "List of volumes that can be mounted by containers belonging to the pod. More info: http://kubernetes.io/docs/user-guide/volumes"
},
"initContainers": {
"items": {
"required": [
"name"
],
"description": "A single application container that you want to run within a pod.",
"properties": {
"livenessProbe": {
"description": "Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.",
"properties": {
"httpGet": {
"required": [
"port"
],
"description": "HTTPGetAction describes an action based on HTTP Get requests.",
"properties": {
"path": {
"type": [
"string",
"null"
],
"description": "Path to access on the HTTP server."
},
"host": {
"type": [
"string",
"null"
],
"description": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead."
},
"scheme": {
"type": [
"string",
"null"
],
"description": "Scheme to use for connecting to the host. Defaults to HTTP."
},
"httpHeaders": {
"items": {
"required": [
"name",
"value"
],
"description": "HTTPHeader describes a custom header to be used in HTTP probes",
"properties": {
"name": {
"type": "string",
"description": "The header field name"
},
"value": {
"type": "string",
"description": "The header field value"
}
}
},
"type": [
"array",
"null"
],
"description": "Custom headers to set in the request. HTTP allows repeated headers."
},
"port": {
"oneOf": [
{
"type": [
"string",
"null"
]
},
{
"type": "integer"
}
]
}
}
},
"timeoutSeconds": {
"type": "integer",
"description": "Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: http://kubernetes.io/docs/user-guide/pod-states#container-probes",
"format": "int32"
},
"exec": {
"description": "ExecAction describes a \"run in container\" action.",
"properties": {
"command": {
"items": {
"type": [
"string",
"null"
]
},
"type": [
"array",
"null"
],
"description": "Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy."
}
}
},
"initialDelaySeconds": {
"type": "integer",
"description": "Number of seconds after the container has started before liveness probes are initiated. More info: http://kubernetes.io/docs/user-guide/pod-states#container-probes",
"format": "int32"
},
"tcpSocket": {
"required": [
"port"
],
"description": "TCPSocketAction describes an action based on opening a socket",
"properties": {
"port": {
"oneOf": [
{
"type": [
"string",
"null"
]
},
{
"type": "integer"
}
]
}
}
},
"periodSeconds": {
"type": "integer",
"description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.",
"format": "int32"
},
"successThreshold": {