diff --git a/jsonnet/kube-prometheus/jsonnetfile.json b/jsonnet/kube-prometheus/jsonnetfile.json index 61be9a9efcebfc7c88a0108a8555ff898d0ba6fe..fa7545afb27ca60867b0eb981dbd2b8aaf034d1d 100644 --- a/jsonnet/kube-prometheus/jsonnetfile.json +++ b/jsonnet/kube-prometheus/jsonnetfile.json @@ -38,7 +38,7 @@ "subdir": "jsonnet/prometheus-operator" } }, - "version": "master" + "version": "release-0.34" }, { "name": "etcd-mixin", diff --git a/jsonnetfile.lock.json b/jsonnetfile.lock.json index c36b2fc28ffb08508ccc44fca276d96e7d1a7346..667e23476f49605978641a1259262d13c7980001 100644 --- a/jsonnetfile.lock.json +++ b/jsonnetfile.lock.json @@ -105,8 +105,8 @@ "subdir": "jsonnet/prometheus-operator" } }, - "version": "b69e4b73fecbdf24be888605d91d9d19ec23d095", - "sum": "N9LzLlpaBNxMLSFVt3AHI/nCDWI6bSM63GS+0Ur+Qh0=" + "version": "8d44e0990230144177f97cf62ae4f43b1c4e3168", + "sum": "5U7/8MD3pF9O0YDTtUhg4vctkUBRVFxZxWUyhtNiBM8=" }, { "name": "promgrafonnet", diff --git a/manifests/setup/prometheus-operator-0alertmanagerCustomResourceDefinition.yaml b/manifests/setup/prometheus-operator-0alertmanagerCustomResourceDefinition.yaml index ed4895807d4cf8aefb927e2e1b9ed03bddd64e2d..17dfb1604c391e63139184b0b8aba41a8a636328 100644 --- a/manifests/setup/prometheus-operator-0alertmanagerCustomResourceDefinition.yaml +++ b/manifests/setup/prometheus-operator-0alertmanagerCustomResourceDefinition.yaml @@ -1,22 +1,16 @@ apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: - annotations: - controller-gen.kubebuilder.io/version: v0.2.4 creationTimestamp: null name: alertmanagers.monitoring.coreos.com spec: group: monitoring.coreos.com names: kind: Alertmanager - listKind: AlertmanagerList plural: alertmanagers - singular: alertmanager - preserveUnknownFields: false scope: Namespaced validation: openAPIV3Schema: - description: Alertmanager describes an Alertmanager cluster. properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -28,11 +22,9 @@ spec: object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' type: string - metadata: - type: object spec: - description: 'Specification of the desired behavior of the Alertmanager - cluster. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status' + description: 'AlertmanagerSpec is a specification of the desired behavior + of the Alertmanager cluster. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status' properties: additionalPeers: description: AdditionalPeers allows injecting a set of additional Alertmanagers @@ -41,10 +33,11 @@ spec: type: string type: array affinity: - description: If specified, the pod's scheduling constraints. + description: Affinity is a group of affinity scheduling rules. properties: nodeAffinity: - description: Describes node affinity scheduling rules for the pod. + description: Node affinity is a group of node affinity scheduling + rules. properties: preferredDuringSchedulingIgnoredDuringExecution: description: The scheduler will prefer to schedule pods to nodes @@ -64,8 +57,10 @@ spec: a no-op). properties: preference: - description: A node selector term, associated with the - corresponding weight. + description: A null or empty node selector term matches + no objects. The requirements of them are ANDed. The + TopologySelectorTerm type implements a subset of the + NodeSelectorTerm. properties: matchExpressions: description: A list of node selector requirements @@ -142,17 +137,15 @@ spec: format: int32 type: integer required: - - preference - weight + - preference type: object type: array requiredDuringSchedulingIgnoredDuringExecution: - description: 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 an update), the system may or may not try to - eventually evict the pod from its node. + 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: description: Required. A list of node selector terms. The @@ -238,8 +231,8 @@ spec: type: object type: object podAffinity: - description: Describes pod affinity scheduling rules (e.g. co-locate - this pod in the same node, zone, etc. as some other pod(s)). + description: Pod affinity is a group of inter pod affinity scheduling + rules. properties: preferredDuringSchedulingIgnoredDuringExecution: description: The scheduler will prefer to schedule pods to nodes @@ -257,12 +250,20 @@ spec: fields are added per-node to find the most preferred node(s) properties: podAffinityTerm: - description: Required. A pod affinity term, associated - with the corresponding weight. + 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> matches that of any node on which + a pod of the set of pods is running properties: labelSelector: - description: A label query over a set of resources, - in this case pods. + 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: matchExpressions: description: matchExpressions is a list of label @@ -298,8 +299,6 @@ spec: type: object type: array matchLabels: - additionalProperties: - type: string description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, @@ -333,8 +332,8 @@ spec: format: int32 type: integer required: - - podAffinityTerm - weight + - podAffinityTerm type: object type: array requiredDuringSchedulingIgnoredDuringExecution: @@ -357,8 +356,10 @@ spec: is running properties: labelSelector: - description: A label query over a set of resources, in - this case pods. + 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: matchExpressions: description: matchExpressions is a list of label selector @@ -393,8 +394,6 @@ spec: type: object type: array matchLabels: - additionalProperties: - type: string 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 @@ -424,9 +423,8 @@ spec: type: array type: object podAntiAffinity: - description: Describes pod anti-affinity scheduling rules (e.g. - avoid putting this pod in the same node, zone, etc. as some other - pod(s)). + description: Pod anti affinity is a group of inter pod anti affinity + scheduling rules. properties: preferredDuringSchedulingIgnoredDuringExecution: description: The scheduler will prefer to schedule pods to nodes @@ -445,12 +443,20 @@ spec: fields are added per-node to find the most preferred node(s) properties: podAffinityTerm: - description: Required. A pod affinity term, associated - with the corresponding weight. + 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> matches that of any node on which + a pod of the set of pods is running properties: labelSelector: - description: A label query over a set of resources, - in this case pods. + 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: matchExpressions: description: matchExpressions is a list of label @@ -486,8 +492,6 @@ spec: type: object type: array matchLabels: - additionalProperties: - type: string description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, @@ -521,8 +525,8 @@ spec: format: int32 type: integer required: - - podAffinityTerm - weight + - podAffinityTerm type: object type: array requiredDuringSchedulingIgnoredDuringExecution: @@ -545,8 +549,10 @@ spec: is running properties: labelSelector: - description: A label query over a set of resources, in - this case pods. + 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: matchExpressions: description: matchExpressions is a list of label selector @@ -581,8 +587,6 @@ spec: type: object type: array matchLabels: - additionalProperties: - type: string 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 @@ -682,19 +686,17 @@ spec: exists or not. Defaults to "".' type: string valueFrom: - description: Source for the environment variable's value. - Cannot be used if value is not empty. + description: EnvVarSource represents a source for the value + of an EnvVar. properties: configMapKeyRef: - description: Selects a key of a ConfigMap. + description: Selects a key from a ConfigMap. properties: key: description: The key to select. type: string name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, - uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string optional: description: Specify whether the ConfigMap or its @@ -704,10 +706,8 @@ spec: - key type: object fieldRef: - description: 'Selects a field of the pod: supports metadata.name, - metadata.namespace, metadata.labels, metadata.annotations, - spec.nodeName, spec.serviceAccountName, status.hostIP, - status.podIP.' + description: ObjectFieldSelector selects an APIVersioned + field of an object. properties: apiVersion: description: Version of the schema the FieldPath @@ -721,19 +721,14 @@ spec: - fieldPath type: object resourceFieldRef: - description: 'Selects a resource of the container: only - resources limits and requests (limits.cpu, limits.memory, - limits.ephemeral-storage, requests.cpu, requests.memory - and requests.ephemeral-storage) are currently supported.' + description: ResourceFieldSelector represents container + resources (cpu, memory) and their output format properties: containerName: description: 'Container name: required for volumes, optional for env vars' type: string - divisor: - description: Specifies the output format of the - exposed resources, defaults to "1" - type: string + divisor: {} resource: description: 'Required: resource to select' type: string @@ -741,17 +736,14 @@ spec: - resource type: object secretKeyRef: - description: Selects a key of a secret in the pod's - namespace + description: SecretKeySelector selects a key of a Secret. properties: key: description: The key of the secret to select from. Must be a valid secret key. type: string name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, - uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string optional: description: Specify whether the Secret or its key @@ -778,11 +770,13 @@ spec: ConfigMaps properties: configMapRef: - description: The ConfigMap to select from + description: |- + ConfigMapEnvSource selects a ConfigMap to populate the environment variables with. + + The contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables. properties: name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string optional: description: Specify whether the ConfigMap must be defined @@ -793,11 +787,13 @@ spec: in the ConfigMap. Must be a C_IDENTIFIER. type: string secretRef: - description: The Secret to select from + description: |- + SecretEnvSource selects a Secret to populate the environment variables with. + + The contents of the target Secret's Data field will represent the key-value pairs as environment variables. properties: name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string optional: description: Specify whether the Secret must be defined @@ -817,19 +813,19 @@ spec: otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images' type: string lifecycle: - description: Actions that the management system should take in - response to container lifecycle events. Cannot be updated. + 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: postStart: - description: 'PostStart is called immediately after a container - is created. If the handler fails, the container is terminated - and restarted according to its restart policy. Other management - of the container blocks until the hook completes. More info: - https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks' + description: Handler defines a specific action that should + be taken properties: exec: - description: One and only one of the following should - be specified. Exec specifies the action to take. + description: ExecAction describes a "run in container" + action. properties: command: description: Command is the command line to execute @@ -845,7 +841,8 @@ spec: type: array type: object httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGetAction describes an action based on + HTTP Get requests. properties: host: description: Host name to connect to, defaults to @@ -875,12 +872,8 @@ spec: type: string port: anyOf: - - type: integer - type: string - description: Name or number of the port to access - on the container. Number must be in the range 1 - to 65535. Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true + - type: integer scheme: description: Scheme to use for connecting to the host. Defaults to HTTP. @@ -889,9 +882,8 @@ spec: - port type: object tcpSocket: - description: 'TCPSocket specifies an action involving - a TCP port. TCP hooks not yet supported TODO: implement - a realistic TCP lifecycle hook' + description: TCPSocketAction describes an action based + on opening a socket properties: host: description: 'Optional: Host name to connect to, defaults @@ -899,33 +891,19 @@ spec: type: string port: anyOf: - - type: integer - type: string - description: Number or name of the port to access - on the container. Number must be in the range 1 - to 65535. Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true + - type: integer required: - port type: object type: object preStop: - description: 'PreStop is called immediately before a container - is terminated due to an API request or management event - such as liveness/startup probe failure, preemption, resource - contention, etc. The handler is not called if the container - crashes or exits. The reason for termination is passed to - the handler. The Pod''s termination grace period countdown - begins before the PreStop hooked is executed. Regardless - of the outcome of the handler, the container will eventually - terminate within the Pod''s termination grace period. Other - management of the container blocks until the hook completes - or until the termination grace period is reached. More info: - https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks' + description: Handler defines a specific action that should + be taken properties: exec: - description: One and only one of the following should - be specified. Exec specifies the action to take. + description: ExecAction describes a "run in container" + action. properties: command: description: Command is the command line to execute @@ -941,7 +919,8 @@ spec: type: array type: object httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGetAction describes an action based on + HTTP Get requests. properties: host: description: Host name to connect to, defaults to @@ -971,12 +950,8 @@ spec: type: string port: anyOf: - - type: integer - type: string - description: Name or number of the port to access - on the container. Number must be in the range 1 - to 65535. Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true + - type: integer scheme: description: Scheme to use for connecting to the host. Defaults to HTTP. @@ -985,9 +960,8 @@ spec: - port type: object tcpSocket: - description: 'TCPSocket specifies an action involving - a TCP port. TCP hooks not yet supported TODO: implement - a realistic TCP lifecycle hook' + description: TCPSocketAction describes an action based + on opening a socket properties: host: description: 'Optional: Host name to connect to, defaults @@ -995,25 +969,20 @@ spec: type: string port: anyOf: - - type: integer - type: string - description: Number or name of the port to access - on the container. Number must be in the range 1 - to 65535. Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true + - type: integer required: - port type: object type: object type: object livenessProbe: - description: 'Periodic probe of container liveness. Container - will be restarted if the probe fails. Cannot be updated. More - info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes' + description: Probe describes a health check to be performed against + a container to determine whether it is alive or ready to receive + traffic. properties: exec: - description: One and only one of the following should be specified. - Exec specifies the action to take. + description: ExecAction describes a "run in container" action. properties: command: description: Command is the command line to execute inside @@ -1035,7 +1004,8 @@ spec: format: int32 type: integer httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGetAction describes an action based on HTTP + Get requests. properties: host: description: Host name to connect to, defaults to the @@ -1065,12 +1035,8 @@ spec: type: string port: anyOf: - - type: integer - type: string - description: Name or number of the port to access on the - container. Number must be in the range 1 to 65535. Name - must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true + - type: integer scheme: description: Scheme to use for connecting to the host. Defaults to HTTP. @@ -1096,9 +1062,8 @@ spec: format: int32 type: integer tcpSocket: - description: 'TCPSocket specifies an action involving a TCP - port. TCP hooks not yet supported TODO: implement a realistic - TCP lifecycle hook' + description: TCPSocketAction describes an action based on + opening a socket properties: host: description: 'Optional: Host name to connect to, defaults @@ -1106,12 +1071,8 @@ spec: type: string port: anyOf: - - type: integer - type: string - description: Number or name of the port to access on the - container. Number must be in the range 1 to 65535. Name - must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true + - type: integer required: - port type: object @@ -1169,13 +1130,12 @@ spec: type: object type: array readinessProbe: - description: 'Periodic probe of container service readiness. Container - will be removed from service endpoints if the probe fails. Cannot - be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes' + description: Probe describes a health check to be performed against + a container to determine whether it is alive or ready to receive + traffic. properties: exec: - description: One and only one of the following should be specified. - Exec specifies the action to take. + description: ExecAction describes a "run in container" action. properties: command: description: Command is the command line to execute inside @@ -1197,7 +1157,8 @@ spec: format: int32 type: integer httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGetAction describes an action based on HTTP + Get requests. properties: host: description: Host name to connect to, defaults to the @@ -1227,12 +1188,8 @@ spec: type: string port: anyOf: - - type: integer - type: string - description: Name or number of the port to access on the - container. Number must be in the range 1 to 65535. Name - must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true + - type: integer scheme: description: Scheme to use for connecting to the host. Defaults to HTTP. @@ -1258,9 +1215,8 @@ spec: format: int32 type: integer tcpSocket: - description: 'TCPSocket specifies an action involving a TCP - port. TCP hooks not yet supported TODO: implement a realistic - TCP lifecycle hook' + description: TCPSocketAction describes an action based on + opening a socket properties: host: description: 'Optional: Host name to connect to, defaults @@ -1268,12 +1224,8 @@ spec: type: string port: anyOf: - - type: integer - type: string - description: Number or name of the port to access on the - container. Number must be in the range 1 to 65535. Name - must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true + - type: integer required: - port type: object @@ -1285,18 +1237,14 @@ spec: type: integer type: object resources: - description: 'Compute Resources required by this container. Cannot - be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/' + description: ResourceRequirements describes the compute resource + requirements. properties: limits: - additionalProperties: - type: string description: 'Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/' type: object requests: - additionalProperties: - type: string 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 @@ -1304,9 +1252,10 @@ spec: type: object type: object securityContext: - description: 'Security options the pod should run with. More info: - https://kubernetes.io/docs/concepts/policy/security-context/ - More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/' + 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: allowPrivilegeEscalation: description: 'AllowPrivilegeEscalation controls whether a @@ -1317,22 +1266,17 @@ spec: 2) has CAP_SYS_ADMIN' type: boolean capabilities: - description: The capabilities to add/drop when running containers. - Defaults to the default set of capabilities granted by the - container runtime. + description: Adds and removes POSIX capabilities from running + containers. properties: add: description: Added capabilities items: - description: Capability represent POSIX capabilities - type type: string type: array drop: description: Removed capabilities items: - description: Capability represent POSIX capabilities - type type: string type: array type: object @@ -1378,12 +1322,8 @@ spec: format: int64 type: integer seLinuxOptions: - description: The SELinux context to be applied to the container. - If unspecified, the container runtime will allocate a random - SELinux context for each container. May also be set in - PodSecurityContext. If set in both SecurityContext and - PodSecurityContext, the value specified in SecurityContext - takes precedence. + description: SELinuxOptions are the labels to be applied to + the container properties: level: description: Level is SELinux level label that applies @@ -1403,10 +1343,8 @@ spec: type: string type: object windowsOptions: - description: The Windows specific settings applied to all - containers. If unspecified, the options from the PodSecurityContext - will be used. If set in both SecurityContext and PodSecurityContext, - the value specified in SecurityContext takes precedence. + description: WindowsSecurityContextOptions contain Windows-specific + options and credentials. properties: gmsaCredentialSpec: description: GMSACredentialSpec is where the GMSA admission @@ -1435,19 +1373,12 @@ spec: type: object type: object startupProbe: - description: 'StartupProbe indicates that the Pod has successfully - initialized. If specified, no other probes are executed until - this completes successfully. If this probe fails, the Pod will - be restarted, just as if the livenessProbe failed. This can - be used to provide different probe parameters at the beginning - of a Pod''s lifecycle, when it might take a long time to load - data or warm a cache, than during steady-state operation. This - cannot be updated. This is an alpha feature enabled by the StartupProbe - feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes' + description: Probe describes a health check to be performed against + a container to determine whether it is alive or ready to receive + traffic. properties: exec: - description: One and only one of the following should be specified. - Exec specifies the action to take. + description: ExecAction describes a "run in container" action. properties: command: description: Command is the command line to execute inside @@ -1469,7 +1400,8 @@ spec: format: int32 type: integer httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGetAction describes an action based on HTTP + Get requests. properties: host: description: Host name to connect to, defaults to the @@ -1499,12 +1431,8 @@ spec: type: string port: anyOf: - - type: integer - type: string - description: Name or number of the port to access on the - container. Number must be in the range 1 to 65535. Name - must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true + - type: integer scheme: description: Scheme to use for connecting to the host. Defaults to HTTP. @@ -1530,9 +1458,8 @@ spec: format: int32 type: integer tcpSocket: - description: 'TCPSocket specifies an action involving a TCP - port. TCP hooks not yet supported TODO: implement a realistic - TCP lifecycle hook' + description: TCPSocketAction describes an action based on + opening a socket properties: host: description: 'Optional: Host name to connect to, defaults @@ -1540,12 +1467,8 @@ spec: type: string port: anyOf: - - type: integer - type: string - description: Number or name of the port to access on the - container. Number must be in the range 1 to 65535. Name - must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true + - type: integer required: - port type: object @@ -1611,8 +1534,8 @@ spec: in the pod type: string required: - - devicePath - name + - devicePath type: object type: array volumeMounts: @@ -1652,8 +1575,8 @@ spec: exclusive. This field is beta in 1.15. type: string required: - - mountPath - name + - mountPath type: object type: array workingDir: @@ -1685,8 +1608,7 @@ spec: you locate the referenced object inside the same namespace. properties: name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string type: object type: array @@ -1750,19 +1672,17 @@ spec: exists or not. Defaults to "".' type: string valueFrom: - description: Source for the environment variable's value. - Cannot be used if value is not empty. + description: EnvVarSource represents a source for the value + of an EnvVar. properties: configMapKeyRef: - description: Selects a key of a ConfigMap. + description: Selects a key from a ConfigMap. properties: key: description: The key to select. type: string name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, - uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string optional: description: Specify whether the ConfigMap or its @@ -1772,10 +1692,8 @@ spec: - key type: object fieldRef: - description: 'Selects a field of the pod: supports metadata.name, - metadata.namespace, metadata.labels, metadata.annotations, - spec.nodeName, spec.serviceAccountName, status.hostIP, - status.podIP.' + description: ObjectFieldSelector selects an APIVersioned + field of an object. properties: apiVersion: description: Version of the schema the FieldPath @@ -1789,19 +1707,14 @@ spec: - fieldPath type: object resourceFieldRef: - description: 'Selects a resource of the container: only - resources limits and requests (limits.cpu, limits.memory, - limits.ephemeral-storage, requests.cpu, requests.memory - and requests.ephemeral-storage) are currently supported.' + description: ResourceFieldSelector represents container + resources (cpu, memory) and their output format properties: containerName: description: 'Container name: required for volumes, optional for env vars' type: string - divisor: - description: Specifies the output format of the - exposed resources, defaults to "1" - type: string + divisor: {} resource: description: 'Required: resource to select' type: string @@ -1809,17 +1722,14 @@ spec: - resource type: object secretKeyRef: - description: Selects a key of a secret in the pod's - namespace + description: SecretKeySelector selects a key of a Secret. properties: key: description: The key of the secret to select from. Must be a valid secret key. type: string name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, - uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string optional: description: Specify whether the Secret or its key @@ -1846,11 +1756,13 @@ spec: ConfigMaps properties: configMapRef: - description: The ConfigMap to select from + description: |- + ConfigMapEnvSource selects a ConfigMap to populate the environment variables with. + + The contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables. properties: name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string optional: description: Specify whether the ConfigMap must be defined @@ -1861,11 +1773,13 @@ spec: in the ConfigMap. Must be a C_IDENTIFIER. type: string secretRef: - description: The Secret to select from + description: |- + SecretEnvSource selects a Secret to populate the environment variables with. + + The contents of the target Secret's Data field will represent the key-value pairs as environment variables. properties: name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string optional: description: Specify whether the Secret must be defined @@ -1885,19 +1799,19 @@ spec: otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images' type: string lifecycle: - description: Actions that the management system should take in - response to container lifecycle events. Cannot be updated. + 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: postStart: - description: 'PostStart is called immediately after a container - is created. If the handler fails, the container is terminated - and restarted according to its restart policy. Other management - of the container blocks until the hook completes. More info: - https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks' + description: Handler defines a specific action that should + be taken properties: exec: - description: One and only one of the following should - be specified. Exec specifies the action to take. + description: ExecAction describes a "run in container" + action. properties: command: description: Command is the command line to execute @@ -1913,7 +1827,8 @@ spec: type: array type: object httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGetAction describes an action based on + HTTP Get requests. properties: host: description: Host name to connect to, defaults to @@ -1943,12 +1858,8 @@ spec: type: string port: anyOf: - - type: integer - type: string - description: Name or number of the port to access - on the container. Number must be in the range 1 - to 65535. Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true + - type: integer scheme: description: Scheme to use for connecting to the host. Defaults to HTTP. @@ -1957,9 +1868,8 @@ spec: - port type: object tcpSocket: - description: 'TCPSocket specifies an action involving - a TCP port. TCP hooks not yet supported TODO: implement - a realistic TCP lifecycle hook' + description: TCPSocketAction describes an action based + on opening a socket properties: host: description: 'Optional: Host name to connect to, defaults @@ -1967,33 +1877,19 @@ spec: type: string port: anyOf: - - type: integer - type: string - description: Number or name of the port to access - on the container. Number must be in the range 1 - to 65535. Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true + - type: integer required: - port type: object type: object preStop: - description: 'PreStop is called immediately before a container - is terminated due to an API request or management event - such as liveness/startup probe failure, preemption, resource - contention, etc. The handler is not called if the container - crashes or exits. The reason for termination is passed to - the handler. The Pod''s termination grace period countdown - begins before the PreStop hooked is executed. Regardless - of the outcome of the handler, the container will eventually - terminate within the Pod''s termination grace period. Other - management of the container blocks until the hook completes - or until the termination grace period is reached. More info: - https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks' + description: Handler defines a specific action that should + be taken properties: exec: - description: One and only one of the following should - be specified. Exec specifies the action to take. + description: ExecAction describes a "run in container" + action. properties: command: description: Command is the command line to execute @@ -2009,7 +1905,8 @@ spec: type: array type: object httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGetAction describes an action based on + HTTP Get requests. properties: host: description: Host name to connect to, defaults to @@ -2039,12 +1936,8 @@ spec: type: string port: anyOf: - - type: integer - type: string - description: Name or number of the port to access - on the container. Number must be in the range 1 - to 65535. Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true + - type: integer scheme: description: Scheme to use for connecting to the host. Defaults to HTTP. @@ -2053,9 +1946,8 @@ spec: - port type: object tcpSocket: - description: 'TCPSocket specifies an action involving - a TCP port. TCP hooks not yet supported TODO: implement - a realistic TCP lifecycle hook' + description: TCPSocketAction describes an action based + on opening a socket properties: host: description: 'Optional: Host name to connect to, defaults @@ -2063,25 +1955,20 @@ spec: type: string port: anyOf: - - type: integer - type: string - description: Number or name of the port to access - on the container. Number must be in the range 1 - to 65535. Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true + - type: integer required: - port type: object type: object type: object livenessProbe: - description: 'Periodic probe of container liveness. Container - will be restarted if the probe fails. Cannot be updated. More - info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes' + description: Probe describes a health check to be performed against + a container to determine whether it is alive or ready to receive + traffic. properties: exec: - description: One and only one of the following should be specified. - Exec specifies the action to take. + description: ExecAction describes a "run in container" action. properties: command: description: Command is the command line to execute inside @@ -2103,7 +1990,8 @@ spec: format: int32 type: integer httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGetAction describes an action based on HTTP + Get requests. properties: host: description: Host name to connect to, defaults to the @@ -2133,12 +2021,8 @@ spec: type: string port: anyOf: - - type: integer - type: string - description: Name or number of the port to access on the - container. Number must be in the range 1 to 65535. Name - must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true + - type: integer scheme: description: Scheme to use for connecting to the host. Defaults to HTTP. @@ -2164,9 +2048,8 @@ spec: format: int32 type: integer tcpSocket: - description: 'TCPSocket specifies an action involving a TCP - port. TCP hooks not yet supported TODO: implement a realistic - TCP lifecycle hook' + description: TCPSocketAction describes an action based on + opening a socket properties: host: description: 'Optional: Host name to connect to, defaults @@ -2174,12 +2057,8 @@ spec: type: string port: anyOf: - - type: integer - type: string - description: Number or name of the port to access on the - container. Number must be in the range 1 to 65535. Name - must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true + - type: integer required: - port type: object @@ -2237,13 +2116,12 @@ spec: type: object type: array readinessProbe: - description: 'Periodic probe of container service readiness. Container - will be removed from service endpoints if the probe fails. Cannot - be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes' + description: Probe describes a health check to be performed against + a container to determine whether it is alive or ready to receive + traffic. properties: exec: - description: One and only one of the following should be specified. - Exec specifies the action to take. + description: ExecAction describes a "run in container" action. properties: command: description: Command is the command line to execute inside @@ -2265,7 +2143,8 @@ spec: format: int32 type: integer httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGetAction describes an action based on HTTP + Get requests. properties: host: description: Host name to connect to, defaults to the @@ -2295,12 +2174,8 @@ spec: type: string port: anyOf: - - type: integer - type: string - description: Name or number of the port to access on the - container. Number must be in the range 1 to 65535. Name - must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true + - type: integer scheme: description: Scheme to use for connecting to the host. Defaults to HTTP. @@ -2326,9 +2201,8 @@ spec: format: int32 type: integer tcpSocket: - description: 'TCPSocket specifies an action involving a TCP - port. TCP hooks not yet supported TODO: implement a realistic - TCP lifecycle hook' + description: TCPSocketAction describes an action based on + opening a socket properties: host: description: 'Optional: Host name to connect to, defaults @@ -2336,12 +2210,8 @@ spec: type: string port: anyOf: - - type: integer - type: string - description: Number or name of the port to access on the - container. Number must be in the range 1 to 65535. Name - must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true + - type: integer required: - port type: object @@ -2353,18 +2223,14 @@ spec: type: integer type: object resources: - description: 'Compute Resources required by this container. Cannot - be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/' + description: ResourceRequirements describes the compute resource + requirements. properties: limits: - additionalProperties: - type: string description: 'Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/' type: object requests: - additionalProperties: - type: string 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 @@ -2372,9 +2238,10 @@ spec: type: object type: object securityContext: - description: 'Security options the pod should run with. More info: - https://kubernetes.io/docs/concepts/policy/security-context/ - More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/' + 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: allowPrivilegeEscalation: description: 'AllowPrivilegeEscalation controls whether a @@ -2385,22 +2252,17 @@ spec: 2) has CAP_SYS_ADMIN' type: boolean capabilities: - description: The capabilities to add/drop when running containers. - Defaults to the default set of capabilities granted by the - container runtime. + description: Adds and removes POSIX capabilities from running + containers. properties: add: description: Added capabilities items: - description: Capability represent POSIX capabilities - type type: string type: array drop: description: Removed capabilities items: - description: Capability represent POSIX capabilities - type type: string type: array type: object @@ -2446,12 +2308,8 @@ spec: format: int64 type: integer seLinuxOptions: - description: The SELinux context to be applied to the container. - If unspecified, the container runtime will allocate a random - SELinux context for each container. May also be set in - PodSecurityContext. If set in both SecurityContext and - PodSecurityContext, the value specified in SecurityContext - takes precedence. + description: SELinuxOptions are the labels to be applied to + the container properties: level: description: Level is SELinux level label that applies @@ -2471,10 +2329,8 @@ spec: type: string type: object windowsOptions: - description: The Windows specific settings applied to all - containers. If unspecified, the options from the PodSecurityContext - will be used. If set in both SecurityContext and PodSecurityContext, - the value specified in SecurityContext takes precedence. + description: WindowsSecurityContextOptions contain Windows-specific + options and credentials. properties: gmsaCredentialSpec: description: GMSACredentialSpec is where the GMSA admission @@ -2503,19 +2359,12 @@ spec: type: object type: object startupProbe: - description: 'StartupProbe indicates that the Pod has successfully - initialized. If specified, no other probes are executed until - this completes successfully. If this probe fails, the Pod will - be restarted, just as if the livenessProbe failed. This can - be used to provide different probe parameters at the beginning - of a Pod''s lifecycle, when it might take a long time to load - data or warm a cache, than during steady-state operation. This - cannot be updated. This is an alpha feature enabled by the StartupProbe - feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes' + description: Probe describes a health check to be performed against + a container to determine whether it is alive or ready to receive + traffic. properties: exec: - description: One and only one of the following should be specified. - Exec specifies the action to take. + description: ExecAction describes a "run in container" action. properties: command: description: Command is the command line to execute inside @@ -2537,7 +2386,8 @@ spec: format: int32 type: integer httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGetAction describes an action based on HTTP + Get requests. properties: host: description: Host name to connect to, defaults to the @@ -2567,12 +2417,8 @@ spec: type: string port: anyOf: - - type: integer - type: string - description: Name or number of the port to access on the - container. Number must be in the range 1 to 65535. Name - must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true + - type: integer scheme: description: Scheme to use for connecting to the host. Defaults to HTTP. @@ -2598,9 +2444,8 @@ spec: format: int32 type: integer tcpSocket: - description: 'TCPSocket specifies an action involving a TCP - port. TCP hooks not yet supported TODO: implement a realistic - TCP lifecycle hook' + description: TCPSocketAction describes an action based on + opening a socket properties: host: description: 'Optional: Host name to connect to, defaults @@ -2608,12 +2453,8 @@ spec: type: string port: anyOf: - - type: integer - type: string - description: Number or name of the port to access on the - container. Number must be in the range 1 to 65535. Name - must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true + - type: integer required: - port type: object @@ -2679,8 +2520,8 @@ spec: in the pod type: string required: - - devicePath - name + - devicePath type: object type: array volumeMounts: @@ -2720,8 +2561,8 @@ spec: exclusive. This field is beta in 1.15. type: string required: - - mountPath - name + - mountPath type: object type: array workingDir: @@ -2745,8 +2586,6 @@ spec: description: Log level for Alertmanager to be configured with. type: string nodeSelector: - additionalProperties: - type: string description: Define which Nodes the Pods are scheduled on. type: object paused: @@ -2754,9 +2593,190 @@ spec: are not goint to be performed, except for delete actions. type: boolean podMetadata: - description: 'Standard object’s metadata. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#metadata - Metadata Labels and Annotations gets propagated to the prometheus - pods.' + description: ObjectMeta is metadata that all persisted resources must + have, which includes all objects users must create. + properties: + annotations: + description: 'Annotations is an unstructured key value map stored + with a resource that may be set by external tools to store and + retrieve arbitrary metadata. They are not queryable and should + be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations' + type: object + clusterName: + description: The name of the cluster which the object belongs to. + This is used to distinguish resources with same name and namespace + in different clusters. This field is not set anywhere right now + and apiserver is going to ignore it if set in create or update + request. + type: string + creationTimestamp: + description: Time is a wrapper around time.Time which supports correct + marshaling to YAML and JSON. Wrappers are provided for many of + the factory methods that the time package offers. + format: date-time + type: string + deletionGracePeriodSeconds: + description: Number of seconds allowed for this object to gracefully + terminate before it will be removed from the system. Only set + when deletionTimestamp is also set. May only be shortened. Read-only. + format: int64 + type: integer + deletionTimestamp: + description: Time is a wrapper around time.Time which supports correct + marshaling to YAML and JSON. Wrappers are provided for many of + the factory methods that the time package offers. + format: date-time + type: string + finalizers: + description: Must be empty before the object is deleted from the + registry. Each entry is an identifier for the responsible component + that will remove the entry from the list. If the deletionTimestamp + of the object is non-nil, entries in this list can only be removed. + items: + type: string + type: array + generateName: + description: |- + GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + type: string + generation: + description: A sequence number representing a specific generation + of the desired state. Populated by the system. Read-only. + format: int64 + type: integer + labels: + description: 'Map of string keys and values that can be used to + organize and categorize (scope and select) objects. May match + selectors of replication controllers and services. More info: + http://kubernetes.io/docs/user-guide/labels' + type: object + managedFields: + description: ManagedFields maps workflow-id and version to the set + of fields that are managed by that workflow. This is mostly for + internal housekeeping, and users typically shouldn't need to set + or understand this field. A workflow can be the user's name, a + controller's name, or the name of a specific apply path like "ci-cd". + The set of fields is always in the version that the workflow used + when modifying the object. + items: + description: ManagedFieldsEntry is a workflow-id, a FieldSet and + the group version of the resource that the fieldset applies + to. + properties: + apiVersion: + description: APIVersion defines the version of this resource + that this field set applies to. The format is "group/version" + just like the top-level APIVersion field. It is necessary + to track the version of a field set because it cannot be + automatically converted. + type: string + fieldsType: + description: 'FieldsType is the discriminator for the different + fields format and version. There is currently only one possible + value: "FieldsV1"' + type: string + fieldsV1: + description: |- + FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format. + + Each key is either a '.' representing the field itself, and will always map to an empty set, or a string representing a sub-field or item. The string will follow one of these four formats: 'f:<name>', where <name> is the name of a field in a struct, or key in a map 'v:<value>', where <value> is the exact json formatted value of a list item 'i:<index>', where <index> is position of a item in a list 'k:<keys>', where <keys> is a map of a list item's key fields to their unique values If a key maps to an empty Fields value, the field that key represents is part of the set. + + The exact format is defined in sigs.k8s.io/structured-merge-diff + type: object + manager: + description: Manager is an identifier of the workflow managing + these fields. + type: string + operation: + description: Operation is the type of operation which lead + to this ManagedFieldsEntry being created. The only valid + values for this field are 'Apply' and 'Update'. + type: string + time: + description: Time is a wrapper around time.Time which supports + correct marshaling to YAML and JSON. Wrappers are provided + for many of the factory methods that the time package offers. + format: date-time + type: string + type: object + type: array + name: + description: 'Name must be unique within a namespace. Is required + when creating resources, although some resources may allow a client + to request the generation of an appropriate name automatically. + Name is primarily intended for creation idempotence and configuration + definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names' + type: string + namespace: + description: |- + Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + type: string + ownerReferences: + description: List of objects depended by this object. If ALL objects + in the list have been deleted, this object will be garbage collected. + If this object is managed by a controller, then an entry in this + list will point to this controller, with the controller field + set to true. There cannot be more than one managing controller. + items: + description: OwnerReference contains enough information to let + you identify an owning object. An owning object must be in the + same namespace as the dependent, or be cluster-scoped, so there + is no namespace field. + properties: + apiVersion: + description: API version of the referent. + type: string + blockOwnerDeletion: + description: If true, AND if the owner has the "foregroundDeletion" + finalizer, then the owner cannot be deleted from the key-value + store until this reference is removed. Defaults to false. + To set this field, a user needs "delete" permission of the + owner, otherwise 422 (Unprocessable Entity) will be returned. + type: boolean + controller: + description: If true, this reference points to the managing + controller. + type: boolean + kind: + description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + name: + description: 'Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names' + type: string + uid: + description: 'UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids' + type: string + required: + - apiVersion + - kind + - name + - uid + type: object + type: array + resourceVersion: + description: |- + An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + type: string + selfLink: + description: |- + SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + type: string + uid: + description: |- + UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + type: string type: object portName: description: Port name used for the pods and governing service. This @@ -2772,17 +2792,13 @@ spec: format: int32 type: integer resources: - description: Define resources requests and limits for single Pods. + description: ResourceRequirements describes the compute resource requirements. properties: limits: - additionalProperties: - type: string description: 'Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/' type: object requests: - additionalProperties: - type: string 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 @@ -2809,17 +2825,18 @@ spec: type: string type: array securityContext: - description: SecurityContext holds pod-level security attributes and - common container settings. This defaults to the default PodSecurityContext. + 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: fsGroup: - 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 1. 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 If unset, the Kubelet will not modify the - ownership and permissions of any volume." + 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: + + 1. 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---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. format: int64 type: integer runAsGroup: @@ -2847,11 +2864,8 @@ spec: format: int64 type: integer seLinuxOptions: - description: The SELinux context to be applied to all containers. - If unspecified, the container runtime will allocate a random SELinux - context for each container. May also be set in SecurityContext. If - set in both SecurityContext and PodSecurityContext, the value - specified in SecurityContext takes precedence for that container. + description: SELinuxOptions are the labels to be applied to the + container properties: level: description: Level is SELinux level label that applies to the @@ -2897,10 +2911,8 @@ spec: type: object type: array windowsOptions: - description: The Windows specific settings applied to all containers. - If unspecified, the options within a container's SecurityContext - will be used. If set in both SecurityContext and PodSecurityContext, - the value specified in SecurityContext takes precedence. + description: WindowsSecurityContextOptions contain Windows-specific + options and credentials. properties: gmsaCredentialSpec: description: GMSACredentialSpec is where the GMSA admission @@ -2937,31 +2949,25 @@ spec: if SHA is set. type: string storage: - description: Storage is the definition of how storage will be used by - the Alertmanager instances. + description: StorageSpec defines the configured storage for a group + Prometheus servers. If neither `emptyDir` nor `volumeClaimTemplate` + is specified, then by default an [EmptyDir](https://kubernetes.io/docs/concepts/storage/volumes/#emptydir) + will be used. properties: emptyDir: - description: 'EmptyDirVolumeSource to be used by the Prometheus - StatefulSets. If specified, used in place of any volumeClaimTemplate. - More info: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir' + description: Represents an empty directory for a pod. Empty directory + volumes support ownership management and SELinux relabeling. properties: medium: 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: https://kubernetes.io/docs/concepts/storage/volumes#emptydir' type: string - sizeLimit: - description: 'Total amount of local storage required for this - EmptyDir volume. The size limit is also applicable for memory - medium. The maximum usage on memory medium EmptyDir would - be the minimum value between the SizeLimit specified here - and the sum of memory limits of all containers in a pod. The - default is nil which means that the limit is undefined. More - info: http://kubernetes.io/docs/user-guide/volumes#emptydir' - type: string + sizeLimit: {} type: object volumeClaimTemplate: - description: A PVC spec to be used by the Prometheus StatefulSets. + description: PersistentVolumeClaim is a user's request for and claim + to a persistent volume properties: apiVersion: description: 'APIVersion defines the versioned schema of this @@ -2976,11 +2982,206 @@ spec: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' type: string metadata: - description: 'Standard object''s metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata' + description: ObjectMeta is metadata that all persisted resources + must have, which includes all objects users must create. + properties: + annotations: + description: 'Annotations is an unstructured key value map + stored with a resource that may be set by external tools + to store and retrieve arbitrary metadata. They are not + queryable and should be preserved when modifying objects. + More info: http://kubernetes.io/docs/user-guide/annotations' + type: object + clusterName: + description: The name of the cluster which the object belongs + to. This is used to distinguish resources with same name + and namespace in different clusters. This field is not + set anywhere right now and apiserver is going to ignore + it if set in create or update request. + type: string + creationTimestamp: + description: Time is a wrapper around time.Time which supports + correct marshaling to YAML and JSON. Wrappers are provided + for many of the factory methods that the time package + offers. + format: date-time + type: string + deletionGracePeriodSeconds: + description: Number of seconds allowed for this object to + gracefully terminate before it will be removed from the + system. Only set when deletionTimestamp is also set. May + only be shortened. Read-only. + format: int64 + type: integer + deletionTimestamp: + description: Time is a wrapper around time.Time which supports + correct marshaling to YAML and JSON. Wrappers are provided + for many of the factory methods that the time package + offers. + format: date-time + type: string + finalizers: + description: Must be empty before the object is deleted + from the registry. Each entry is an identifier for the + responsible component that will remove the entry from + the list. If the deletionTimestamp of the object is non-nil, + entries in this list can only be removed. + items: + type: string + type: array + generateName: + description: |- + GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + type: string + generation: + description: A sequence number representing a specific generation + of the desired state. Populated by the system. Read-only. + format: int64 + type: integer + labels: + description: 'Map of string keys and values that can be + used to organize and categorize (scope and select) objects. + May match selectors of replication controllers and services. + More info: http://kubernetes.io/docs/user-guide/labels' + type: object + managedFields: + description: ManagedFields maps workflow-id and version + to the set of fields that are managed by that workflow. + This is mostly for internal housekeeping, and users typically + shouldn't need to set or understand this field. A workflow + can be the user's name, a controller's name, or the name + of a specific apply path like "ci-cd". The set of fields + is always in the version that the workflow used when modifying + the object. + items: + description: ManagedFieldsEntry is a workflow-id, a FieldSet + and the group version of the resource that the fieldset + applies to. + properties: + apiVersion: + description: APIVersion defines the version of this + resource that this field set applies to. The format + is "group/version" just like the top-level APIVersion + field. It is necessary to track the version of a + field set because it cannot be automatically converted. + type: string + fieldsType: + description: 'FieldsType is the discriminator for + the different fields format and version. There is + currently only one possible value: "FieldsV1"' + type: string + fieldsV1: + description: |- + FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format. + + Each key is either a '.' representing the field itself, and will always map to an empty set, or a string representing a sub-field or item. The string will follow one of these four formats: 'f:<name>', where <name> is the name of a field in a struct, or key in a map 'v:<value>', where <value> is the exact json formatted value of a list item 'i:<index>', where <index> is position of a item in a list 'k:<keys>', where <keys> is a map of a list item's key fields to their unique values If a key maps to an empty Fields value, the field that key represents is part of the set. + + The exact format is defined in sigs.k8s.io/structured-merge-diff + type: object + manager: + description: Manager is an identifier of the workflow + managing these fields. + type: string + operation: + description: Operation is the type of operation which + lead to this ManagedFieldsEntry being created. The + only valid values for this field are 'Apply' and + 'Update'. + type: string + time: + description: Time is a wrapper around time.Time which + supports correct marshaling to YAML and JSON. Wrappers + are provided for many of the factory methods that + the time package offers. + format: date-time + type: string + type: object + type: array + name: + description: 'Name must be unique within a namespace. Is + required when creating resources, although some resources + may allow a client to request the generation of an appropriate + name automatically. Name is primarily intended for creation + idempotence and configuration definition. Cannot be updated. + More info: http://kubernetes.io/docs/user-guide/identifiers#names' + type: string + namespace: + description: |- + Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + type: string + ownerReferences: + description: List of objects depended by this object. If + ALL objects in the list have been deleted, this object + will be garbage collected. If this object is managed by + a controller, then an entry in this list will point to + this controller, with the controller field set to true. + There cannot be more than one managing controller. + items: + description: OwnerReference contains enough information + to let you identify an owning object. An owning object + must be in the same namespace as the dependent, or be + cluster-scoped, so there is no namespace field. + properties: + apiVersion: + description: API version of the referent. + type: string + blockOwnerDeletion: + description: If true, AND if the owner has the "foregroundDeletion" + finalizer, then the owner cannot be deleted from + the key-value store until this reference is removed. + Defaults to false. To set this field, a user needs + "delete" permission of the owner, otherwise 422 + (Unprocessable Entity) will be returned. + type: boolean + controller: + description: If true, this reference points to the + managing controller. + type: boolean + kind: + description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + name: + description: 'Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names' + type: string + uid: + description: 'UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids' + type: string + required: + - apiVersion + - kind + - name + - uid + type: object + type: array + resourceVersion: + description: |- + An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + type: string + selfLink: + description: |- + SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + type: string + uid: + description: |- + UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + type: string type: object spec: - description: 'Spec defines the desired characteristics of a - volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims' + description: PersistentVolumeClaimSpec describes the common + attributes of storage devices and allows a Source for provider-specific + attributes properties: accessModes: description: 'AccessModes contains the desired access modes @@ -2989,16 +3190,9 @@ spec: type: string type: array dataSource: - description: This field requires the VolumeSnapshotDataSource - alpha feature gate to be enabled and currently VolumeSnapshot - is the only supported data source. If the provisioner - can support VolumeSnapshot data source, it will create - a new volume and data will be restored to the volume at - the same time. If the provisioner does not support VolumeSnapshot - data source, volume will not be created and the failure - will be reported as an event. In the future, we plan to - support more data source types and the behavior of the - provisioner may change. + description: TypedLocalObjectReference contains enough information + to let you locate the typed referenced object inside the + same namespace. properties: apiGroup: description: APIGroup is the group for the resource @@ -3017,18 +3211,14 @@ spec: - name type: object resources: - description: 'Resources represents the minimum resources - the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources' + description: ResourceRequirements describes the compute + resource requirements. properties: limits: - additionalProperties: - type: string description: 'Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/' type: object requests: - additionalProperties: - type: string description: 'Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is @@ -3037,8 +3227,10 @@ spec: type: object type: object selector: - description: A label query over volumes to consider for - binding. + 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: matchExpressions: description: matchExpressions is a list of label selector @@ -3073,8 +3265,6 @@ spec: type: object type: array matchLabels: - additionalProperties: - type: string 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 @@ -3097,8 +3287,8 @@ spec: type: string type: object status: - description: 'Status represents the current information/status - of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims' + description: PersistentVolumeClaimStatus is the current status + of a persistent volume claim. properties: accessModes: description: 'AccessModes contains the actual access modes @@ -3107,8 +3297,6 @@ spec: type: string type: array capacity: - additionalProperties: - type: string description: Represents the actual resources of the underlying volume. type: object @@ -3121,12 +3309,17 @@ spec: about state of pvc properties: lastProbeTime: - description: Last time we probed the condition. + description: Time is a wrapper around time.Time which + supports correct marshaling to YAML and JSON. Wrappers + are provided for many of the factory methods that + the time package offers. format: date-time type: string lastTransitionTime: - description: Last time the condition transitioned - from one status to another. + description: Time is a wrapper around time.Time which + supports correct marshaling to YAML and JSON. Wrappers + are provided for many of the factory methods that + the time package offers. format: date-time type: string message: @@ -3143,12 +3336,10 @@ spec: status: type: string type: - description: PersistentVolumeClaimConditionType is - a valid value of PersistentVolumeClaimCondition.Type type: string required: - - status - type + - status type: object type: array phase: @@ -3241,8 +3432,8 @@ spec: SubPath are mutually exclusive. This field is beta in 1.15. type: string required: - - mountPath - name + - mountPath type: object type: array volumes: @@ -3254,18 +3445,17 @@ spec: accessed by any container in the pod. properties: awsElasticBlockStore: - description: 'AWSElasticBlockStore represents an AWS Disk resource - that is attached to a kubelet''s host machine and then exposed - to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore' + description: |- + Represents a Persistent Disk resource in AWS. + + An 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: fsType: 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: - https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - TODO: how do we prevent errors in the filesystem from compromising - the machine' + https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore' type: string partition: description: 'The partition in the volume that you want to @@ -3339,8 +3529,9 @@ spec: - shareName type: object cephfs: - description: CephFS represents a Ceph FS mount on the host that - shares a pod's lifetime + description: Represents a Ceph Filesystem mount that lasts the + lifetime of a pod Cephfs volumes do not support ownership management + or SELinux relabeling. properties: monitors: description: 'Required: Monitors is a collection of Ceph monitors @@ -3362,12 +3553,12 @@ spec: for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it' type: string secretRef: - description: 'Optional: SecretRef is reference to the authentication - secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it' + description: LocalObjectReference contains enough information + to let you locate the referenced object inside the same + namespace. properties: name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string type: object user: @@ -3378,8 +3569,10 @@ spec: - monitors type: object cinder: - description: 'Cinder represents a cinder volume attached and mounted - on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md' + 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: fsType: description: 'Filesystem type to mount. Must be a filesystem @@ -3393,12 +3586,12 @@ spec: info: https://examples.k8s.io/mysql-cinder-pd/README.md' type: boolean secretRef: - description: 'Optional: points to a secret object containing - parameters used to connect to OpenStack.' + description: LocalObjectReference contains enough information + to let you locate the referenced object inside the same + namespace. properties: name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string type: object volumeID: @@ -3409,8 +3602,10 @@ spec: - volumeID type: object configMap: - description: ConfigMap represents a configMap that should populate - this volume + description: |- + Adapts a ConfigMap into a volume. + + The 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: defaultMode: description: 'Optional: mode bits to use on created files @@ -3458,8 +3653,7 @@ spec: type: object type: array name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string optional: description: Specify whether the ConfigMap or its keys must @@ -3467,8 +3661,8 @@ spec: type: boolean type: object csi: - description: CSI (Container Storage Interface) represents storage - that is handled by an external CSI driver (Alpha feature). + description: Represents a source location of a volume to mount, + managed by an external CSI driver properties: driver: description: Driver is the name of the CSI driver that handles @@ -3482,16 +3676,12 @@ spec: to apply. type: string nodePublishSecretRef: - description: NodePublishSecretRef is a reference to the secret - object containing sensitive information to pass to the CSI - driver to complete the CSI NodePublishVolume and NodeUnpublishVolume - calls. This field is optional, and may be empty if no secret - is required. If the secret object contains more than one - secret, all secret references are passed. + description: LocalObjectReference contains enough information + to let you locate the referenced object inside the same + namespace. properties: name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string type: object readOnly: @@ -3499,8 +3689,6 @@ spec: Defaults to false (read/write). type: boolean volumeAttributes: - additionalProperties: - type: string description: VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. @@ -3509,8 +3697,9 @@ spec: - driver type: object downwardAPI: - description: DownwardAPI represents downward API about the pod - that should populate this volume + description: DownwardAPIVolumeSource represents a volume containing + downward API info. Downward API volumes support ownership management + and SELinux relabeling. properties: defaultMode: description: 'Optional: mode bits to use on created files @@ -3528,8 +3717,8 @@ spec: to create the file containing the pod field properties: fieldRef: - description: 'Required: Selects a field of the pod: - only annotations, labels, name and namespace are supported.' + description: ObjectFieldSelector selects an APIVersioned + field of an object. properties: apiVersion: description: Version of the schema the FieldPath @@ -3559,18 +3748,14 @@ spec: ''..''' type: string resourceFieldRef: - description: 'Selects a resource of the container: only - resources limits and requests (limits.cpu, limits.memory, - requests.cpu and requests.memory) are currently supported.' + description: ResourceFieldSelector represents container + resources (cpu, memory) and their output format properties: containerName: description: 'Container name: required for volumes, optional for env vars' type: string - divisor: - description: Specifies the output format of the - exposed resources, defaults to "1" - type: string + divisor: {} resource: description: 'Required: resource to select' type: string @@ -3583,8 +3768,8 @@ spec: type: array type: object emptyDir: - description: 'EmptyDir represents a temporary directory that shares - a pod''s lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir' + description: Represents an empty directory for a pod. Empty directory + volumes support ownership management and SELinux relabeling. properties: medium: description: 'What type of storage medium should back this @@ -3592,26 +3777,17 @@ spec: default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir' type: string - sizeLimit: - description: 'Total amount of local storage required for this - EmptyDir volume. The size limit is also applicable for memory - medium. The maximum usage on memory medium EmptyDir would - be the minimum value between the SizeLimit specified here - and the sum of memory limits of all containers in a pod. - The default is nil which means that the limit is undefined. - More info: http://kubernetes.io/docs/user-guide/volumes#emptydir' - type: string + sizeLimit: {} type: object fc: - description: FC represents a Fibre Channel resource that is attached - to a kubelet's host machine and then exposed to the pod. + 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: fsType: - description: 'Filesystem type to mount. Must be a filesystem + 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. - TODO: how do we prevent errors in the filesystem from compromising - the machine' type: string lun: description: 'Optional: FC target lun number' @@ -3649,8 +3825,6 @@ spec: script. type: string options: - additionalProperties: - type: string description: 'Optional: Extra command options if any.' type: object readOnly: @@ -3658,24 +3832,22 @@ spec: here will force the ReadOnly setting in VolumeMounts.' type: boolean secretRef: - description: 'Optional: SecretRef is reference to the secret - object containing sensitive information to pass to the plugin - scripts. This may be empty if no secret object is specified. - If the secret object contains more than one secret, all - secrets are passed to the plugin scripts.' + description: LocalObjectReference contains enough information + to let you locate the referenced object inside the same + namespace. properties: name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string type: object required: - driver type: object flocker: - description: Flocker represents a Flocker volume attached to a - kubelet's host machine. This depends on the Flocker control - service being running + 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: description: Name of the dataset stored as metadata -> name @@ -3687,18 +3859,17 @@ spec: type: string type: object gcePersistentDisk: - description: 'GCEPersistentDisk represents a GCE Disk resource - that is attached to a kubelet''s host machine and then exposed - to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk' + description: |- + Represents a Persistent Disk resource in Google Compute Engine. + + A 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: fsType: 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: - https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - TODO: how do we prevent errors in the filesystem from compromising - the machine' + https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk' type: string partition: description: 'The partition in the volume that you want to @@ -3720,11 +3891,10 @@ spec: - pdName type: object gitRepo: - description: 'GitRepo represents a git repository at a particular - revision. DEPRECATED: GitRepo is deprecated. To provision a - container with a git repo, mount an EmptyDir into an InitContainer - that clones the repo using git, then mount the EmptyDir into - the Pod''s container.' + 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. + + DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. properties: directory: description: Target directory name. Must not contain or start @@ -3743,8 +3913,9 @@ spec: - repository type: object glusterfs: - description: 'Glusterfs represents a Glusterfs mount on the host - that shares a pod''s lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md' + description: Represents a Glusterfs mount that lasts the lifetime + of a pod. Glusterfs volumes do not support ownership management + or SELinux relabeling. properties: endpoints: description: 'EndpointsName is the endpoint name that details @@ -3764,13 +3935,8 @@ spec: - path type: object hostPath: - description: 'HostPath represents a pre-existing file or directory - on the host machine that is directly exposed to the container. - This is generally used for system agents or other privileged - things that are allowed to see the host machine. Most containers - will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - --- TODO(jonesdl) We need to restrict who can use host directory - mounts and who can/can not mount host directories as read/write.' + description: Represents a host path mapped into a pod. Host path + volumes do not support ownership management or SELinux relabeling. properties: path: description: 'Path of the directory on the host. If the path @@ -3785,9 +3951,9 @@ spec: - path type: object iscsi: - description: 'ISCSI represents an ISCSI Disk resource that is - attached to a kubelet''s host machine and then exposed to the - pod. More info: https://examples.k8s.io/volumes/iscsi/README.md' + description: Represents an ISCSI disk. ISCSI volumes can only + be mounted as read/write once. ISCSI volumes support ownership + management and SELinux relabeling. properties: chapAuthDiscovery: description: whether support iSCSI Discovery CHAP authentication @@ -3800,9 +3966,7 @@ spec: 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: - https://kubernetes.io/docs/concepts/storage/volumes#iscsi - TODO: how do we prevent errors in the filesystem from compromising - the machine' + https://kubernetes.io/docs/concepts/storage/volumes#iscsi' type: string initiatorName: description: Custom iSCSI Initiator Name. If initiatorName @@ -3833,11 +3997,12 @@ spec: in VolumeMounts. Defaults to false. type: boolean secretRef: - description: CHAP Secret for iSCSI target and initiator authentication + description: LocalObjectReference contains enough information + to let you locate the referenced object inside the same + namespace. properties: name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string type: object targetPortal: @@ -3846,17 +4011,18 @@ spec: TCP ports 860 and 3260). type: string required: + - targetPortal - iqn - lun - - targetPortal type: object name: description: 'Volume''s name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string nfs: - description: 'NFS represents an NFS mount on the host that shares - a pod''s lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs' + description: Represents an NFS mount that lasts the lifetime of + a pod. NFS volumes do not support ownership management or SELinux + relabeling. properties: path: description: 'Path that is exported by the NFS server. More @@ -3872,13 +4038,15 @@ spec: NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs' type: string required: - - path - server + - path type: object persistentVolumeClaim: - description: 'PersistentVolumeClaimVolumeSource represents a reference - to a PersistentVolumeClaim in the same namespace. More info: - https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims' + 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: claimName: description: 'ClaimName is the name of a PersistentVolumeClaim @@ -3893,8 +4061,7 @@ spec: - claimName type: object photonPersistentDisk: - description: PhotonPersistentDisk represents a PhotonController - persistent disk attached and mounted on kubelets host machine + description: Represents a Photon Controller persistent disk resource. properties: fsType: description: Filesystem type to mount. Must be a filesystem @@ -3909,8 +4076,8 @@ spec: - pdID type: object portworxVolume: - description: PortworxVolume represents a portworx volume attached - and mounted on kubelets host machine + description: PortworxVolumeSource represents a Portworx volume + resource. properties: fsType: description: FSType represents the filesystem type to mount @@ -3929,8 +4096,7 @@ spec: - volumeID type: object projected: - description: Items for all in one resources secrets, configmaps, - and downward API + description: Represents a projected volume source properties: defaultMode: description: Mode bits to use on created files by default. @@ -3947,8 +4113,10 @@ spec: other supported volume types properties: configMap: - description: information about the configMap data to - project + description: |- + Adapts a ConfigMap into a projected volume. + + The 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: description: If unspecified, each key-value pair @@ -3991,9 +4159,7 @@ spec: type: object type: array name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, - uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string optional: description: Specify whether the ConfigMap or its @@ -4001,8 +4167,10 @@ spec: type: boolean type: object downwardAPI: - description: information about the downwardAPI data - to project + 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: description: Items is a list of DownwardAPIVolume @@ -4013,9 +4181,8 @@ spec: pod field properties: fieldRef: - description: 'Required: Selects a field of - the pod: only annotations, labels, name - and namespace are supported.' + description: ObjectFieldSelector selects an + APIVersioned field of an object. properties: apiVersion: description: Version of the schema the @@ -4047,20 +4214,15 @@ spec: the relative path must not start with ''..''' type: string resourceFieldRef: - description: 'Selects a resource of the container: - only resources limits and requests (limits.cpu, - limits.memory, requests.cpu and requests.memory) - are currently supported.' + description: ResourceFieldSelector represents + container resources (cpu, memory) and their + output format properties: containerName: description: 'Container name: required for volumes, optional for env vars' type: string - divisor: - description: Specifies the output format - of the exposed resources, defaults to - "1" - type: string + divisor: {} resource: description: 'Required: resource to select' type: string @@ -4073,7 +4235,10 @@ spec: type: array type: object secret: - description: information about the secret data to project + description: |- + Adapts a secret into a projected volume. + + The 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: description: If unspecified, each key-value pair @@ -4116,9 +4281,7 @@ spec: type: object type: array name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, - uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string optional: description: Specify whether the Secret or its key @@ -4126,8 +4289,11 @@ spec: type: boolean type: object serviceAccountToken: - description: information about the serviceAccountToken - data to project + description: ServiceAccountTokenProjection represents + a projected service account token volume. This projection + can be used to insert a service account token into + the pods runtime filesystem for use against APIs (Kubernetes + API Server or otherwise). properties: audience: description: Audience is the intended audience of @@ -4162,8 +4328,9 @@ spec: - sources type: object quobyte: - description: Quobyte represents a Quobyte mount on the host that - shares a pod's lifetime + description: Represents a Quobyte mount that lasts the lifetime + of a pod. Quobyte volumes do not support ownership management + or SELinux relabeling. properties: group: description: Group to map volume access to Default is no group @@ -4196,17 +4363,16 @@ spec: - volume type: object rbd: - description: 'RBD represents a Rados Block Device mount on the - host that shares a pod''s lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md' + description: Represents a Rados Block Device mount that lasts + the lifetime of a pod. RBD volumes support ownership management + and SELinux relabeling. properties: fsType: 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: - https://kubernetes.io/docs/concepts/storage/volumes#rbd - TODO: how do we prevent errors in the filesystem from compromising - the machine' + https://kubernetes.io/docs/concepts/storage/volumes#rbd' type: string image: description: 'The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it' @@ -4229,13 +4395,12 @@ spec: in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it' type: boolean secretRef: - description: 'SecretRef is name of the authentication secret - for RBDUser. If provided overrides keyring. Default is nil. - More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it' + description: LocalObjectReference contains enough information + to let you locate the referenced object inside the same + namespace. properties: name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string type: object user: @@ -4243,12 +4408,12 @@ spec: info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it' type: string required: - - image - monitors + - image type: object scaleIO: - description: ScaleIO represents a ScaleIO persistent volume attached - and mounted on Kubernetes nodes. + description: ScaleIOVolumeSource represents a persistent ScaleIO + volume properties: fsType: description: Filesystem type to mount. Must be a filesystem @@ -4267,13 +4432,12 @@ spec: will force the ReadOnly setting in VolumeMounts. type: boolean secretRef: - description: SecretRef references to the secret for ScaleIO - user and other sensitive information. If this is not provided, - Login operation will fail. + description: LocalObjectReference contains enough information + to let you locate the referenced object inside the same + namespace. properties: name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string type: object sslEnabled: @@ -4298,12 +4462,14 @@ spec: type: string required: - gateway - - secretRef - system + - secretRef type: object secret: - description: 'Secret represents a secret that should populate - this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret' + description: |- + Adapts a Secret into a volume. + + The 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: defaultMode: description: 'Optional: mode bits to use on created files @@ -4360,8 +4526,7 @@ spec: type: string type: object storageos: - description: StorageOS represents a StorageOS volume attached - and mounted on Kubernetes nodes. + description: Represents a StorageOS persistent volume resource. properties: fsType: description: Filesystem type to mount. Must be a filesystem @@ -4373,13 +4538,12 @@ spec: will force the ReadOnly setting in VolumeMounts. type: boolean secretRef: - description: SecretRef specifies the secret to use for obtaining - the StorageOS API credentials. If not specified, default - values will be attempted. + description: LocalObjectReference contains enough information + to let you locate the referenced object inside the same + namespace. properties: name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string type: object volumeName: @@ -4399,8 +4563,7 @@ spec: type: string type: object vsphereVolume: - description: VsphereVolume represents a vSphere volume attached - and mounted on kubelets host machine + description: Represents a vSphere volume resource. properties: fsType: description: Filesystem type to mount. Must be a filesystem @@ -4427,9 +4590,9 @@ spec: type: array type: object status: - description: 'Most recent observed status of the Alertmanager cluster. Read-only. - Not included when requesting from the apiserver, only from the Prometheus - Operator API itself. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status' + description: 'AlertmanagerStatus is the most recent observed status of the + Alertmanager cluster. Read-only. Not included when requesting from the + apiserver, only from the Prometheus Operator API itself. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status' properties: availableReplicas: description: Total number of available pods (ready for at least minReadySeconds) @@ -4456,23 +4619,11 @@ spec: format: int32 type: integer required: - - availableReplicas - paused - replicas - - unavailableReplicas - updatedReplicas + - availableReplicas + - unavailableReplicas type: object - required: - - spec type: object version: v1 - versions: - - name: v1 - served: true - storage: true -status: - acceptedNames: - kind: "" - plural: "" - conditions: [] - storedVersions: [] diff --git a/manifests/setup/prometheus-operator-0podmonitorCustomResourceDefinition.yaml b/manifests/setup/prometheus-operator-0podmonitorCustomResourceDefinition.yaml index ae66bdbfe6273834d2795c5a1dde041289eac1e7..8062b3dda8c082ca8eb51b17dd332063e94c5066 100644 --- a/manifests/setup/prometheus-operator-0podmonitorCustomResourceDefinition.yaml +++ b/manifests/setup/prometheus-operator-0podmonitorCustomResourceDefinition.yaml @@ -1,22 +1,16 @@ apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: - annotations: - controller-gen.kubebuilder.io/version: v0.2.4 creationTimestamp: null name: podmonitors.monitoring.coreos.com spec: group: monitoring.coreos.com names: kind: PodMonitor - listKind: PodMonitorList plural: podmonitors - singular: podmonitor - preserveUnknownFields: false scope: Namespaced validation: openAPIV3Schema: - description: PodMonitor defines monitoring for a set of pods. properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -28,18 +22,15 @@ spec: object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' type: string - metadata: - type: object spec: - description: Specification of desired Pod selection for target discovery - by Prometheus. + description: PodMonitorSpec contains specification parameters for a PodMonitor. properties: jobLabel: description: The label to use to retrieve the job name from. type: string namespaceSelector: - description: Selector to select which namespaces the Endpoints objects - are discovered from. + description: NamespaceSelector is a selector for selecting either all + namespaces or a list of namespaces. properties: any: description: Boolean describing whether all namespaces are selected @@ -87,7 +78,7 @@ spec: type: integer regex: description: Regular expression against which the extracted - value is matched. Default is '(.*)' + value is matched. defailt is '(.*)' type: string replacement: description: Replacement value against which a regex replace @@ -114,10 +105,6 @@ spec: type: object type: array params: - additionalProperties: - items: - type: string - type: array description: Optional HTTP URL parameters type: object path: @@ -151,7 +138,7 @@ spec: type: integer regex: description: Regular expression against which the extracted - value is matched. Default is '(.*)' + value is matched. defailt is '(.*)' type: string replacement: description: Replacement value against which a regex replace @@ -185,11 +172,8 @@ spec: type: string targetPort: anyOf: - - type: integer - type: string - description: Name or number of the target port of the endpoint. - Mutually exclusive with port. - x-kubernetes-int-or-string: true + - type: integer type: object type: array podTargetLabels: @@ -204,7 +188,10 @@ spec: format: int64 type: integer selector: - description: Selector to select Pod objects. + 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: matchExpressions: description: matchExpressions is a list of label selector requirements. @@ -237,8 +224,6 @@ spec: type: object type: array matchLabels: - additionalProperties: - type: string 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 @@ -250,17 +235,5 @@ spec: - podMetricsEndpoints - selector type: object - required: - - spec type: object version: v1 - versions: - - name: v1 - served: true - storage: true -status: - acceptedNames: - kind: "" - plural: "" - conditions: [] - storedVersions: [] diff --git a/manifests/setup/prometheus-operator-0prometheusCustomResourceDefinition.yaml b/manifests/setup/prometheus-operator-0prometheusCustomResourceDefinition.yaml index fa62ff05877d4a4904198dc00865b086eba5bcdf..9c450819cc7245655484b350efaca762bf020394 100644 --- a/manifests/setup/prometheus-operator-0prometheusCustomResourceDefinition.yaml +++ b/manifests/setup/prometheus-operator-0prometheusCustomResourceDefinition.yaml @@ -1,22 +1,16 @@ apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: - annotations: - controller-gen.kubebuilder.io/version: v0.2.4 creationTimestamp: null name: prometheuses.monitoring.coreos.com spec: group: monitoring.coreos.com names: kind: Prometheus - listKind: PrometheusList plural: prometheuses - singular: prometheus - preserveUnknownFields: false scope: Namespaced validation: openAPIV3Schema: - description: Prometheus defines a Prometheus deployment. properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -28,32 +22,19 @@ spec: object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' type: string - metadata: - type: object spec: - description: 'Specification of the desired behavior of the Prometheus cluster. - More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status' + description: 'PrometheusSpec is a specification of the desired behavior + of the Prometheus cluster. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status' properties: additionalAlertManagerConfigs: - description: 'AdditionalAlertManagerConfigs allows specifying a key - of a Secret containing additional Prometheus AlertManager configurations. - AlertManager configurations specified are appended to the configurations - generated by the Prometheus Operator. Job configurations specified - must have the form as specified in the official Prometheus documentation: - https://prometheus.io/docs/prometheus/latest/configuration/configuration/#alertmanager_config. - As AlertManager configs are appended, the user is responsible to make - sure it is valid. Note that using this feature may expose the possibility - to break upgrades of Prometheus. It is advised to review Prometheus - release notes to ensure that no incompatible AlertManager configs - are going to break Prometheus after the upgrade.' + description: SecretKeySelector selects a key of a Secret. properties: key: description: The key of the secret to select from. Must be a valid secret key. type: string name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string optional: description: Specify whether the Secret or its key must be defined @@ -62,25 +43,14 @@ spec: - key type: object additionalAlertRelabelConfigs: - description: 'AdditionalAlertRelabelConfigs allows specifying a key - of a Secret containing additional Prometheus alert relabel configurations. - Alert relabel configurations specified are appended to the configurations - generated by the Prometheus Operator. Alert relabel configurations - specified must have the form as specified in the official Prometheus - documentation: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#alert_relabel_configs. - As alert relabel configs are appended, the user is responsible to - make sure it is valid. Note that using this feature may expose the - possibility to break upgrades of Prometheus. It is advised to review - Prometheus release notes to ensure that no incompatible alert relabel - configs are going to break Prometheus after the upgrade.' + description: SecretKeySelector selects a key of a Secret. properties: key: description: The key of the secret to select from. Must be a valid secret key. type: string name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string optional: description: Specify whether the Secret or its key must be defined @@ -89,24 +59,14 @@ spec: - key type: object additionalScrapeConfigs: - description: 'AdditionalScrapeConfigs allows specifying a key of a Secret - containing additional Prometheus scrape configurations. Scrape configurations - specified are appended to the configurations generated by the Prometheus - Operator. Job configurations specified must have the form as specified - in the official Prometheus documentation: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config. - As scrape configs are appended, the user is responsible to make sure - it is valid. Note that using this feature may expose the possibility - to break upgrades of Prometheus. It is advised to review Prometheus - release notes to ensure that no incompatible scrape configs are going - to break Prometheus after the upgrade.' + description: SecretKeySelector selects a key of a Secret. properties: key: description: The key of the secret to select from. Must be a valid secret key. type: string name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string optional: description: Specify whether the Secret or its key must be defined @@ -115,10 +75,11 @@ spec: - key type: object affinity: - description: If specified, the pod's scheduling constraints. + description: Affinity is a group of affinity scheduling rules. properties: nodeAffinity: - description: Describes node affinity scheduling rules for the pod. + description: Node affinity is a group of node affinity scheduling + rules. properties: preferredDuringSchedulingIgnoredDuringExecution: description: The scheduler will prefer to schedule pods to nodes @@ -138,8 +99,10 @@ spec: a no-op). properties: preference: - description: A node selector term, associated with the - corresponding weight. + description: A null or empty node selector term matches + no objects. The requirements of them are ANDed. The + TopologySelectorTerm type implements a subset of the + NodeSelectorTerm. properties: matchExpressions: description: A list of node selector requirements @@ -216,17 +179,15 @@ spec: format: int32 type: integer required: - - preference - weight + - preference type: object type: array requiredDuringSchedulingIgnoredDuringExecution: - description: 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 an update), the system may or may not try to - eventually evict the pod from its node. + 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: description: Required. A list of node selector terms. The @@ -312,8 +273,8 @@ spec: type: object type: object podAffinity: - description: Describes pod affinity scheduling rules (e.g. co-locate - this pod in the same node, zone, etc. as some other pod(s)). + description: Pod affinity is a group of inter pod affinity scheduling + rules. properties: preferredDuringSchedulingIgnoredDuringExecution: description: The scheduler will prefer to schedule pods to nodes @@ -331,12 +292,20 @@ spec: fields are added per-node to find the most preferred node(s) properties: podAffinityTerm: - description: Required. A pod affinity term, associated - with the corresponding weight. + 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> matches that of any node on which + a pod of the set of pods is running properties: labelSelector: - description: A label query over a set of resources, - in this case pods. + 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: matchExpressions: description: matchExpressions is a list of label @@ -372,8 +341,6 @@ spec: type: object type: array matchLabels: - additionalProperties: - type: string description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, @@ -407,8 +374,8 @@ spec: format: int32 type: integer required: - - podAffinityTerm - weight + - podAffinityTerm type: object type: array requiredDuringSchedulingIgnoredDuringExecution: @@ -431,8 +398,10 @@ spec: is running properties: labelSelector: - description: A label query over a set of resources, in - this case pods. + 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: matchExpressions: description: matchExpressions is a list of label selector @@ -467,8 +436,6 @@ spec: type: object type: array matchLabels: - additionalProperties: - type: string 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 @@ -498,9 +465,8 @@ spec: type: array type: object podAntiAffinity: - description: Describes pod anti-affinity scheduling rules (e.g. - avoid putting this pod in the same node, zone, etc. as some other - pod(s)). + description: Pod anti affinity is a group of inter pod anti affinity + scheduling rules. properties: preferredDuringSchedulingIgnoredDuringExecution: description: The scheduler will prefer to schedule pods to nodes @@ -519,12 +485,20 @@ spec: fields are added per-node to find the most preferred node(s) properties: podAffinityTerm: - description: Required. A pod affinity term, associated - with the corresponding weight. + 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> matches that of any node on which + a pod of the set of pods is running properties: labelSelector: - description: A label query over a set of resources, - in this case pods. + 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: matchExpressions: description: matchExpressions is a list of label @@ -560,8 +534,6 @@ spec: type: object type: array matchLabels: - additionalProperties: - type: string description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, @@ -595,8 +567,8 @@ spec: format: int32 type: integer required: - - podAffinityTerm - weight + - podAffinityTerm type: object type: array requiredDuringSchedulingIgnoredDuringExecution: @@ -619,8 +591,10 @@ spec: is running properties: labelSelector: - description: A label query over a set of resources, in - this case pods. + 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: matchExpressions: description: matchExpressions is a list of label selector @@ -655,8 +629,6 @@ spec: type: object type: array matchLabels: - additionalProperties: - type: string 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 @@ -687,7 +659,8 @@ spec: type: object type: object alerting: - description: Define details regarding alerting. + description: AlertingSpec defines parameters for alerting configuration + of Prometheus servers. properties: alertmanagers: description: AlertmanagerEndpoints Prometheus should fire alerts @@ -697,10 +670,6 @@ spec: Endpoints object containing alertmanager IPs to fire alerts against. properties: - apiVersion: - description: Version of the Alertmanager API that Prometheus - uses to send alerts. It can be "v1" or "v2". - type: string bearerTokenFile: description: BearerTokenFile to read from filesystem to use when authenticating to Alertmanager. @@ -716,112 +685,20 @@ spec: type: string port: anyOf: - - type: integer - type: string - description: Port the Alertmanager API is exposed on. - x-kubernetes-int-or-string: true + - type: integer scheme: description: Scheme to use when firing alerts. type: string tlsConfig: - description: TLS Config to use for alertmanager connection. + description: TLSConfig specifies TLS configuration parameters. properties: - ca: - description: Stuct containing the CA cert to use for the - targets. - properties: - configMap: - description: ConfigMap containing data to use for - the targets. - properties: - key: - description: The key to select. - type: string - name: - description: 'Name of the referent. More info: - https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, - uid?' - type: string - optional: - description: Specify whether the ConfigMap or - its key must be defined - type: boolean - required: - - key - type: object - secret: - description: Secret containing data to use for the - targets. - properties: - key: - description: The key of the secret to select from. Must - be a valid secret key. - type: string - name: - description: 'Name of the referent. More info: - https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, - uid?' - type: string - optional: - description: Specify whether the Secret or its - key must be defined - type: boolean - required: - - key - type: object - type: object + ca: {} caFile: description: Path to the CA cert in the Prometheus container to use for the targets. type: string - cert: - description: Struct containing the client cert file for - the targets. - properties: - configMap: - description: ConfigMap containing data to use for - the targets. - properties: - key: - description: The key to select. - type: string - name: - description: 'Name of the referent. More info: - https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, - uid?' - type: string - optional: - description: Specify whether the ConfigMap or - its key must be defined - type: boolean - required: - - key - type: object - secret: - description: Secret containing data to use for the - targets. - properties: - key: - description: The key of the secret to select from. Must - be a valid secret key. - type: string - name: - description: 'Name of the referent. More info: - https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, - uid?' - type: string - optional: - description: Specify whether the Secret or its - key must be defined - type: boolean - required: - - key - type: object - type: object + cert: {} certFile: description: Path to the client cert file in the Prometheus container for the targets. @@ -834,17 +711,14 @@ spec: container for the targets. type: string keySecret: - description: Secret containing the client key file for - the targets. + description: SecretKeySelector selects a key of a Secret. properties: key: description: The key of the secret to select from. Must be a valid secret key. type: string name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, - uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string optional: description: Specify whether the Secret or its key @@ -858,8 +732,8 @@ spec: type: string type: object required: - - name - namespace + - name - port type: object type: array @@ -867,26 +741,22 @@ spec: - alertmanagers type: object apiserverConfig: - description: APIServerConfig allows specifying a host and auth methods - to access apiserver. If left empty, Prometheus is assumed to run inside - of the cluster and will discover API servers automatically and use - the pod's CA certificate and bearer token file at /var/run/secrets/kubernetes.io/serviceaccount/. + description: 'APIServerConfig defines a host and auth methods to access + apiserver. More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#kubernetes_sd_config' properties: basicAuth: - description: BasicAuth allow an endpoint to authenticate over basic - authentication + description: 'BasicAuth allow an endpoint to authenticate over basic + authentication More info: https://prometheus.io/docs/operating/configuration/#endpoints' properties: password: - description: The secret in the service monitor namespace that - contains the password for authentication. + description: SecretKeySelector selects a key of a Secret. properties: key: description: The key of the secret to select from. Must be a valid secret key. type: string name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string optional: description: Specify whether the Secret or its key must @@ -896,16 +766,14 @@ spec: - key type: object username: - description: The secret in the service monitor namespace that - contains the username for authentication. + description: SecretKeySelector selects a key of a Secret. properties: key: description: The key of the secret to select from. Must be a valid secret key. type: string name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string optional: description: Specify whether the Secret or its key must @@ -926,91 +794,14 @@ spec: or IP followed by an optional port number type: string tlsConfig: - description: TLS Config to use for accessing apiserver. + description: TLSConfig specifies TLS configuration parameters. properties: - ca: - description: Stuct containing the CA cert to use for the targets. - properties: - configMap: - description: ConfigMap containing data to use for the targets. - properties: - key: - description: The key to select. - type: string - name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' - type: string - optional: - description: Specify whether the ConfigMap or its key - must be defined - type: boolean - required: - - key - type: object - secret: - description: Secret containing data to use for the targets. - properties: - key: - description: The key of the secret to select from. Must - be a valid secret key. - type: string - name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' - type: string - optional: - description: Specify whether the Secret or its key must - be defined - type: boolean - required: - - key - type: object - type: object + ca: {} caFile: description: Path to the CA cert in the Prometheus container to use for the targets. type: string - cert: - description: Struct containing the client cert file for the - targets. - properties: - configMap: - description: ConfigMap containing data to use for the targets. - properties: - key: - description: The key to select. - type: string - name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' - type: string - optional: - description: Specify whether the ConfigMap or its key - must be defined - type: boolean - required: - - key - type: object - secret: - description: Secret containing data to use for the targets. - properties: - key: - description: The key of the secret to select from. Must - be a valid secret key. - type: string - name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' - type: string - optional: - description: Specify whether the Secret or its key must - be defined - type: boolean - required: - - key - type: object - type: object + cert: {} certFile: description: Path to the client cert file in the Prometheus container for the targets. @@ -1023,15 +814,14 @@ spec: for the targets. type: string keySecret: - description: Secret containing the client key file for the targets. + description: SecretKeySelector selects a key of a Secret. properties: key: description: The key of the secret to select from. Must be a valid secret key. type: string name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string optional: description: Specify whether the Secret or its key must @@ -1047,14 +837,7 @@ spec: required: - host type: object - arbitraryFSAccessThroughSMs: - description: ArbitraryFSAccessThroughSMs configures whether configuration - based on a service monitor can access arbitrary files on the file - system of the Prometheus container e.g. bearer token files. - properties: - deny: - type: boolean - type: object + arbitraryFSAccessThroughSMs: {} baseImage: description: Base image to use for a Prometheus deployment. type: string @@ -1126,19 +909,17 @@ spec: exists or not. Defaults to "".' type: string valueFrom: - description: Source for the environment variable's value. - Cannot be used if value is not empty. + description: EnvVarSource represents a source for the value + of an EnvVar. properties: configMapKeyRef: - description: Selects a key of a ConfigMap. + description: Selects a key from a ConfigMap. properties: key: description: The key to select. type: string name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, - uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string optional: description: Specify whether the ConfigMap or its @@ -1148,10 +929,8 @@ spec: - key type: object fieldRef: - description: 'Selects a field of the pod: supports metadata.name, - metadata.namespace, metadata.labels, metadata.annotations, - spec.nodeName, spec.serviceAccountName, status.hostIP, - status.podIP.' + description: ObjectFieldSelector selects an APIVersioned + field of an object. properties: apiVersion: description: Version of the schema the FieldPath @@ -1165,19 +944,14 @@ spec: - fieldPath type: object resourceFieldRef: - description: 'Selects a resource of the container: only - resources limits and requests (limits.cpu, limits.memory, - limits.ephemeral-storage, requests.cpu, requests.memory - and requests.ephemeral-storage) are currently supported.' + description: ResourceFieldSelector represents container + resources (cpu, memory) and their output format properties: containerName: description: 'Container name: required for volumes, optional for env vars' type: string - divisor: - description: Specifies the output format of the - exposed resources, defaults to "1" - type: string + divisor: {} resource: description: 'Required: resource to select' type: string @@ -1185,17 +959,14 @@ spec: - resource type: object secretKeyRef: - description: Selects a key of a secret in the pod's - namespace + description: SecretKeySelector selects a key of a Secret. properties: key: description: The key of the secret to select from. Must be a valid secret key. type: string name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, - uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string optional: description: Specify whether the Secret or its key @@ -1222,11 +993,13 @@ spec: ConfigMaps properties: configMapRef: - description: The ConfigMap to select from + description: |- + ConfigMapEnvSource selects a ConfigMap to populate the environment variables with. + + The contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables. properties: name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string optional: description: Specify whether the ConfigMap must be defined @@ -1237,11 +1010,13 @@ spec: in the ConfigMap. Must be a C_IDENTIFIER. type: string secretRef: - description: The Secret to select from + description: |- + SecretEnvSource selects a Secret to populate the environment variables with. + + The contents of the target Secret's Data field will represent the key-value pairs as environment variables. properties: name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string optional: description: Specify whether the Secret must be defined @@ -1261,19 +1036,19 @@ spec: otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images' type: string lifecycle: - description: Actions that the management system should take in - response to container lifecycle events. Cannot be updated. + 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: postStart: - description: 'PostStart is called immediately after a container - is created. If the handler fails, the container is terminated - and restarted according to its restart policy. Other management - of the container blocks until the hook completes. More info: - https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks' + description: Handler defines a specific action that should + be taken properties: exec: - description: One and only one of the following should - be specified. Exec specifies the action to take. + description: ExecAction describes a "run in container" + action. properties: command: description: Command is the command line to execute @@ -1289,7 +1064,8 @@ spec: type: array type: object httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGetAction describes an action based on + HTTP Get requests. properties: host: description: Host name to connect to, defaults to @@ -1319,12 +1095,8 @@ spec: type: string port: anyOf: - - type: integer - type: string - description: Name or number of the port to access - on the container. Number must be in the range 1 - to 65535. Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true + - type: integer scheme: description: Scheme to use for connecting to the host. Defaults to HTTP. @@ -1333,9 +1105,8 @@ spec: - port type: object tcpSocket: - description: 'TCPSocket specifies an action involving - a TCP port. TCP hooks not yet supported TODO: implement - a realistic TCP lifecycle hook' + description: TCPSocketAction describes an action based + on opening a socket properties: host: description: 'Optional: Host name to connect to, defaults @@ -1343,33 +1114,19 @@ spec: type: string port: anyOf: - - type: integer - type: string - description: Number or name of the port to access - on the container. Number must be in the range 1 - to 65535. Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true + - type: integer required: - port type: object type: object preStop: - description: 'PreStop is called immediately before a container - is terminated due to an API request or management event - such as liveness/startup probe failure, preemption, resource - contention, etc. The handler is not called if the container - crashes or exits. The reason for termination is passed to - the handler. The Pod''s termination grace period countdown - begins before the PreStop hooked is executed. Regardless - of the outcome of the handler, the container will eventually - terminate within the Pod''s termination grace period. Other - management of the container blocks until the hook completes - or until the termination grace period is reached. More info: - https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks' + description: Handler defines a specific action that should + be taken properties: exec: - description: One and only one of the following should - be specified. Exec specifies the action to take. + description: ExecAction describes a "run in container" + action. properties: command: description: Command is the command line to execute @@ -1385,7 +1142,8 @@ spec: type: array type: object httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGetAction describes an action based on + HTTP Get requests. properties: host: description: Host name to connect to, defaults to @@ -1415,12 +1173,8 @@ spec: type: string port: anyOf: - - type: integer - type: string - description: Name or number of the port to access - on the container. Number must be in the range 1 - to 65535. Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true + - type: integer scheme: description: Scheme to use for connecting to the host. Defaults to HTTP. @@ -1429,9 +1183,8 @@ spec: - port type: object tcpSocket: - description: 'TCPSocket specifies an action involving - a TCP port. TCP hooks not yet supported TODO: implement - a realistic TCP lifecycle hook' + description: TCPSocketAction describes an action based + on opening a socket properties: host: description: 'Optional: Host name to connect to, defaults @@ -1439,25 +1192,20 @@ spec: type: string port: anyOf: - - type: integer - type: string - description: Number or name of the port to access - on the container. Number must be in the range 1 - to 65535. Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true + - type: integer required: - port type: object type: object type: object livenessProbe: - description: 'Periodic probe of container liveness. Container - will be restarted if the probe fails. Cannot be updated. More - info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes' + description: Probe describes a health check to be performed against + a container to determine whether it is alive or ready to receive + traffic. properties: exec: - description: One and only one of the following should be specified. - Exec specifies the action to take. + description: ExecAction describes a "run in container" action. properties: command: description: Command is the command line to execute inside @@ -1479,7 +1227,8 @@ spec: format: int32 type: integer httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGetAction describes an action based on HTTP + Get requests. properties: host: description: Host name to connect to, defaults to the @@ -1509,12 +1258,8 @@ spec: type: string port: anyOf: - - type: integer - type: string - description: Name or number of the port to access on the - container. Number must be in the range 1 to 65535. Name - must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true + - type: integer scheme: description: Scheme to use for connecting to the host. Defaults to HTTP. @@ -1540,9 +1285,8 @@ spec: format: int32 type: integer tcpSocket: - description: 'TCPSocket specifies an action involving a TCP - port. TCP hooks not yet supported TODO: implement a realistic - TCP lifecycle hook' + description: TCPSocketAction describes an action based on + opening a socket properties: host: description: 'Optional: Host name to connect to, defaults @@ -1550,12 +1294,8 @@ spec: type: string port: anyOf: - - type: integer - type: string - description: Number or name of the port to access on the - container. Number must be in the range 1 to 65535. Name - must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true + - type: integer required: - port type: object @@ -1613,13 +1353,12 @@ spec: type: object type: array readinessProbe: - description: 'Periodic probe of container service readiness. Container - will be removed from service endpoints if the probe fails. Cannot - be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes' + description: Probe describes a health check to be performed against + a container to determine whether it is alive or ready to receive + traffic. properties: exec: - description: One and only one of the following should be specified. - Exec specifies the action to take. + description: ExecAction describes a "run in container" action. properties: command: description: Command is the command line to execute inside @@ -1641,7 +1380,8 @@ spec: format: int32 type: integer httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGetAction describes an action based on HTTP + Get requests. properties: host: description: Host name to connect to, defaults to the @@ -1671,12 +1411,8 @@ spec: type: string port: anyOf: - - type: integer - type: string - description: Name or number of the port to access on the - container. Number must be in the range 1 to 65535. Name - must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true + - type: integer scheme: description: Scheme to use for connecting to the host. Defaults to HTTP. @@ -1702,9 +1438,8 @@ spec: format: int32 type: integer tcpSocket: - description: 'TCPSocket specifies an action involving a TCP - port. TCP hooks not yet supported TODO: implement a realistic - TCP lifecycle hook' + description: TCPSocketAction describes an action based on + opening a socket properties: host: description: 'Optional: Host name to connect to, defaults @@ -1712,12 +1447,8 @@ spec: type: string port: anyOf: - - type: integer - type: string - description: Number or name of the port to access on the - container. Number must be in the range 1 to 65535. Name - must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true + - type: integer required: - port type: object @@ -1729,18 +1460,14 @@ spec: type: integer type: object resources: - description: 'Compute Resources required by this container. Cannot - be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/' + description: ResourceRequirements describes the compute resource + requirements. properties: limits: - additionalProperties: - type: string description: 'Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/' type: object requests: - additionalProperties: - type: string 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 @@ -1748,9 +1475,10 @@ spec: type: object type: object securityContext: - description: 'Security options the pod should run with. More info: - https://kubernetes.io/docs/concepts/policy/security-context/ - More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/' + 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: allowPrivilegeEscalation: description: 'AllowPrivilegeEscalation controls whether a @@ -1761,22 +1489,17 @@ spec: 2) has CAP_SYS_ADMIN' type: boolean capabilities: - description: The capabilities to add/drop when running containers. - Defaults to the default set of capabilities granted by the - container runtime. + description: Adds and removes POSIX capabilities from running + containers. properties: add: description: Added capabilities items: - description: Capability represent POSIX capabilities - type type: string type: array drop: description: Removed capabilities items: - description: Capability represent POSIX capabilities - type type: string type: array type: object @@ -1822,12 +1545,8 @@ spec: format: int64 type: integer seLinuxOptions: - description: The SELinux context to be applied to the container. - If unspecified, the container runtime will allocate a random - SELinux context for each container. May also be set in - PodSecurityContext. If set in both SecurityContext and - PodSecurityContext, the value specified in SecurityContext - takes precedence. + description: SELinuxOptions are the labels to be applied to + the container properties: level: description: Level is SELinux level label that applies @@ -1847,10 +1566,8 @@ spec: type: string type: object windowsOptions: - description: The Windows specific settings applied to all - containers. If unspecified, the options from the PodSecurityContext - will be used. If set in both SecurityContext and PodSecurityContext, - the value specified in SecurityContext takes precedence. + description: WindowsSecurityContextOptions contain Windows-specific + options and credentials. properties: gmsaCredentialSpec: description: GMSACredentialSpec is where the GMSA admission @@ -1879,19 +1596,12 @@ spec: type: object type: object startupProbe: - description: 'StartupProbe indicates that the Pod has successfully - initialized. If specified, no other probes are executed until - this completes successfully. If this probe fails, the Pod will - be restarted, just as if the livenessProbe failed. This can - be used to provide different probe parameters at the beginning - of a Pod''s lifecycle, when it might take a long time to load - data or warm a cache, than during steady-state operation. This - cannot be updated. This is an alpha feature enabled by the StartupProbe - feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes' + description: Probe describes a health check to be performed against + a container to determine whether it is alive or ready to receive + traffic. properties: exec: - description: One and only one of the following should be specified. - Exec specifies the action to take. + description: ExecAction describes a "run in container" action. properties: command: description: Command is the command line to execute inside @@ -1913,7 +1623,8 @@ spec: format: int32 type: integer httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGetAction describes an action based on HTTP + Get requests. properties: host: description: Host name to connect to, defaults to the @@ -1943,12 +1654,8 @@ spec: type: string port: anyOf: - - type: integer - type: string - description: Name or number of the port to access on the - container. Number must be in the range 1 to 65535. Name - must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true + - type: integer scheme: description: Scheme to use for connecting to the host. Defaults to HTTP. @@ -1974,9 +1681,8 @@ spec: format: int32 type: integer tcpSocket: - description: 'TCPSocket specifies an action involving a TCP - port. TCP hooks not yet supported TODO: implement a realistic - TCP lifecycle hook' + description: TCPSocketAction describes an action based on + opening a socket properties: host: description: 'Optional: Host name to connect to, defaults @@ -1984,12 +1690,8 @@ spec: type: string port: anyOf: - - type: integer - type: string - description: Number or name of the port to access on the - container. Number must be in the range 1 to 65535. Name - must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true + - type: integer required: - port type: object @@ -2055,8 +1757,8 @@ spec: in the pod type: string required: - - devicePath - name + - devicePath type: object type: array volumeMounts: @@ -2096,8 +1798,8 @@ spec: exclusive. This field is beta in 1.15. type: string required: - - mountPath - name + - mountPath type: object type: array workingDir: @@ -2109,9 +1811,6 @@ spec: - name type: object type: array - disableCompaction: - description: Disable prometheus compaction. - type: boolean enableAdminAPI: description: 'Enable access to prometheus web admin API. Defaults to the value of `false`. WARNING: Enabling the admin APIs enables mutating @@ -2129,8 +1828,6 @@ spec: description: Interval between consecutive evaluations. type: string externalLabels: - additionalProperties: - type: string description: The labels to add to any time series or alerts when communicating with external systems (federation, remote storage, Alertmanager). type: object @@ -2160,8 +1857,7 @@ spec: you locate the referenced object inside the same namespace. properties: name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string type: object type: array @@ -2225,19 +1921,17 @@ spec: exists or not. Defaults to "".' type: string valueFrom: - description: Source for the environment variable's value. - Cannot be used if value is not empty. + description: EnvVarSource represents a source for the value + of an EnvVar. properties: configMapKeyRef: - description: Selects a key of a ConfigMap. + description: Selects a key from a ConfigMap. properties: key: description: The key to select. type: string name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, - uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string optional: description: Specify whether the ConfigMap or its @@ -2247,10 +1941,8 @@ spec: - key type: object fieldRef: - description: 'Selects a field of the pod: supports metadata.name, - metadata.namespace, metadata.labels, metadata.annotations, - spec.nodeName, spec.serviceAccountName, status.hostIP, - status.podIP.' + description: ObjectFieldSelector selects an APIVersioned + field of an object. properties: apiVersion: description: Version of the schema the FieldPath @@ -2264,19 +1956,14 @@ spec: - fieldPath type: object resourceFieldRef: - description: 'Selects a resource of the container: only - resources limits and requests (limits.cpu, limits.memory, - limits.ephemeral-storage, requests.cpu, requests.memory - and requests.ephemeral-storage) are currently supported.' + description: ResourceFieldSelector represents container + resources (cpu, memory) and their output format properties: containerName: description: 'Container name: required for volumes, optional for env vars' type: string - divisor: - description: Specifies the output format of the - exposed resources, defaults to "1" - type: string + divisor: {} resource: description: 'Required: resource to select' type: string @@ -2284,17 +1971,14 @@ spec: - resource type: object secretKeyRef: - description: Selects a key of a secret in the pod's - namespace + description: SecretKeySelector selects a key of a Secret. properties: key: description: The key of the secret to select from. Must be a valid secret key. type: string name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, - uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string optional: description: Specify whether the Secret or its key @@ -2321,11 +2005,13 @@ spec: ConfigMaps properties: configMapRef: - description: The ConfigMap to select from + description: |- + ConfigMapEnvSource selects a ConfigMap to populate the environment variables with. + + The contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables. properties: name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string optional: description: Specify whether the ConfigMap must be defined @@ -2336,11 +2022,13 @@ spec: in the ConfigMap. Must be a C_IDENTIFIER. type: string secretRef: - description: The Secret to select from + description: |- + SecretEnvSource selects a Secret to populate the environment variables with. + + The contents of the target Secret's Data field will represent the key-value pairs as environment variables. properties: name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string optional: description: Specify whether the Secret must be defined @@ -2360,19 +2048,19 @@ spec: otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images' type: string lifecycle: - description: Actions that the management system should take in - response to container lifecycle events. Cannot be updated. + 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: postStart: - description: 'PostStart is called immediately after a container - is created. If the handler fails, the container is terminated - and restarted according to its restart policy. Other management - of the container blocks until the hook completes. More info: - https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks' + description: Handler defines a specific action that should + be taken properties: exec: - description: One and only one of the following should - be specified. Exec specifies the action to take. + description: ExecAction describes a "run in container" + action. properties: command: description: Command is the command line to execute @@ -2388,7 +2076,8 @@ spec: type: array type: object httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGetAction describes an action based on + HTTP Get requests. properties: host: description: Host name to connect to, defaults to @@ -2418,12 +2107,8 @@ spec: type: string port: anyOf: - - type: integer - type: string - description: Name or number of the port to access - on the container. Number must be in the range 1 - to 65535. Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true + - type: integer scheme: description: Scheme to use for connecting to the host. Defaults to HTTP. @@ -2432,9 +2117,8 @@ spec: - port type: object tcpSocket: - description: 'TCPSocket specifies an action involving - a TCP port. TCP hooks not yet supported TODO: implement - a realistic TCP lifecycle hook' + description: TCPSocketAction describes an action based + on opening a socket properties: host: description: 'Optional: Host name to connect to, defaults @@ -2442,33 +2126,19 @@ spec: type: string port: anyOf: - - type: integer - type: string - description: Number or name of the port to access - on the container. Number must be in the range 1 - to 65535. Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true + - type: integer required: - port type: object type: object preStop: - description: 'PreStop is called immediately before a container - is terminated due to an API request or management event - such as liveness/startup probe failure, preemption, resource - contention, etc. The handler is not called if the container - crashes or exits. The reason for termination is passed to - the handler. The Pod''s termination grace period countdown - begins before the PreStop hooked is executed. Regardless - of the outcome of the handler, the container will eventually - terminate within the Pod''s termination grace period. Other - management of the container blocks until the hook completes - or until the termination grace period is reached. More info: - https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks' + description: Handler defines a specific action that should + be taken properties: exec: - description: One and only one of the following should - be specified. Exec specifies the action to take. + description: ExecAction describes a "run in container" + action. properties: command: description: Command is the command line to execute @@ -2484,7 +2154,8 @@ spec: type: array type: object httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGetAction describes an action based on + HTTP Get requests. properties: host: description: Host name to connect to, defaults to @@ -2514,12 +2185,8 @@ spec: type: string port: anyOf: - - type: integer - type: string - description: Name or number of the port to access - on the container. Number must be in the range 1 - to 65535. Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true + - type: integer scheme: description: Scheme to use for connecting to the host. Defaults to HTTP. @@ -2528,9 +2195,8 @@ spec: - port type: object tcpSocket: - description: 'TCPSocket specifies an action involving - a TCP port. TCP hooks not yet supported TODO: implement - a realistic TCP lifecycle hook' + description: TCPSocketAction describes an action based + on opening a socket properties: host: description: 'Optional: Host name to connect to, defaults @@ -2538,25 +2204,20 @@ spec: type: string port: anyOf: - - type: integer - type: string - description: Number or name of the port to access - on the container. Number must be in the range 1 - to 65535. Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true + - type: integer required: - port type: object type: object type: object livenessProbe: - description: 'Periodic probe of container liveness. Container - will be restarted if the probe fails. Cannot be updated. More - info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes' + description: Probe describes a health check to be performed against + a container to determine whether it is alive or ready to receive + traffic. properties: exec: - description: One and only one of the following should be specified. - Exec specifies the action to take. + description: ExecAction describes a "run in container" action. properties: command: description: Command is the command line to execute inside @@ -2578,7 +2239,8 @@ spec: format: int32 type: integer httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGetAction describes an action based on HTTP + Get requests. properties: host: description: Host name to connect to, defaults to the @@ -2608,12 +2270,8 @@ spec: type: string port: anyOf: - - type: integer - type: string - description: Name or number of the port to access on the - container. Number must be in the range 1 to 65535. Name - must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true + - type: integer scheme: description: Scheme to use for connecting to the host. Defaults to HTTP. @@ -2639,9 +2297,8 @@ spec: format: int32 type: integer tcpSocket: - description: 'TCPSocket specifies an action involving a TCP - port. TCP hooks not yet supported TODO: implement a realistic - TCP lifecycle hook' + description: TCPSocketAction describes an action based on + opening a socket properties: host: description: 'Optional: Host name to connect to, defaults @@ -2649,12 +2306,8 @@ spec: type: string port: anyOf: - - type: integer - type: string - description: Number or name of the port to access on the - container. Number must be in the range 1 to 65535. Name - must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true + - type: integer required: - port type: object @@ -2712,13 +2365,12 @@ spec: type: object type: array readinessProbe: - description: 'Periodic probe of container service readiness. Container - will be removed from service endpoints if the probe fails. Cannot - be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes' + description: Probe describes a health check to be performed against + a container to determine whether it is alive or ready to receive + traffic. properties: exec: - description: One and only one of the following should be specified. - Exec specifies the action to take. + description: ExecAction describes a "run in container" action. properties: command: description: Command is the command line to execute inside @@ -2740,7 +2392,8 @@ spec: format: int32 type: integer httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGetAction describes an action based on HTTP + Get requests. properties: host: description: Host name to connect to, defaults to the @@ -2770,12 +2423,8 @@ spec: type: string port: anyOf: - - type: integer - type: string - description: Name or number of the port to access on the - container. Number must be in the range 1 to 65535. Name - must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true + - type: integer scheme: description: Scheme to use for connecting to the host. Defaults to HTTP. @@ -2801,9 +2450,8 @@ spec: format: int32 type: integer tcpSocket: - description: 'TCPSocket specifies an action involving a TCP - port. TCP hooks not yet supported TODO: implement a realistic - TCP lifecycle hook' + description: TCPSocketAction describes an action based on + opening a socket properties: host: description: 'Optional: Host name to connect to, defaults @@ -2811,12 +2459,8 @@ spec: type: string port: anyOf: - - type: integer - type: string - description: Number or name of the port to access on the - container. Number must be in the range 1 to 65535. Name - must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true + - type: integer required: - port type: object @@ -2828,18 +2472,14 @@ spec: type: integer type: object resources: - description: 'Compute Resources required by this container. Cannot - be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/' + description: ResourceRequirements describes the compute resource + requirements. properties: limits: - additionalProperties: - type: string description: 'Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/' type: object requests: - additionalProperties: - type: string 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 @@ -2847,9 +2487,10 @@ spec: type: object type: object securityContext: - description: 'Security options the pod should run with. More info: - https://kubernetes.io/docs/concepts/policy/security-context/ - More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/' + 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: allowPrivilegeEscalation: description: 'AllowPrivilegeEscalation controls whether a @@ -2860,22 +2501,17 @@ spec: 2) has CAP_SYS_ADMIN' type: boolean capabilities: - description: The capabilities to add/drop when running containers. - Defaults to the default set of capabilities granted by the - container runtime. + description: Adds and removes POSIX capabilities from running + containers. properties: add: description: Added capabilities items: - description: Capability represent POSIX capabilities - type type: string type: array drop: description: Removed capabilities items: - description: Capability represent POSIX capabilities - type type: string type: array type: object @@ -2921,12 +2557,8 @@ spec: format: int64 type: integer seLinuxOptions: - description: The SELinux context to be applied to the container. - If unspecified, the container runtime will allocate a random - SELinux context for each container. May also be set in - PodSecurityContext. If set in both SecurityContext and - PodSecurityContext, the value specified in SecurityContext - takes precedence. + description: SELinuxOptions are the labels to be applied to + the container properties: level: description: Level is SELinux level label that applies @@ -2946,10 +2578,8 @@ spec: type: string type: object windowsOptions: - description: The Windows specific settings applied to all - containers. If unspecified, the options from the PodSecurityContext - will be used. If set in both SecurityContext and PodSecurityContext, - the value specified in SecurityContext takes precedence. + description: WindowsSecurityContextOptions contain Windows-specific + options and credentials. properties: gmsaCredentialSpec: description: GMSACredentialSpec is where the GMSA admission @@ -2978,19 +2608,12 @@ spec: type: object type: object startupProbe: - description: 'StartupProbe indicates that the Pod has successfully - initialized. If specified, no other probes are executed until - this completes successfully. If this probe fails, the Pod will - be restarted, just as if the livenessProbe failed. This can - be used to provide different probe parameters at the beginning - of a Pod''s lifecycle, when it might take a long time to load - data or warm a cache, than during steady-state operation. This - cannot be updated. This is an alpha feature enabled by the StartupProbe - feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes' + description: Probe describes a health check to be performed against + a container to determine whether it is alive or ready to receive + traffic. properties: exec: - description: One and only one of the following should be specified. - Exec specifies the action to take. + description: ExecAction describes a "run in container" action. properties: command: description: Command is the command line to execute inside @@ -3012,7 +2635,8 @@ spec: format: int32 type: integer httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGetAction describes an action based on HTTP + Get requests. properties: host: description: Host name to connect to, defaults to the @@ -3042,12 +2666,8 @@ spec: type: string port: anyOf: - - type: integer - type: string - description: Name or number of the port to access on the - container. Number must be in the range 1 to 65535. Name - must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true + - type: integer scheme: description: Scheme to use for connecting to the host. Defaults to HTTP. @@ -3073,9 +2693,8 @@ spec: format: int32 type: integer tcpSocket: - description: 'TCPSocket specifies an action involving a TCP - port. TCP hooks not yet supported TODO: implement a realistic - TCP lifecycle hook' + description: TCPSocketAction describes an action based on + opening a socket properties: host: description: 'Optional: Host name to connect to, defaults @@ -3083,12 +2702,8 @@ spec: type: string port: anyOf: - - type: integer - type: string - description: Number or name of the port to access on the - container. Number must be in the range 1 to 65535. Name - must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true + - type: integer required: - port type: object @@ -3154,8 +2769,8 @@ spec: in the pod type: string required: - - devicePath - name + - devicePath type: object type: array volumeMounts: @@ -3195,8 +2810,8 @@ spec: exclusive. This field is beta in 1.15. type: string required: - - mountPath - name + - mountPath type: object type: array workingDir: @@ -3219,8 +2834,6 @@ spec: description: Log level for Prometheus to be configured with. type: string nodeSelector: - additionalProperties: - type: string description: Define which Nodes the Pods are scheduled on. type: object overrideHonorLabels: @@ -3237,13 +2850,196 @@ spec: for deletion will be performed on the underlying objects. type: boolean podMetadata: - description: 'Standard object’s metadata. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#metadata - Metadata Labels and Annotations gets propagated to the prometheus - pods.' + description: ObjectMeta is metadata that all persisted resources must + have, which includes all objects users must create. + properties: + annotations: + description: 'Annotations is an unstructured key value map stored + with a resource that may be set by external tools to store and + retrieve arbitrary metadata. They are not queryable and should + be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations' + type: object + clusterName: + description: The name of the cluster which the object belongs to. + This is used to distinguish resources with same name and namespace + in different clusters. This field is not set anywhere right now + and apiserver is going to ignore it if set in create or update + request. + type: string + creationTimestamp: + description: Time is a wrapper around time.Time which supports correct + marshaling to YAML and JSON. Wrappers are provided for many of + the factory methods that the time package offers. + format: date-time + type: string + deletionGracePeriodSeconds: + description: Number of seconds allowed for this object to gracefully + terminate before it will be removed from the system. Only set + when deletionTimestamp is also set. May only be shortened. Read-only. + format: int64 + type: integer + deletionTimestamp: + description: Time is a wrapper around time.Time which supports correct + marshaling to YAML and JSON. Wrappers are provided for many of + the factory methods that the time package offers. + format: date-time + type: string + finalizers: + description: Must be empty before the object is deleted from the + registry. Each entry is an identifier for the responsible component + that will remove the entry from the list. If the deletionTimestamp + of the object is non-nil, entries in this list can only be removed. + items: + type: string + type: array + generateName: + description: |- + GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + type: string + generation: + description: A sequence number representing a specific generation + of the desired state. Populated by the system. Read-only. + format: int64 + type: integer + labels: + description: 'Map of string keys and values that can be used to + organize and categorize (scope and select) objects. May match + selectors of replication controllers and services. More info: + http://kubernetes.io/docs/user-guide/labels' + type: object + managedFields: + description: ManagedFields maps workflow-id and version to the set + of fields that are managed by that workflow. This is mostly for + internal housekeeping, and users typically shouldn't need to set + or understand this field. A workflow can be the user's name, a + controller's name, or the name of a specific apply path like "ci-cd". + The set of fields is always in the version that the workflow used + when modifying the object. + items: + description: ManagedFieldsEntry is a workflow-id, a FieldSet and + the group version of the resource that the fieldset applies + to. + properties: + apiVersion: + description: APIVersion defines the version of this resource + that this field set applies to. The format is "group/version" + just like the top-level APIVersion field. It is necessary + to track the version of a field set because it cannot be + automatically converted. + type: string + fieldsType: + description: 'FieldsType is the discriminator for the different + fields format and version. There is currently only one possible + value: "FieldsV1"' + type: string + fieldsV1: + description: |- + FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format. + + Each key is either a '.' representing the field itself, and will always map to an empty set, or a string representing a sub-field or item. The string will follow one of these four formats: 'f:<name>', where <name> is the name of a field in a struct, or key in a map 'v:<value>', where <value> is the exact json formatted value of a list item 'i:<index>', where <index> is position of a item in a list 'k:<keys>', where <keys> is a map of a list item's key fields to their unique values If a key maps to an empty Fields value, the field that key represents is part of the set. + + The exact format is defined in sigs.k8s.io/structured-merge-diff + type: object + manager: + description: Manager is an identifier of the workflow managing + these fields. + type: string + operation: + description: Operation is the type of operation which lead + to this ManagedFieldsEntry being created. The only valid + values for this field are 'Apply' and 'Update'. + type: string + time: + description: Time is a wrapper around time.Time which supports + correct marshaling to YAML and JSON. Wrappers are provided + for many of the factory methods that the time package offers. + format: date-time + type: string + type: object + type: array + name: + description: 'Name must be unique within a namespace. Is required + when creating resources, although some resources may allow a client + to request the generation of an appropriate name automatically. + Name is primarily intended for creation idempotence and configuration + definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names' + type: string + namespace: + description: |- + Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + type: string + ownerReferences: + description: List of objects depended by this object. If ALL objects + in the list have been deleted, this object will be garbage collected. + If this object is managed by a controller, then an entry in this + list will point to this controller, with the controller field + set to true. There cannot be more than one managing controller. + items: + description: OwnerReference contains enough information to let + you identify an owning object. An owning object must be in the + same namespace as the dependent, or be cluster-scoped, so there + is no namespace field. + properties: + apiVersion: + description: API version of the referent. + type: string + blockOwnerDeletion: + description: If true, AND if the owner has the "foregroundDeletion" + finalizer, then the owner cannot be deleted from the key-value + store until this reference is removed. Defaults to false. + To set this field, a user needs "delete" permission of the + owner, otherwise 422 (Unprocessable Entity) will be returned. + type: boolean + controller: + description: If true, this reference points to the managing + controller. + type: boolean + kind: + description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + name: + description: 'Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names' + type: string + uid: + description: 'UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids' + type: string + required: + - apiVersion + - kind + - name + - uid + type: object + type: array + resourceVersion: + description: |- + An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + type: string + selfLink: + description: |- + SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + type: string + uid: + description: |- + UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + type: string type: object podMonitorNamespaceSelector: - description: Namespaces to be selected for PodMonitor discovery. If - nil, only check own namespace. + 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: matchExpressions: description: matchExpressions is a list of label selector requirements. @@ -3276,8 +3072,6 @@ spec: type: object type: array matchLabels: - additionalProperties: - type: string 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 @@ -3286,7 +3080,10 @@ spec: type: object type: object podMonitorSelector: - description: '*Experimental* PodMonitors to be selected for target discovery.' + 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: matchExpressions: description: matchExpressions is a list of label selector requirements. @@ -3319,8 +3116,6 @@ spec: type: object type: array matchLabels: - additionalProperties: - type: string 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 @@ -3371,19 +3166,18 @@ spec: for prometheus. properties: basicAuth: - description: BasicAuth for the URL. + description: 'BasicAuth allow an endpoint to authenticate over + basic authentication More info: https://prometheus.io/docs/operating/configuration/#endpoints' properties: password: - description: The secret in the service monitor namespace that - contains the password for authentication. + description: SecretKeySelector selects a key of a Secret. properties: key: description: The key of the secret to select from. Must be a valid secret key. type: string name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string optional: description: Specify whether the Secret or its key must @@ -3393,16 +3187,14 @@ spec: - key type: object username: - description: The secret in the service monitor namespace that - contains the username for authentication. + description: SecretKeySelector selects a key of a Secret. properties: key: description: The key of the secret to select from. Must be a valid secret key. type: string name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string optional: description: Specify whether the Secret or its key must @@ -3429,103 +3221,18 @@ spec: description: Timeout for requests to the remote read endpoint. type: string requiredMatchers: - additionalProperties: - type: string description: An optional list of equality matchers which have to be present in a selector to query the remote read endpoint. type: object tlsConfig: - description: TLS Config to use for remote read. + description: TLSConfig specifies TLS configuration parameters. properties: - ca: - description: Stuct containing the CA cert to use for the targets. - properties: - configMap: - description: ConfigMap containing data to use for the - targets. - properties: - key: - description: The key to select. - type: string - name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, - uid?' - type: string - optional: - description: Specify whether the ConfigMap or its - key must be defined - type: boolean - required: - - key - type: object - secret: - description: Secret containing data to use for the targets. - properties: - key: - description: The key of the secret to select from. Must - be a valid secret key. - type: string - name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, - uid?' - type: string - optional: - description: Specify whether the Secret or its key - must be defined - type: boolean - required: - - key - type: object - type: object + ca: {} caFile: description: Path to the CA cert in the Prometheus container to use for the targets. type: string - cert: - description: Struct containing the client cert file for the - targets. - properties: - configMap: - description: ConfigMap containing data to use for the - targets. - properties: - key: - description: The key to select. - type: string - name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, - uid?' - type: string - optional: - description: Specify whether the ConfigMap or its - key must be defined - type: boolean - required: - - key - type: object - secret: - description: Secret containing data to use for the targets. - properties: - key: - description: The key of the secret to select from. Must - be a valid secret key. - type: string - name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, - uid?' - type: string - optional: - description: Specify whether the Secret or its key - must be defined - type: boolean - required: - - key - type: object - type: object + cert: {} certFile: description: Path to the client cert file in the Prometheus container for the targets. @@ -3538,16 +3245,14 @@ spec: container for the targets. type: string keySecret: - description: Secret containing the client key file for the - targets. + description: SecretKeySelector selects a key of a Secret. properties: key: description: The key of the secret to select from. Must be a valid secret key. type: string name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string optional: description: Specify whether the Secret or its key must @@ -3575,19 +3280,18 @@ spec: for prometheus. properties: basicAuth: - description: BasicAuth for the URL. + description: 'BasicAuth allow an endpoint to authenticate over + basic authentication More info: https://prometheus.io/docs/operating/configuration/#endpoints' properties: password: - description: The secret in the service monitor namespace that - contains the password for authentication. + description: SecretKeySelector selects a key of a Secret. properties: key: description: The key of the secret to select from. Must be a valid secret key. type: string name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string optional: description: Specify whether the Secret or its key must @@ -3597,16 +3301,14 @@ spec: - key type: object username: - description: The secret in the service monitor namespace that - contains the username for authentication. + description: SecretKeySelector selects a key of a Secret. properties: key: description: The key of the secret to select from. Must be a valid secret key. type: string name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string optional: description: Specify whether the Secret or its key must @@ -3626,8 +3328,9 @@ spec: description: Optional ProxyURL type: string queueConfig: - description: QueueConfig allows tuning of the remote write queue - parameters. + description: QueueConfig allows the tuning of remote_write queue_config + parameters. This object is referenced in the RemoteWriteSpec + object. properties: batchSendDeadline: description: BatchSendDeadline is the maximum time a sample @@ -3636,6 +3339,7 @@ spec: capacity: description: Capacity is the number of samples to buffer per shard before we start dropping them. + format: int32 type: integer maxBackoff: description: MaxBackoff is the maximum retry delay. @@ -3643,14 +3347,17 @@ spec: maxRetries: description: MaxRetries is the maximum number of times to retry a batch on recoverable errors. + format: int32 type: integer maxSamplesPerSend: description: MaxSamplesPerSend is the maximum number of samples per send. + format: int32 type: integer maxShards: description: MaxShards is the maximum number of shards, i.e. amount of concurrency. + format: int32 type: integer minBackoff: description: MinBackoff is the initial retry delay. Gets doubled @@ -3659,103 +3366,21 @@ spec: minShards: description: MinShards is the minimum number of shards, i.e. amount of concurrency. + format: int32 type: integer type: object remoteTimeout: description: Timeout for requests to the remote write endpoint. type: string tlsConfig: - description: TLS Config to use for remote write. + description: TLSConfig specifies TLS configuration parameters. properties: - ca: - description: Stuct containing the CA cert to use for the targets. - properties: - configMap: - description: ConfigMap containing data to use for the - targets. - properties: - key: - description: The key to select. - type: string - name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, - uid?' - type: string - optional: - description: Specify whether the ConfigMap or its - key must be defined - type: boolean - required: - - key - type: object - secret: - description: Secret containing data to use for the targets. - properties: - key: - description: The key of the secret to select from. Must - be a valid secret key. - type: string - name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, - uid?' - type: string - optional: - description: Specify whether the Secret or its key - must be defined - type: boolean - required: - - key - type: object - type: object + ca: {} caFile: description: Path to the CA cert in the Prometheus container to use for the targets. type: string - cert: - description: Struct containing the client cert file for the - targets. - properties: - configMap: - description: ConfigMap containing data to use for the - targets. - properties: - key: - description: The key to select. - type: string - name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, - uid?' - type: string - optional: - description: Specify whether the ConfigMap or its - key must be defined - type: boolean - required: - - key - type: object - secret: - description: Secret containing data to use for the targets. - properties: - key: - description: The key of the secret to select from. Must - be a valid secret key. - type: string - name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, - uid?' - type: string - optional: - description: Specify whether the Secret or its key - must be defined - type: boolean - required: - - key - type: object - type: object + cert: {} certFile: description: Path to the client cert file in the Prometheus container for the targets. @@ -3768,16 +3393,14 @@ spec: container for the targets. type: string keySecret: - description: Secret containing the client key file for the - targets. + description: SecretKeySelector selects a key of a Secret. properties: key: description: The key of the secret to select from. Must be a valid secret key. type: string name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string optional: description: Specify whether the Secret or its key must @@ -3812,7 +3435,7 @@ spec: type: integer regex: description: Regular expression against which the extracted - value is matched. Default is '(.*)' + value is matched. defailt is '(.*)' type: string replacement: description: Replacement value against which a regex replace @@ -3852,17 +3475,13 @@ spec: format: int32 type: integer resources: - description: Define resources requests and limits for single Pods. + description: ResourceRequirements describes the compute resource requirements. properties: limits: - additionalProperties: - type: string description: 'Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/' type: object requests: - additionalProperties: - type: string 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 @@ -3885,9 +3504,10 @@ spec: for use with `kubectl proxy`. type: string ruleNamespaceSelector: - description: Namespaces to be selected for PrometheusRules discovery. - If unspecified, only the same namespace as the Prometheus object is - in is used. + 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: matchExpressions: description: matchExpressions is a list of label selector requirements. @@ -3920,8 +3540,6 @@ spec: type: object type: array matchLabels: - additionalProperties: - type: string 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 @@ -3930,12 +3548,10 @@ spec: type: object type: object ruleSelector: - description: A selector to select which PrometheusRules to mount for - loading alerting rules from. Until (excluding) Prometheus Operator - v0.24.0 Prometheus Operator will migrate any legacy rule ConfigMaps - to PrometheusRule custom resources selected by RuleSelector. Make - sure it does not match any config maps that you do not want to be - migrated. + 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: matchExpressions: description: matchExpressions is a list of label selector requirements. @@ -3968,8 +3584,6 @@ spec: type: object type: array matchLabels: - additionalProperties: - type: string 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 @@ -3978,7 +3592,7 @@ spec: type: object type: object rules: - description: /--rules.*/ command-line arguments. + description: /--rules.*/ command-line arguments properties: alert: description: /--rules.alert.*/ command-line arguments @@ -4009,17 +3623,18 @@ spec: type: string type: array securityContext: - description: SecurityContext holds pod-level security attributes and - common container settings. This defaults to the default PodSecurityContext. + 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: fsGroup: - 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 1. 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 If unset, the Kubelet will not modify the - ownership and permissions of any volume." + 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: + + 1. 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---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. format: int64 type: integer runAsGroup: @@ -4047,11 +3662,8 @@ spec: format: int64 type: integer seLinuxOptions: - description: The SELinux context to be applied to all containers. - If unspecified, the container runtime will allocate a random SELinux - context for each container. May also be set in SecurityContext. If - set in both SecurityContext and PodSecurityContext, the value - specified in SecurityContext takes precedence for that container. + description: SELinuxOptions are the labels to be applied to the + container properties: level: description: Level is SELinux level label that applies to the @@ -4097,10 +3709,8 @@ spec: type: object type: array windowsOptions: - description: The Windows specific settings applied to all containers. - If unspecified, the options within a container's SecurityContext - will be used. If set in both SecurityContext and PodSecurityContext, - the value specified in SecurityContext takes precedence. + description: WindowsSecurityContextOptions contain Windows-specific + options and credentials. properties: gmsaCredentialSpec: description: GMSACredentialSpec is where the GMSA admission @@ -4131,8 +3741,10 @@ spec: use to run the Prometheus Pods. type: string serviceMonitorNamespaceSelector: - description: Namespaces to be selected for ServiceMonitor discovery. - If nil, only check own namespace. + 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: matchExpressions: description: matchExpressions is a list of label selector requirements. @@ -4165,8 +3777,6 @@ spec: type: object type: array matchLabels: - additionalProperties: - type: string 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 @@ -4175,7 +3785,10 @@ spec: type: object type: object serviceMonitorSelector: - description: ServiceMonitors to be selected for target discovery. + 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: matchExpressions: description: matchExpressions is a list of label selector requirements. @@ -4208,8 +3821,6 @@ spec: type: object type: array matchLabels: - additionalProperties: - type: string 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 @@ -4224,30 +3835,25 @@ spec: if SHA is set. type: string storage: - description: Storage spec to specify how storage shall be used. + description: StorageSpec defines the configured storage for a group + Prometheus servers. If neither `emptyDir` nor `volumeClaimTemplate` + is specified, then by default an [EmptyDir](https://kubernetes.io/docs/concepts/storage/volumes/#emptydir) + will be used. properties: emptyDir: - description: 'EmptyDirVolumeSource to be used by the Prometheus - StatefulSets. If specified, used in place of any volumeClaimTemplate. - More info: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir' + description: Represents an empty directory for a pod. Empty directory + volumes support ownership management and SELinux relabeling. properties: medium: 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: https://kubernetes.io/docs/concepts/storage/volumes#emptydir' type: string - sizeLimit: - description: 'Total amount of local storage required for this - EmptyDir volume. The size limit is also applicable for memory - medium. The maximum usage on memory medium EmptyDir would - be the minimum value between the SizeLimit specified here - and the sum of memory limits of all containers in a pod. The - default is nil which means that the limit is undefined. More - info: http://kubernetes.io/docs/user-guide/volumes#emptydir' - type: string + sizeLimit: {} type: object volumeClaimTemplate: - description: A PVC spec to be used by the Prometheus StatefulSets. + description: PersistentVolumeClaim is a user's request for and claim + to a persistent volume properties: apiVersion: description: 'APIVersion defines the versioned schema of this @@ -4262,11 +3868,206 @@ spec: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' type: string metadata: - description: 'Standard object''s metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata' + description: ObjectMeta is metadata that all persisted resources + must have, which includes all objects users must create. + properties: + annotations: + description: 'Annotations is an unstructured key value map + stored with a resource that may be set by external tools + to store and retrieve arbitrary metadata. They are not + queryable and should be preserved when modifying objects. + More info: http://kubernetes.io/docs/user-guide/annotations' + type: object + clusterName: + description: The name of the cluster which the object belongs + to. This is used to distinguish resources with same name + and namespace in different clusters. This field is not + set anywhere right now and apiserver is going to ignore + it if set in create or update request. + type: string + creationTimestamp: + description: Time is a wrapper around time.Time which supports + correct marshaling to YAML and JSON. Wrappers are provided + for many of the factory methods that the time package + offers. + format: date-time + type: string + deletionGracePeriodSeconds: + description: Number of seconds allowed for this object to + gracefully terminate before it will be removed from the + system. Only set when deletionTimestamp is also set. May + only be shortened. Read-only. + format: int64 + type: integer + deletionTimestamp: + description: Time is a wrapper around time.Time which supports + correct marshaling to YAML and JSON. Wrappers are provided + for many of the factory methods that the time package + offers. + format: date-time + type: string + finalizers: + description: Must be empty before the object is deleted + from the registry. Each entry is an identifier for the + responsible component that will remove the entry from + the list. If the deletionTimestamp of the object is non-nil, + entries in this list can only be removed. + items: + type: string + type: array + generateName: + description: |- + GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + type: string + generation: + description: A sequence number representing a specific generation + of the desired state. Populated by the system. Read-only. + format: int64 + type: integer + labels: + description: 'Map of string keys and values that can be + used to organize and categorize (scope and select) objects. + May match selectors of replication controllers and services. + More info: http://kubernetes.io/docs/user-guide/labels' + type: object + managedFields: + description: ManagedFields maps workflow-id and version + to the set of fields that are managed by that workflow. + This is mostly for internal housekeeping, and users typically + shouldn't need to set or understand this field. A workflow + can be the user's name, a controller's name, or the name + of a specific apply path like "ci-cd". The set of fields + is always in the version that the workflow used when modifying + the object. + items: + description: ManagedFieldsEntry is a workflow-id, a FieldSet + and the group version of the resource that the fieldset + applies to. + properties: + apiVersion: + description: APIVersion defines the version of this + resource that this field set applies to. The format + is "group/version" just like the top-level APIVersion + field. It is necessary to track the version of a + field set because it cannot be automatically converted. + type: string + fieldsType: + description: 'FieldsType is the discriminator for + the different fields format and version. There is + currently only one possible value: "FieldsV1"' + type: string + fieldsV1: + description: |- + FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format. + + Each key is either a '.' representing the field itself, and will always map to an empty set, or a string representing a sub-field or item. The string will follow one of these four formats: 'f:<name>', where <name> is the name of a field in a struct, or key in a map 'v:<value>', where <value> is the exact json formatted value of a list item 'i:<index>', where <index> is position of a item in a list 'k:<keys>', where <keys> is a map of a list item's key fields to their unique values If a key maps to an empty Fields value, the field that key represents is part of the set. + + The exact format is defined in sigs.k8s.io/structured-merge-diff + type: object + manager: + description: Manager is an identifier of the workflow + managing these fields. + type: string + operation: + description: Operation is the type of operation which + lead to this ManagedFieldsEntry being created. The + only valid values for this field are 'Apply' and + 'Update'. + type: string + time: + description: Time is a wrapper around time.Time which + supports correct marshaling to YAML and JSON. Wrappers + are provided for many of the factory methods that + the time package offers. + format: date-time + type: string + type: object + type: array + name: + description: 'Name must be unique within a namespace. Is + required when creating resources, although some resources + may allow a client to request the generation of an appropriate + name automatically. Name is primarily intended for creation + idempotence and configuration definition. Cannot be updated. + More info: http://kubernetes.io/docs/user-guide/identifiers#names' + type: string + namespace: + description: |- + Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + type: string + ownerReferences: + description: List of objects depended by this object. If + ALL objects in the list have been deleted, this object + will be garbage collected. If this object is managed by + a controller, then an entry in this list will point to + this controller, with the controller field set to true. + There cannot be more than one managing controller. + items: + description: OwnerReference contains enough information + to let you identify an owning object. An owning object + must be in the same namespace as the dependent, or be + cluster-scoped, so there is no namespace field. + properties: + apiVersion: + description: API version of the referent. + type: string + blockOwnerDeletion: + description: If true, AND if the owner has the "foregroundDeletion" + finalizer, then the owner cannot be deleted from + the key-value store until this reference is removed. + Defaults to false. To set this field, a user needs + "delete" permission of the owner, otherwise 422 + (Unprocessable Entity) will be returned. + type: boolean + controller: + description: If true, this reference points to the + managing controller. + type: boolean + kind: + description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + name: + description: 'Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names' + type: string + uid: + description: 'UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids' + type: string + required: + - apiVersion + - kind + - name + - uid + type: object + type: array + resourceVersion: + description: |- + An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + type: string + selfLink: + description: |- + SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + type: string + uid: + description: |- + UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + type: string type: object spec: - description: 'Spec defines the desired characteristics of a - volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims' + description: PersistentVolumeClaimSpec describes the common + attributes of storage devices and allows a Source for provider-specific + attributes properties: accessModes: description: 'AccessModes contains the desired access modes @@ -4275,16 +4076,9 @@ spec: type: string type: array dataSource: - description: This field requires the VolumeSnapshotDataSource - alpha feature gate to be enabled and currently VolumeSnapshot - is the only supported data source. If the provisioner - can support VolumeSnapshot data source, it will create - a new volume and data will be restored to the volume at - the same time. If the provisioner does not support VolumeSnapshot - data source, volume will not be created and the failure - will be reported as an event. In the future, we plan to - support more data source types and the behavior of the - provisioner may change. + description: TypedLocalObjectReference contains enough information + to let you locate the typed referenced object inside the + same namespace. properties: apiGroup: description: APIGroup is the group for the resource @@ -4303,18 +4097,14 @@ spec: - name type: object resources: - description: 'Resources represents the minimum resources - the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources' + description: ResourceRequirements describes the compute + resource requirements. properties: limits: - additionalProperties: - type: string description: 'Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/' type: object requests: - additionalProperties: - type: string description: 'Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is @@ -4323,8 +4113,10 @@ spec: type: object type: object selector: - description: A label query over volumes to consider for - binding. + 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: matchExpressions: description: matchExpressions is a list of label selector @@ -4359,8 +4151,6 @@ spec: type: object type: array matchLabels: - additionalProperties: - type: string 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 @@ -4383,8 +4173,8 @@ spec: type: string type: object status: - description: 'Status represents the current information/status - of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims' + description: PersistentVolumeClaimStatus is the current status + of a persistent volume claim. properties: accessModes: description: 'AccessModes contains the actual access modes @@ -4393,8 +4183,6 @@ spec: type: string type: array capacity: - additionalProperties: - type: string description: Represents the actual resources of the underlying volume. type: object @@ -4407,12 +4195,17 @@ spec: about state of pvc properties: lastProbeTime: - description: Last time we probed the condition. + description: Time is a wrapper around time.Time which + supports correct marshaling to YAML and JSON. Wrappers + are provided for many of the factory methods that + the time package offers. format: date-time type: string lastTransitionTime: - description: Last time the condition transitioned - from one status to another. + description: Time is a wrapper around time.Time which + supports correct marshaling to YAML and JSON. Wrappers + are provided for many of the factory methods that + the time package offers. format: date-time type: string message: @@ -4429,12 +4222,10 @@ spec: status: type: string type: - description: PersistentVolumeClaimConditionType is - a valid value of PersistentVolumeClaimCondition.Type type: string required: - - status - type + - status type: object type: array phase: @@ -4448,11 +4239,8 @@ spec: to the value of `version`. Version is ignored if Tag is set. type: string thanos: - description: "Thanos configuration allows configuring various aspects - of a Prometheus server in a Thanos environment. \n This section is - experimental, it may change significantly without deprecation notice - in any release. \n This is experimental and may change significantly - without backward compatibility in any release." + description: ThanosSpec defines parameters for a Prometheus server within + a Thanos deployment. properties: baseImage: description: Thanos base image if other than default. @@ -4468,15 +4256,14 @@ spec: so that it does not bind against the Pod IP. type: boolean objectStorageConfig: - description: ObjectStorageConfig configures object storage in Thanos. + description: SecretKeySelector selects a key of a Secret. properties: key: description: The key of the secret to select from. Must be a valid secret key. type: string name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string optional: description: Specify whether the Secret or its key must be defined @@ -4485,18 +4272,14 @@ spec: - key type: object resources: - description: Resources defines the resource requirements for the - Thanos sidecar. If not provided, no requests/limits will be set + description: ResourceRequirements describes the compute resource + requirements. properties: limits: - additionalProperties: - type: string description: 'Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/' type: object requests: - additionalProperties: - type: string 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 @@ -4570,18 +4353,17 @@ spec: accessed by any container in the pod. properties: awsElasticBlockStore: - description: 'AWSElasticBlockStore represents an AWS Disk resource - that is attached to a kubelet''s host machine and then exposed - to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore' + description: |- + Represents a Persistent Disk resource in AWS. + + An 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: fsType: 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: - https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - TODO: how do we prevent errors in the filesystem from compromising - the machine' + https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore' type: string partition: description: 'The partition in the volume that you want to @@ -4655,8 +4437,9 @@ spec: - shareName type: object cephfs: - description: CephFS represents a Ceph FS mount on the host that - shares a pod's lifetime + description: Represents a Ceph Filesystem mount that lasts the + lifetime of a pod Cephfs volumes do not support ownership management + or SELinux relabeling. properties: monitors: description: 'Required: Monitors is a collection of Ceph monitors @@ -4678,12 +4461,12 @@ spec: for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it' type: string secretRef: - description: 'Optional: SecretRef is reference to the authentication - secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it' + description: LocalObjectReference contains enough information + to let you locate the referenced object inside the same + namespace. properties: name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string type: object user: @@ -4694,8 +4477,10 @@ spec: - monitors type: object cinder: - description: 'Cinder represents a cinder volume attached and mounted - on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md' + 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: fsType: description: 'Filesystem type to mount. Must be a filesystem @@ -4709,12 +4494,12 @@ spec: info: https://examples.k8s.io/mysql-cinder-pd/README.md' type: boolean secretRef: - description: 'Optional: points to a secret object containing - parameters used to connect to OpenStack.' + description: LocalObjectReference contains enough information + to let you locate the referenced object inside the same + namespace. properties: name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string type: object volumeID: @@ -4725,8 +4510,10 @@ spec: - volumeID type: object configMap: - description: ConfigMap represents a configMap that should populate - this volume + description: |- + Adapts a ConfigMap into a volume. + + The 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: defaultMode: description: 'Optional: mode bits to use on created files @@ -4774,8 +4561,7 @@ spec: type: object type: array name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string optional: description: Specify whether the ConfigMap or its keys must @@ -4783,8 +4569,8 @@ spec: type: boolean type: object csi: - description: CSI (Container Storage Interface) represents storage - that is handled by an external CSI driver (Alpha feature). + description: Represents a source location of a volume to mount, + managed by an external CSI driver properties: driver: description: Driver is the name of the CSI driver that handles @@ -4798,16 +4584,12 @@ spec: to apply. type: string nodePublishSecretRef: - description: NodePublishSecretRef is a reference to the secret - object containing sensitive information to pass to the CSI - driver to complete the CSI NodePublishVolume and NodeUnpublishVolume - calls. This field is optional, and may be empty if no secret - is required. If the secret object contains more than one - secret, all secret references are passed. + description: LocalObjectReference contains enough information + to let you locate the referenced object inside the same + namespace. properties: name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string type: object readOnly: @@ -4815,8 +4597,6 @@ spec: Defaults to false (read/write). type: boolean volumeAttributes: - additionalProperties: - type: string description: VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. @@ -4825,8 +4605,9 @@ spec: - driver type: object downwardAPI: - description: DownwardAPI represents downward API about the pod - that should populate this volume + description: DownwardAPIVolumeSource represents a volume containing + downward API info. Downward API volumes support ownership management + and SELinux relabeling. properties: defaultMode: description: 'Optional: mode bits to use on created files @@ -4844,8 +4625,8 @@ spec: to create the file containing the pod field properties: fieldRef: - description: 'Required: Selects a field of the pod: - only annotations, labels, name and namespace are supported.' + description: ObjectFieldSelector selects an APIVersioned + field of an object. properties: apiVersion: description: Version of the schema the FieldPath @@ -4875,18 +4656,14 @@ spec: ''..''' type: string resourceFieldRef: - description: 'Selects a resource of the container: only - resources limits and requests (limits.cpu, limits.memory, - requests.cpu and requests.memory) are currently supported.' + description: ResourceFieldSelector represents container + resources (cpu, memory) and their output format properties: containerName: description: 'Container name: required for volumes, optional for env vars' type: string - divisor: - description: Specifies the output format of the - exposed resources, defaults to "1" - type: string + divisor: {} resource: description: 'Required: resource to select' type: string @@ -4899,8 +4676,8 @@ spec: type: array type: object emptyDir: - description: 'EmptyDir represents a temporary directory that shares - a pod''s lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir' + description: Represents an empty directory for a pod. Empty directory + volumes support ownership management and SELinux relabeling. properties: medium: description: 'What type of storage medium should back this @@ -4908,26 +4685,17 @@ spec: default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir' type: string - sizeLimit: - description: 'Total amount of local storage required for this - EmptyDir volume. The size limit is also applicable for memory - medium. The maximum usage on memory medium EmptyDir would - be the minimum value between the SizeLimit specified here - and the sum of memory limits of all containers in a pod. - The default is nil which means that the limit is undefined. - More info: http://kubernetes.io/docs/user-guide/volumes#emptydir' - type: string + sizeLimit: {} type: object fc: - description: FC represents a Fibre Channel resource that is attached - to a kubelet's host machine and then exposed to the pod. + 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: fsType: - description: 'Filesystem type to mount. Must be a filesystem + 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. - TODO: how do we prevent errors in the filesystem from compromising - the machine' type: string lun: description: 'Optional: FC target lun number' @@ -4965,8 +4733,6 @@ spec: script. type: string options: - additionalProperties: - type: string description: 'Optional: Extra command options if any.' type: object readOnly: @@ -4974,24 +4740,22 @@ spec: here will force the ReadOnly setting in VolumeMounts.' type: boolean secretRef: - description: 'Optional: SecretRef is reference to the secret - object containing sensitive information to pass to the plugin - scripts. This may be empty if no secret object is specified. - If the secret object contains more than one secret, all - secrets are passed to the plugin scripts.' + description: LocalObjectReference contains enough information + to let you locate the referenced object inside the same + namespace. properties: name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string type: object required: - driver type: object flocker: - description: Flocker represents a Flocker volume attached to a - kubelet's host machine. This depends on the Flocker control - service being running + 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: description: Name of the dataset stored as metadata -> name @@ -5003,18 +4767,17 @@ spec: type: string type: object gcePersistentDisk: - description: 'GCEPersistentDisk represents a GCE Disk resource - that is attached to a kubelet''s host machine and then exposed - to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk' + description: |- + Represents a Persistent Disk resource in Google Compute Engine. + + A 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: fsType: 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: - https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - TODO: how do we prevent errors in the filesystem from compromising - the machine' + https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk' type: string partition: description: 'The partition in the volume that you want to @@ -5036,11 +4799,10 @@ spec: - pdName type: object gitRepo: - description: 'GitRepo represents a git repository at a particular - revision. DEPRECATED: GitRepo is deprecated. To provision a - container with a git repo, mount an EmptyDir into an InitContainer - that clones the repo using git, then mount the EmptyDir into - the Pod''s container.' + 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. + + DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. properties: directory: description: Target directory name. Must not contain or start @@ -5059,8 +4821,9 @@ spec: - repository type: object glusterfs: - description: 'Glusterfs represents a Glusterfs mount on the host - that shares a pod''s lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md' + description: Represents a Glusterfs mount that lasts the lifetime + of a pod. Glusterfs volumes do not support ownership management + or SELinux relabeling. properties: endpoints: description: 'EndpointsName is the endpoint name that details @@ -5080,13 +4843,8 @@ spec: - path type: object hostPath: - description: 'HostPath represents a pre-existing file or directory - on the host machine that is directly exposed to the container. - This is generally used for system agents or other privileged - things that are allowed to see the host machine. Most containers - will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - --- TODO(jonesdl) We need to restrict who can use host directory - mounts and who can/can not mount host directories as read/write.' + description: Represents a host path mapped into a pod. Host path + volumes do not support ownership management or SELinux relabeling. properties: path: description: 'Path of the directory on the host. If the path @@ -5101,9 +4859,9 @@ spec: - path type: object iscsi: - description: 'ISCSI represents an ISCSI Disk resource that is - attached to a kubelet''s host machine and then exposed to the - pod. More info: https://examples.k8s.io/volumes/iscsi/README.md' + description: Represents an ISCSI disk. ISCSI volumes can only + be mounted as read/write once. ISCSI volumes support ownership + management and SELinux relabeling. properties: chapAuthDiscovery: description: whether support iSCSI Discovery CHAP authentication @@ -5116,9 +4874,7 @@ spec: 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: - https://kubernetes.io/docs/concepts/storage/volumes#iscsi - TODO: how do we prevent errors in the filesystem from compromising - the machine' + https://kubernetes.io/docs/concepts/storage/volumes#iscsi' type: string initiatorName: description: Custom iSCSI Initiator Name. If initiatorName @@ -5149,11 +4905,12 @@ spec: in VolumeMounts. Defaults to false. type: boolean secretRef: - description: CHAP Secret for iSCSI target and initiator authentication + description: LocalObjectReference contains enough information + to let you locate the referenced object inside the same + namespace. properties: name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string type: object targetPortal: @@ -5162,17 +4919,18 @@ spec: TCP ports 860 and 3260). type: string required: + - targetPortal - iqn - lun - - targetPortal type: object name: description: 'Volume''s name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string nfs: - description: 'NFS represents an NFS mount on the host that shares - a pod''s lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs' + description: Represents an NFS mount that lasts the lifetime of + a pod. NFS volumes do not support ownership management or SELinux + relabeling. properties: path: description: 'Path that is exported by the NFS server. More @@ -5188,13 +4946,15 @@ spec: NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs' type: string required: - - path - server + - path type: object persistentVolumeClaim: - description: 'PersistentVolumeClaimVolumeSource represents a reference - to a PersistentVolumeClaim in the same namespace. More info: - https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims' + 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: claimName: description: 'ClaimName is the name of a PersistentVolumeClaim @@ -5209,8 +4969,7 @@ spec: - claimName type: object photonPersistentDisk: - description: PhotonPersistentDisk represents a PhotonController - persistent disk attached and mounted on kubelets host machine + description: Represents a Photon Controller persistent disk resource. properties: fsType: description: Filesystem type to mount. Must be a filesystem @@ -5225,8 +4984,8 @@ spec: - pdID type: object portworxVolume: - description: PortworxVolume represents a portworx volume attached - and mounted on kubelets host machine + description: PortworxVolumeSource represents a Portworx volume + resource. properties: fsType: description: FSType represents the filesystem type to mount @@ -5245,8 +5004,7 @@ spec: - volumeID type: object projected: - description: Items for all in one resources secrets, configmaps, - and downward API + description: Represents a projected volume source properties: defaultMode: description: Mode bits to use on created files by default. @@ -5263,8 +5021,10 @@ spec: other supported volume types properties: configMap: - description: information about the configMap data to - project + description: |- + Adapts a ConfigMap into a projected volume. + + The 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: description: If unspecified, each key-value pair @@ -5307,9 +5067,7 @@ spec: type: object type: array name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, - uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string optional: description: Specify whether the ConfigMap or its @@ -5317,8 +5075,10 @@ spec: type: boolean type: object downwardAPI: - description: information about the downwardAPI data - to project + 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: description: Items is a list of DownwardAPIVolume @@ -5329,9 +5089,8 @@ spec: pod field properties: fieldRef: - description: 'Required: Selects a field of - the pod: only annotations, labels, name - and namespace are supported.' + description: ObjectFieldSelector selects an + APIVersioned field of an object. properties: apiVersion: description: Version of the schema the @@ -5363,20 +5122,15 @@ spec: the relative path must not start with ''..''' type: string resourceFieldRef: - description: 'Selects a resource of the container: - only resources limits and requests (limits.cpu, - limits.memory, requests.cpu and requests.memory) - are currently supported.' + description: ResourceFieldSelector represents + container resources (cpu, memory) and their + output format properties: containerName: description: 'Container name: required for volumes, optional for env vars' type: string - divisor: - description: Specifies the output format - of the exposed resources, defaults to - "1" - type: string + divisor: {} resource: description: 'Required: resource to select' type: string @@ -5389,7 +5143,10 @@ spec: type: array type: object secret: - description: information about the secret data to project + description: |- + Adapts a secret into a projected volume. + + The 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: description: If unspecified, each key-value pair @@ -5432,9 +5189,7 @@ spec: type: object type: array name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, - uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string optional: description: Specify whether the Secret or its key @@ -5442,8 +5197,11 @@ spec: type: boolean type: object serviceAccountToken: - description: information about the serviceAccountToken - data to project + description: ServiceAccountTokenProjection represents + a projected service account token volume. This projection + can be used to insert a service account token into + the pods runtime filesystem for use against APIs (Kubernetes + API Server or otherwise). properties: audience: description: Audience is the intended audience of @@ -5478,8 +5236,9 @@ spec: - sources type: object quobyte: - description: Quobyte represents a Quobyte mount on the host that - shares a pod's lifetime + description: Represents a Quobyte mount that lasts the lifetime + of a pod. Quobyte volumes do not support ownership management + or SELinux relabeling. properties: group: description: Group to map volume access to Default is no group @@ -5512,17 +5271,16 @@ spec: - volume type: object rbd: - description: 'RBD represents a Rados Block Device mount on the - host that shares a pod''s lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md' + description: Represents a Rados Block Device mount that lasts + the lifetime of a pod. RBD volumes support ownership management + and SELinux relabeling. properties: fsType: 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: - https://kubernetes.io/docs/concepts/storage/volumes#rbd - TODO: how do we prevent errors in the filesystem from compromising - the machine' + https://kubernetes.io/docs/concepts/storage/volumes#rbd' type: string image: description: 'The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it' @@ -5545,13 +5303,12 @@ spec: in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it' type: boolean secretRef: - description: 'SecretRef is name of the authentication secret - for RBDUser. If provided overrides keyring. Default is nil. - More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it' + description: LocalObjectReference contains enough information + to let you locate the referenced object inside the same + namespace. properties: name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string type: object user: @@ -5559,12 +5316,12 @@ spec: info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it' type: string required: - - image - monitors + - image type: object scaleIO: - description: ScaleIO represents a ScaleIO persistent volume attached - and mounted on Kubernetes nodes. + description: ScaleIOVolumeSource represents a persistent ScaleIO + volume properties: fsType: description: Filesystem type to mount. Must be a filesystem @@ -5583,13 +5340,12 @@ spec: will force the ReadOnly setting in VolumeMounts. type: boolean secretRef: - description: SecretRef references to the secret for ScaleIO - user and other sensitive information. If this is not provided, - Login operation will fail. + description: LocalObjectReference contains enough information + to let you locate the referenced object inside the same + namespace. properties: name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string type: object sslEnabled: @@ -5614,12 +5370,14 @@ spec: type: string required: - gateway - - secretRef - system + - secretRef type: object secret: - description: 'Secret represents a secret that should populate - this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret' + description: |- + Adapts a Secret into a volume. + + The 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: defaultMode: description: 'Optional: mode bits to use on created files @@ -5676,8 +5434,7 @@ spec: type: string type: object storageos: - description: StorageOS represents a StorageOS volume attached - and mounted on Kubernetes nodes. + description: Represents a StorageOS persistent volume resource. properties: fsType: description: Filesystem type to mount. Must be a filesystem @@ -5689,13 +5446,12 @@ spec: will force the ReadOnly setting in VolumeMounts. type: boolean secretRef: - description: SecretRef specifies the secret to use for obtaining - the StorageOS API credentials. If not specified, default - values will be attempted. + description: LocalObjectReference contains enough information + to let you locate the referenced object inside the same + namespace. properties: name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string type: object volumeName: @@ -5715,8 +5471,7 @@ spec: type: string type: object vsphereVolume: - description: VsphereVolume represents a vSphere volume attached - and mounted on kubelets host machine + description: Represents a vSphere volume resource. properties: fsType: description: Filesystem type to mount. Must be a filesystem @@ -5747,9 +5502,9 @@ spec: type: boolean type: object status: - description: 'Most recent observed status of the Prometheus cluster. Read-only. - Not included when requesting from the apiserver, only from the Prometheus - Operator API itself. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status' + description: 'PrometheusStatus is the most recent observed status of the + Prometheus cluster. Read-only. Not included when requesting from the apiserver, + only from the Prometheus Operator API itself. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status' properties: availableReplicas: description: Total number of available pods (ready for at least minReadySeconds) @@ -5776,23 +5531,11 @@ spec: format: int32 type: integer required: - - availableReplicas - paused - replicas - - unavailableReplicas - updatedReplicas + - availableReplicas + - unavailableReplicas type: object - required: - - spec type: object version: v1 - versions: - - name: v1 - served: true - storage: true -status: - acceptedNames: - kind: "" - plural: "" - conditions: [] - storedVersions: [] diff --git a/manifests/setup/prometheus-operator-0prometheusruleCustomResourceDefinition.yaml b/manifests/setup/prometheus-operator-0prometheusruleCustomResourceDefinition.yaml index 7244d4395607dbe48e2c4490eb72e7a03320042f..49ddbfb86c62498788e4f66e96b61cc7b9f693be 100644 --- a/manifests/setup/prometheus-operator-0prometheusruleCustomResourceDefinition.yaml +++ b/manifests/setup/prometheus-operator-0prometheusruleCustomResourceDefinition.yaml @@ -1,22 +1,16 @@ apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: - annotations: - controller-gen.kubebuilder.io/version: v0.2.4 creationTimestamp: null name: prometheusrules.monitoring.coreos.com spec: group: monitoring.coreos.com names: kind: PrometheusRule - listKind: PrometheusRuleList plural: prometheusrules - singular: prometheusrule - preserveUnknownFields: false scope: Namespaced validation: openAPIV3Schema: - description: PrometheusRule defines alerting rules for a Prometheus instance properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -29,9 +23,190 @@ spec: submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' type: string metadata: + description: ObjectMeta is metadata that all persisted resources must have, + which includes all objects users must create. + properties: + annotations: + description: 'Annotations is an unstructured key value map stored with + a resource that may be set by external tools to store and retrieve + arbitrary metadata. They are not queryable and should be preserved + when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations' + type: object + clusterName: + description: The name of the cluster which the object belongs to. This + is used to distinguish resources with same name and namespace in different + clusters. This field is not set anywhere right now and apiserver is + going to ignore it if set in create or update request. + type: string + creationTimestamp: + description: Time is a wrapper around time.Time which supports correct + marshaling to YAML and JSON. Wrappers are provided for many of the + factory methods that the time package offers. + format: date-time + type: string + deletionGracePeriodSeconds: + description: Number of seconds allowed for this object to gracefully + terminate before it will be removed from the system. Only set when + deletionTimestamp is also set. May only be shortened. Read-only. + format: int64 + type: integer + deletionTimestamp: + description: Time is a wrapper around time.Time which supports correct + marshaling to YAML and JSON. Wrappers are provided for many of the + factory methods that the time package offers. + format: date-time + type: string + finalizers: + description: Must be empty before the object is deleted from the registry. + Each entry is an identifier for the responsible component that will + remove the entry from the list. If the deletionTimestamp of the object + is non-nil, entries in this list can only be removed. + items: + type: string + type: array + generateName: + description: |- + GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + type: string + generation: + description: A sequence number representing a specific generation of + the desired state. Populated by the system. Read-only. + format: int64 + type: integer + labels: + description: 'Map of string keys and values that can be used to organize + and categorize (scope and select) objects. May match selectors of + replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels' + type: object + managedFields: + description: ManagedFields maps workflow-id and version to the set of + fields that are managed by that workflow. This is mostly for internal + housekeeping, and users typically shouldn't need to set or understand + this field. A workflow can be the user's name, a controller's name, + or the name of a specific apply path like "ci-cd". The set of fields + is always in the version that the workflow used when modifying the + object. + items: + description: ManagedFieldsEntry is a workflow-id, a FieldSet and the + group version of the resource that the fieldset applies to. + properties: + apiVersion: + description: APIVersion defines the version of this resource that + this field set applies to. The format is "group/version" just + like the top-level APIVersion field. It is necessary to track + the version of a field set because it cannot be automatically + converted. + type: string + fieldsType: + description: 'FieldsType is the discriminator for the different + fields format and version. There is currently only one possible + value: "FieldsV1"' + type: string + fieldsV1: + description: |- + FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format. + + Each key is either a '.' representing the field itself, and will always map to an empty set, or a string representing a sub-field or item. The string will follow one of these four formats: 'f:<name>', where <name> is the name of a field in a struct, or key in a map 'v:<value>', where <value> is the exact json formatted value of a list item 'i:<index>', where <index> is position of a item in a list 'k:<keys>', where <keys> is a map of a list item's key fields to their unique values If a key maps to an empty Fields value, the field that key represents is part of the set. + + The exact format is defined in sigs.k8s.io/structured-merge-diff + type: object + manager: + description: Manager is an identifier of the workflow managing + these fields. + type: string + operation: + description: Operation is the type of operation which lead to + this ManagedFieldsEntry being created. The only valid values + for this field are 'Apply' and 'Update'. + type: string + time: + description: Time is a wrapper around time.Time which supports + correct marshaling to YAML and JSON. Wrappers are provided + for many of the factory methods that the time package offers. + format: date-time + type: string + type: object + type: array + name: + description: 'Name must be unique within a namespace. Is required when + creating resources, although some resources may allow a client to + request the generation of an appropriate name automatically. Name + is primarily intended for creation idempotence and configuration definition. + Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names' + type: string + namespace: + description: |- + Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + type: string + ownerReferences: + description: List of objects depended by this object. If ALL objects + in the list have been deleted, this object will be garbage collected. + If this object is managed by a controller, then an entry in this list + will point to this controller, with the controller field set to true. + There cannot be more than one managing controller. + items: + description: OwnerReference contains enough information to let you + identify an owning object. An owning object must be in the same + namespace as the dependent, or be cluster-scoped, so there is no + namespace field. + properties: + apiVersion: + description: API version of the referent. + type: string + blockOwnerDeletion: + description: If true, AND if the owner has the "foregroundDeletion" + finalizer, then the owner cannot be deleted from the key-value + store until this reference is removed. Defaults to false. To + set this field, a user needs "delete" permission of the owner, + otherwise 422 (Unprocessable Entity) will be returned. + type: boolean + controller: + description: If true, this reference points to the managing controller. + type: boolean + kind: + description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + name: + description: 'Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names' + type: string + uid: + description: 'UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids' + type: string + required: + - apiVersion + - kind + - name + - uid + type: object + type: array + resourceVersion: + description: |- + An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + type: string + selfLink: + description: |- + SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + type: string + uid: + description: |- + UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + type: string type: object spec: - description: Specification of desired alerting rule definitions for Prometheus. + description: PrometheusRuleSpec contains specification parameters for a + Rule. properties: groups: description: Content of Prometheus rule file @@ -50,19 +225,14 @@ spec: alert: type: string annotations: - additionalProperties: - type: string type: object expr: anyOf: - - type: integer - type: string - x-kubernetes-int-or-string: true + - type: integer for: type: string labels: - additionalProperties: - type: string type: object record: type: string @@ -76,17 +246,5 @@ spec: type: object type: array type: object - required: - - spec type: object version: v1 - versions: - - name: v1 - served: true - storage: true -status: - acceptedNames: - kind: "" - plural: "" - conditions: [] - storedVersions: [] diff --git a/manifests/setup/prometheus-operator-0servicemonitorCustomResourceDefinition.yaml b/manifests/setup/prometheus-operator-0servicemonitorCustomResourceDefinition.yaml index e9286ea87b60636a042d87ddf518ea6bd3ac074e..5283e87d5188dabd91ba33549fb9503f315573d4 100644 --- a/manifests/setup/prometheus-operator-0servicemonitorCustomResourceDefinition.yaml +++ b/manifests/setup/prometheus-operator-0servicemonitorCustomResourceDefinition.yaml @@ -1,22 +1,16 @@ apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: - annotations: - controller-gen.kubebuilder.io/version: v0.2.4 creationTimestamp: null name: servicemonitors.monitoring.coreos.com spec: group: monitoring.coreos.com names: kind: ServiceMonitor - listKind: ServiceMonitorList plural: servicemonitors - singular: servicemonitor - preserveUnknownFields: false scope: Namespaced validation: openAPIV3Schema: - description: ServiceMonitor defines monitoring for a set of services. properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -28,11 +22,9 @@ spec: object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' type: string - metadata: - type: object spec: - description: Specification of desired Service selection for target discovery - by Prometheus. + description: ServiceMonitorSpec contains specification parameters for a + ServiceMonitor. properties: endpoints: description: A list of endpoints allowed as part of this ServiceMonitor. @@ -45,16 +37,14 @@ spec: basic authentication More info: https://prometheus.io/docs/operating/configuration/#endpoints' properties: password: - description: The secret in the service monitor namespace that - contains the password for authentication. + description: SecretKeySelector selects a key of a Secret. properties: key: description: The key of the secret to select from. Must be a valid secret key. type: string name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string optional: description: Specify whether the Secret or its key must @@ -64,16 +54,14 @@ spec: - key type: object username: - description: The secret in the service monitor namespace that - contains the username for authentication. + description: SecretKeySelector selects a key of a Secret. properties: key: description: The key of the secret to select from. Must be a valid secret key. type: string name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string optional: description: Specify whether the Secret or its key must @@ -87,17 +75,14 @@ spec: description: File to read bearer token for scraping targets. type: string bearerTokenSecret: - description: Secret to mount to read bearer token for scraping - targets. The secret needs to be in the same namespace as the - service monitor and accessible by the Prometheus Operator. + description: SecretKeySelector selects a key of a Secret. properties: key: description: The key of the secret to select from. Must be a valid secret key. type: string name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string optional: description: Specify whether the Secret or its key must be @@ -136,7 +121,7 @@ spec: type: integer regex: description: Regular expression against which the extracted - value is matched. Default is '(.*)' + value is matched. defailt is '(.*)' type: string replacement: description: Replacement value against which a regex replace @@ -163,10 +148,6 @@ spec: type: object type: array params: - additionalProperties: - items: - type: string - type: array description: Optional HTTP URL parameters type: object path: @@ -200,7 +181,7 @@ spec: type: integer regex: description: Regular expression against which the extracted - value is matched. Default is '(.*)' + value is matched. defailt is '(.*)' type: string replacement: description: Replacement value against which a regex replace @@ -234,103 +215,17 @@ spec: type: string targetPort: anyOf: - - type: integer - type: string - description: Name or number of the target port of the endpoint. - Mutually exclusive with port. - x-kubernetes-int-or-string: true + - type: integer tlsConfig: - description: TLS configuration to use when scraping the endpoint + description: TLSConfig specifies TLS configuration parameters. properties: - ca: - description: Stuct containing the CA cert to use for the targets. - properties: - configMap: - description: ConfigMap containing data to use for the - targets. - properties: - key: - description: The key to select. - type: string - name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, - uid?' - type: string - optional: - description: Specify whether the ConfigMap or its - key must be defined - type: boolean - required: - - key - type: object - secret: - description: Secret containing data to use for the targets. - properties: - key: - description: The key of the secret to select from. Must - be a valid secret key. - type: string - name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, - uid?' - type: string - optional: - description: Specify whether the Secret or its key - must be defined - type: boolean - required: - - key - type: object - type: object + ca: {} caFile: description: Path to the CA cert in the Prometheus container to use for the targets. type: string - cert: - description: Struct containing the client cert file for the - targets. - properties: - configMap: - description: ConfigMap containing data to use for the - targets. - properties: - key: - description: The key to select. - type: string - name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, - uid?' - type: string - optional: - description: Specify whether the ConfigMap or its - key must be defined - type: boolean - required: - - key - type: object - secret: - description: Secret containing data to use for the targets. - properties: - key: - description: The key of the secret to select from. Must - be a valid secret key. - type: string - name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, - uid?' - type: string - optional: - description: Specify whether the Secret or its key - must be defined - type: boolean - required: - - key - type: object - type: object + cert: {} certFile: description: Path to the client cert file in the Prometheus container for the targets. @@ -343,16 +238,14 @@ spec: container for the targets. type: string keySecret: - description: Secret containing the client key file for the - targets. + description: SecretKeySelector selects a key of a Secret. properties: key: description: The key of the secret to select from. Must be a valid secret key. type: string name: - description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid?' + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string optional: description: Specify whether the Secret or its key must @@ -371,8 +264,8 @@ spec: description: The label to use to retrieve the job name from. type: string namespaceSelector: - description: Selector to select which namespaces the Endpoints objects - are discovered from. + description: NamespaceSelector is a selector for selecting either all + namespaces or a list of namespaces. properties: any: description: Boolean describing whether all namespaces are selected @@ -396,7 +289,10 @@ spec: format: int64 type: integer selector: - description: Selector to select Endpoints objects. + 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: matchExpressions: description: matchExpressions is a list of label selector requirements. @@ -429,8 +325,6 @@ spec: type: object type: array matchLabels: - additionalProperties: - type: string 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 @@ -448,17 +342,5 @@ spec: - endpoints - selector type: object - required: - - spec type: object version: v1 - versions: - - name: v1 - served: true - storage: true -status: - acceptedNames: - kind: "" - plural: "" - conditions: [] - storedVersions: []