Skip to content
Snippets Groups Projects
0prometheusCustomResourceDefinition.yaml 739 KiB
Newer Older
                          description: volumePath is the path that identifies vSphere volume vmdk
paulfantom's avatar
paulfantom committed
                          type: string
                      required:
                      - volumePath
                      type: object
                  required:
                  - name
                  type: object
                type: array
              walCompression:
                description: |-
                  Configures compression of the write-ahead log (WAL) using Snappy.

                  WAL compression is enabled by default for Prometheus >= 2.20.0

                  Requires Prometheus v2.11.0 and above.
paulfantom's avatar
paulfantom committed
                type: boolean
                description: Defines the configuration of the Prometheus web server.
                  httpConfig:
                    description: Defines HTTP parameters for web server.
                    properties:
                      headers:
                        description: List of headers that can be added to HTTP responses.
                        properties:
                          contentSecurityPolicy:
                            description: |-
                              Set the Content-Security-Policy header to HTTP responses.
                              Unset if blank.
                            type: string
                          strictTransportSecurity:
                            description: |-
                              Set the Strict-Transport-Security header to HTTP responses.
                              Unset if blank.
                              Please make sure that you use this with care as this header might force
                              browsers to load Prometheus and the other applications hosted on the same
                              domain and subdomains over HTTPS.
                              https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security
                            type: string
                          xContentTypeOptions:
                            description: |-
                              Set the X-Content-Type-Options header to HTTP responses.
                              Unset if blank. Accepted value is nosniff.
                              https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options
                            enum:
                            - ""
                            - NoSniff
                            type: string
                          xFrameOptions:
                            description: |-
                              Set the X-Frame-Options header to HTTP responses.
                              Unset if blank. Accepted values are deny and sameorigin.
                              https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options
                            enum:
                            - ""
                            - Deny
                            - SameOrigin
                            type: string
                          xXSSProtection:
                            description: |-
                              Set the X-XSS-Protection header to all responses.
                              Unset if blank.
                              https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection
                            type: string
                        type: object
                      http2:
                        description: |-
                          Enable HTTP/2 support. Note that HTTP/2 is only supported with TLS.
                          When TLSConfig is not configured, HTTP/2 will be disabled.
                          Whenever the value of the field changes, a rolling update will be triggered.
                        type: boolean
                    type: object
                    description: |-
                      Defines the maximum number of simultaneous connections
                      A zero value means that Prometheus doesn't accept any incoming connection.
                    format: int32
                    minimum: 0
                    type: integer
                    description: The prometheus web page title.
                    description: Defines the TLS parameters for HTTPS.
                        description: |-
                          Secret or ConfigMap containing the TLS certificate for the web server.

                          Either `keySecret` or `keyFile` must be defined.

                          It is mutually exclusive with `certFile`.
                        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.
                                  This field is effectively required, but due to backwards compatibility is
                                  allowed to be empty. Instances of this type with an empty value here are
                                  almost certainly wrong.
                                  More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
                                type: string
                              optional:
                                description: Specify whether the ConfigMap or its key must be defined
                                type: boolean
                            required:
                            - key
                            type: object
                            x-kubernetes-map-type: atomic
                          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.
                                description: |-
                                  Name of the referent.
                                  This field is effectively required, but due to backwards compatibility is
                                  allowed to be empty. Instances of this type with an empty value here are
                                  almost certainly wrong.
                                  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
                                type: boolean
                            required:
                            - key
                            type: object
                            x-kubernetes-map-type: atomic
                      certFile:
                        description: |-
                          Path to the TLS certificate file in the container for the web server.

                          Either `keySecret` or `keyFile` must be defined.

                          It is mutually exclusive with `cert`.
                      cipherSuites:
                          List of supported cipher suites for TLS versions up to TLS 1.2.

                          If not defined, the Go default cipher suites are used.
                          Available cipher suites are documented in the Go documentation:
                          https://golang.org/pkg/crypto/tls/#pkg-constants
                        items:
                          type: string
                        type: array
                      client_ca:
                        description: |-
                          Secret or ConfigMap containing the CA certificate for client certificate
                          authentication to the server.

                          It is mutually exclusive with `clientCAFile`.
                        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.
                                  This field is effectively required, but due to backwards compatibility is
                                  allowed to be empty. Instances of this type with an empty value here are
                                  almost certainly wrong.
                                  More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
                                type: string
                              optional:
                                description: Specify whether the ConfigMap or its key must be defined
                                type: boolean
                            required:
                            - key
                            type: object
                            x-kubernetes-map-type: atomic
                          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.
                                description: |-
                                  Name of the referent.
                                  This field is effectively required, but due to backwards compatibility is
                                  allowed to be empty. Instances of this type with an empty value here are
                                  almost certainly wrong.
                                  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
                                type: boolean
                            required:
                            - key
                            type: object
                            x-kubernetes-map-type: atomic
                        type: object
                      clientAuthType:
                          The server policy for client TLS authentication.

                          For more detail on clientAuth options:
                          https://golang.org/pkg/crypto/tls/#ClientAuthType
                      clientCAFile:
                        description: |-
                          Path to the CA certificate file for client certificate authentication to
                          the server.

                          It is mutually exclusive with `client_ca`.
                      curvePreferences:
                        description: |-
                          Elliptic curves that will be used in an ECDHE handshake, in preference
                          order.

                          Available curves are documented in the Go documentation:
                          https://golang.org/pkg/crypto/tls/#CurveID
                        items:
                          type: string
                        type: array
                          Path to the TLS private key file in the container for the web server.

                          If defined, either `cert` or `certFile` must be defined.

                          It is mutually exclusive with `keySecret`.
                        description: |-
                          Secret containing the TLS private key for the web server.

                          Either `cert` or `certFile` must be defined.

                          It is mutually exclusive with `keyFile`.
                            description: The key of the secret to select from.  Must be a valid secret key.
                            description: |-
                              Name of the referent.
                              This field is effectively required, but due to backwards compatibility is
                              allowed to be empty. Instances of this type with an empty value here are
                              almost certainly wrong.
                              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
                            type: boolean
                        required:
                        - key
                        type: object
                        x-kubernetes-map-type: atomic
                        description: Maximum TLS version that is acceptable.
                        type: string
                      minVersion:
                        description: Minimum TLS version that is acceptable.
                        type: string
                      preferServerCipherSuites:
                          Controls whether the server selects the client's most preferred cipher
                          suite, or the server's most preferred cipher suite.

                          If true then the server's preference, as expressed in
                          the order of elements in cipherSuites, is used.
                        type: boolean
                    type: object
paulfantom's avatar
paulfantom committed
            type: object
          status:
            description: |-
              Most recent observed status of the Prometheus cluster. Read-only.
              More info:
              https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
paulfantom's avatar
paulfantom committed
            properties:
              availableReplicas:
                description: |-
                  Total number of available pods (ready for at least minReadySeconds)
                  targeted by this Prometheus deployment.
paulfantom's avatar
paulfantom committed
                format: int32
                type: integer
              conditions:
                description: The current state of the Prometheus deployment.
                items:
                  description: |-
                    Condition represents the state of the resources associated with the
                    Prometheus, Alertmanager or ThanosRuler resource.
                  properties:
                    lastTransitionTime:
                      description: lastTransitionTime is the time of the last update to the current status property.
                      format: date-time
                      type: string
                    message:
                      description: Human-readable message indicating details for the condition's last transition.
                      description: |-
                        ObservedGeneration represents the .metadata.generation that the
                        condition was set based upon. For instance, if `.metadata.generation` is
                        currently 12, but the `.status.conditions[].observedGeneration` is 9, the
                        condition is out of date with respect to the current state of the
                        instance.
                      format: int64
                      type: integer
                    reason:
                      description: Reason for the condition's last transition.
                      type: string
                    status:
                      description: Status of the condition.
                      type: string
                    type:
                      description: Type of the condition being reported.
                      type: string
                  required:
                  - lastTransitionTime
                  - status
                  - type
                  type: object
                type: array
                x-kubernetes-list-map-keys:
                - type
                x-kubernetes-list-type: map
paulfantom's avatar
paulfantom committed
              paused:
                description: |-
                  Represents whether any actions on the underlying managed objects are
                  being performed. Only delete actions will be performed.
paulfantom's avatar
paulfantom committed
                type: boolean
              replicas:
                description: |-
                  Total number of non-terminated pods targeted by this Prometheus deployment
                  (their labels match the selector).
paulfantom's avatar
paulfantom committed
                format: int32
                type: integer
              selector:
                description: The selector used to match the pods targeted by this Prometheus resource.
                type: string
                description: The list has one entry per shard. Each entry provides a summary of the shard status.
                items:
                  properties:
                    availableReplicas:
                      description: |-
                        Total number of available pods (ready for at least minReadySeconds)
                        targeted by this shard.
                      format: int32
                      type: integer
                    replicas:
                      description: Total number of pods targeted by this shard.
                      format: int32
                      type: integer
                    shardID:
                      description: Identifier of the shard.
                      type: string
                    unavailableReplicas:
                      description: Total number of unavailable pods targeted by this shard.
                      format: int32
                      type: integer
                    updatedReplicas:
                      description: |-
                        Total number of non-terminated pods targeted by this shard
                        that have the desired spec.
                      format: int32
                      type: integer
                  required:
                  - availableReplicas
                  - replicas
                  - shardID
                  - unavailableReplicas
                  - updatedReplicas
                  type: object
                type: array
                x-kubernetes-list-map-keys:
                - shardID
                x-kubernetes-list-type: map
              shards:
                description: Shards is the most recently observed number of shards.
                format: int32
                type: integer
paulfantom's avatar
paulfantom committed
              unavailableReplicas:
                description: Total number of unavailable pods targeted by this Prometheus deployment.
paulfantom's avatar
paulfantom committed
                format: int32
                type: integer
              updatedReplicas:
                description: |-
                  Total number of non-terminated pods targeted by this Prometheus deployment
                  that have the desired version spec.
paulfantom's avatar
paulfantom committed
                format: int32
                type: integer
            required:
            - availableReplicas
            - paused
            - replicas
            - unavailableReplicas
            - updatedReplicas
            type: object
        required:
        - spec
        type: object
    served: true
    storage: true
      scale:
        labelSelectorPath: .status.selector
        specReplicasPath: .spec.shards
        statusReplicasPath: .status.shards