Skip to content

Commit f4703eb

Browse files
authored
docs: improve docs for providing token as secret (#707)
This improves a little the documentation about providing tokens as k8s secrets instead of having them directly in the chart values.
1 parent 3471875 commit f4703eb

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
77
### Added
88

99
- Add experimental support for deploying OpenTelemetry Operator as a subchart [#691](https://github.com/signalfx/splunk-otel-collector-chart/pull/691)
10+
- Improve documentation about providing tokens as Kubernetes secrets [#707](https://github.com/signalfx/splunk-otel-collector-chart/pull/691)
1011

1112
## [0.72.0] - 2023-03-09
1213

docs/advanced-configuration.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,16 @@ splunkObservability:
2626
clusterName: my-k8s-cluster
2727
```
2828
29+
## Provide tokens as a secret
30+
31+
Instead of having the tokens as clear text in the values, those can be provided via a secret that is created before deploying the chart. See [secret-splunk.yaml](https://github.com/signalfx/splunk-otel-collector-chart/blob/main/helm-charts/splunk-otel-collector/templates/secret-splunk.yaml) for the required fields.
32+
33+
```yaml
34+
secret:
35+
create: false
36+
name: your-secret
37+
```
38+
2939
## Cloud provider
3040
3141
Use the `cloudProvider` parameter to provide information about the cloud

helm-charts/splunk-otel-collector/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ splunkPlatform:
2828
# enables Splunk Platform as a destination.
2929
endpoint: ""
3030
# Required for Splunk Enterprise/Cloud (if `endpoint` is specified). Splunk
31+
# Alternatively the token can be provided as a secret.
32+
# Refer to https://github.com/signalfx/splunk-otel-collector-chart/blob/main/docs/advanced-configuration.md#provide-tokens-as-a-secret
3133
# HTTP Event Collector token.
3234
token: ""
3335

@@ -52,6 +54,8 @@ splunkPlatform:
5254
# data over HTTPS.
5355
insecureSkipVerify: false
5456
# The PEM-format CA certificate for this client.
57+
# Alternatively the clientCert, clientKey and caFile can be provided as a secret.
58+
# Refer to https://github.com/signalfx/splunk-otel-collector-chart/blob/main/docs/advanced-configuration.md#provide-tokens-as-a-secret
5559
# NOTE: The content of the certificate itself should be used here, not the
5660
# file path. The certificate will be stored as a secret in kubernetes.
5761
clientCert: ""
@@ -111,6 +115,8 @@ splunkObservability:
111115
# destination.
112116
realm: ""
113117
# Required for Splunk Observability (if `realm` is specified). Splunk
118+
# Alternatively the accessToken can be provided as a secret.
119+
# Refer to https://github.com/signalfx/splunk-otel-collector-chart/blob/main/docs/advanced-configuration.md#provide-tokens-as-a-secret
114120
# Observability org access token.
115121
accessToken: ""
116122

0 commit comments

Comments
 (0)