-
Notifications
You must be signed in to change notification settings - Fork 1.9k
OBSDOCS-3038: Document Tempo Operator configuration via OLM Subscription environment #107817
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
max-cx
wants to merge
1
commit into
openshift:main
Choose a base branch
from
max-cx:OBSDOCS-3038
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+197
−0
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,195 @@ | ||
| // Module included in the following assemblies: | ||
| // | ||
| // * observability/distr_tracing/distr-tracing-tempo-configuring.adoc | ||
|
|
||
| :_mod-docs-content-type: REFERENCE | ||
| [id="distr-tracing-tempo-config-operator_{context}"] | ||
| = Configuring the {TempoOperator} | ||
|
|
||
| [role="_abstract"] | ||
| You can configure the {TempoOperator} by using the Operator Lifecycle Manager (OLM) Subscription custom resource (CR) to override default settings. This configuration method uses environment variables that take precedence over any ConfigMap-based configuration. | ||
|
|
||
| .Example Subscription CR with Operator configuration | ||
| [source,yaml] | ||
| ---- | ||
| apiVersion: operators.coreos.com/v1alpha1 | ||
| kind: Subscription | ||
| metadata: | ||
| name: tempo-product | ||
| namespace: openshift-tempo-operator | ||
| spec: | ||
| channel: stable | ||
| name: tempo-product | ||
| source: redhat-operators | ||
| sourceNamespace: openshift-marketplace | ||
| config: | ||
| env: | ||
| - name: FEATURE_GATES | ||
| value: "openshift.route,openshift.servingCertsService" | ||
| - name: TLS_PROFILE | ||
| value: "Modern" | ||
| ---- | ||
| where: | ||
|
|
||
| `FEATURE_GATES`:: Specifies a comma-separated list of feature gates to enable or disable. Prefix a gate with `-` to disable it. | ||
| `TLS_PROFILE`:: Specifies the TLS security profile for the Operator. | ||
|
|
||
| [TIP] | ||
| ==== | ||
| You can also configure these values from the {product-title} web console by editing the Subscription object under *Operators* > *Installed Operators* > *{TempoOperator}* > *Subscription*. | ||
| ==== | ||
|
|
||
| You can configure the {TempoOperator} by using the environment variables from the following tables. | ||
|
|
||
| .Feature gates | ||
| [options="header"] | ||
| [cols="a, a"] | ||
| |=== | ||
| |Feature gate |Description | ||
|
|
||
| |`openshift.route` | ||
| |Enables {product-title} route creation for Tempo components. | ||
max-cx marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| |`openshift.servingCertsService` | ||
| |Enables {product-title} service serving certificates. | ||
|
|
||
| |`openshift.oauthProxy` | ||
| |Enables {product-title} OAuth proxy integration. | ||
|
|
||
| |`httpEncryption` | ||
| |Enables HTTP encryption for Tempo components. | ||
max-cx marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| |`grpcEncryption` | ||
| |Enables gRPC encryption for Tempo components. | ||
max-cx marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| |`prometheusOperator` | ||
| |Enables Prometheus Operator integration for metrics. | ||
|
|
||
| |`grafanaOperator` | ||
| |Enables Grafana Operator integration. | ||
|
|
||
| |`builtInCertManagement` | ||
| |Enables built-in certificate management. | ||
|
|
||
| |`observability.metrics.createServiceMonitors` | ||
| |Enables creation of `ServiceMonitor` resources for Prometheus. | ||
|
|
||
| |`observability.metrics.createPrometheusRules` | ||
| |Enables creation of `PrometheusRule` resources for alerts. | ||
|
|
||
| |`networkPolicies` | ||
| |Enables creation of `NetworkPolicy` resources. | ||
|
|
||
| |=== | ||
|
|
||
| .General configuration environment variables | ||
| [options="header"] | ||
| [cols="a, a, a"] | ||
| |=== | ||
| |Environment variable |Description |Example value | ||
|
|
||
| |`FEATURE_GATES` | ||
| |Lists comma-separated feature gates to enable or disable. Prefix a gate with `-` to disable it. | ||
| |`openshift.route,openshift.servingCertsService,-networkPolicies` | ||
|
|
||
| |`DISTRIBUTION` | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we need to mention this? We don't want customers to edit this one right? |
||
| |Sets the distribution type. | ||
| |`openshift` | ||
|
|
||
| |`TLS_PROFILE` | ||
| |Sets TLS security profile type. | ||
| |`Old`, `Intermediate`, or `Modern` | ||
|
|
||
| |`OPENSHIFT_BASE_DOMAIN` | ||
| |Sets the {product-title} base domain for route generation. | ||
| |`apps.example.com` | ||
|
|
||
| |`DEFAULT_POD_SECURITY_CONTEXT` | ||
| |Sets the default `PodSecurityContext` object as JSON. | ||
| |`{"runAsNonRoot": true}` | ||
|
|
||
| |=== | ||
|
|
||
| .Built-in certificate management environment variables | ||
| [options="header"] | ||
| [cols="a, a, a"] | ||
| |=== | ||
| |Environment variable |Description |Example value | ||
|
|
||
| |`BUILT_IN_CERT_MANAGEMENT_CA_VALIDITY` | ||
| |CA certificate validity duration. | ||
| |`8760h` | ||
|
|
||
| |`BUILT_IN_CERT_MANAGEMENT_CA_REFRESH` | ||
| |CA certificate refresh interval. | ||
| |`7008h` | ||
|
|
||
| |`BUILT_IN_CERT_MANAGEMENT_CERT_VALIDITY` | ||
| |Certificate validity duration. | ||
| |`2160h` | ||
|
|
||
| |`BUILT_IN_CERT_MANAGEMENT_CERT_REFRESH` | ||
| |Certificate refresh interval. | ||
| |`1728h` | ||
|
|
||
| |=== | ||
|
|
||
| .Controller manager environment variables | ||
| [options="header"] | ||
| [cols="a, a, a"] | ||
| |=== | ||
| |Environment variable |Description |Example value | ||
|
|
||
| |`METRICS_BIND_ADDRESS` | ||
| |Metrics server bind address. | ||
| |`:8080` | ||
|
|
||
| |`METRICS_SECURE` | ||
| |Enables secure metrics serving. | ||
| |`true` | ||
|
|
||
| |`HEALTH_PROBE_BIND_ADDRESS` | ||
| |Health probe bind address. | ||
| |`:8081` | ||
|
|
||
| |`WEBHOOK_PORT` | ||
| |Webhook server port. | ||
| |`9443` | ||
|
|
||
| |=== | ||
|
|
||
| .Leader election environment variables | ||
| [options="header"] | ||
| [cols="a, a, a"] | ||
| |=== | ||
| |Environment variable |Description |Example value | ||
|
|
||
| |`LEADER_ELECTION_ENABLED` | ||
| |Enables or disables leader election. | ||
| |`true` | ||
|
|
||
| |`LEADER_ELECTION_RESOURCE_LOCK` | ||
| |Resource lock type. | ||
| |`leases` | ||
|
|
||
| |`LEADER_ELECTION_RESOURCE_NAMESPACE` | ||
| |Namespace for leader election resources. | ||
| |`openshift-tempo-operator` | ||
|
|
||
| |`LEADER_ELECTION_RESOURCE_NAME` | ||
| |Name of the leader election resource. | ||
| |`tempo-operator-lock` | ||
|
|
||
| |`LEADER_ELECTION_LEASE_DURATION` | ||
| |Leader election lease duration. | ||
| |`15s` | ||
|
|
||
| |`LEADER_ELECTION_RENEW_DEADLINE` | ||
| |Leader election renew deadline. | ||
| |`10s` | ||
|
|
||
| |`LEADER_ELECTION_RETRY_PERIOD` | ||
| |Leader election retry period. | ||
| |`2s` | ||
|
|
||
| |=== | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.