KeptnConfig

Define configuration values

KeptnConfig defines Keptn configuration values.

Yaml Synopsis

apiVersion: options.keptn.sh/v?alpha?
kind: KeptnConfig
metadata:
  name: <configuration-name>
spec:
  OTelCollectorUrl: '<otelurl:port>'
  keptnAppCreationRequestTimeoutSeconds: <#-seconds>
  cloudEventsEndpoint: <endpoint>

Fields

  • apiVersion – API version being used.

  • kind – Resource type. Must be set to KeptnConfig.

  • metadata

  • spec

    • OTelCollectorUrl – The URL and port of the OpenTelemetry collector This field must be populated in order to export traces to the OpenTelemetry Collector.
    • keptnAppCreationRequestTimeoutSeconds – Interval in which automatic app discovery searches for workloads to put into the same auto-generated KeptnApp. The default value is 30 (seconds).
    • cloudEventsEndpoint – Endpoint where the lifecycle operator posts Cloud Events.

Usage

Each cluster should have a single KeptnConfig CRD that describes all configurations for that cluster.

Example

OTel example

This example specifies the URL of the OpenTelemetry collector and that the automatic app discovery should be run every 40 seconds:

apiVersion: options.keptn.sh/v1alpha2
kind: KeptnConfig
metadata:
  name: keptn-config
spec:
  OTelCollectorUrl: 'otel-collector:4317'
  keptnAppCreationRequestTimeoutSeconds: 40
  cloudEventsEndpoint: 'http://endpoint.com'

Files

API Reference:

Differences between versions

See also