k8s Custom Secrets Setup (Deprecated)
Overview
The SUSE Observability agent supports specifying the name of a custom secret that contains the service token and cluster authorization token. This feature is useful for users who wish to manage their own secrets and avoid the automatic creation of secrets by the Helm chart.
|
This method of customizing secrets is deprecated and is incompatible with the RBAC feature. Please use the new method for using external secrets. |
The Helm Chart
Configuration Options
-
stackstate.manageOwnSecrets: A boolean flag that determines whether the user wishes to manage their own secrets. Default value isfalse. -
stackstate.customSecretName: (Optional) Name of the custom secret to be created by the user. Required ifstackstate.manageOwnSecretsis set totrue. -
stackstate.customApiKeySecretKey: (Optional) Service token within the custom secret. Required ifstackstate.manageOwnSecretsis set totrue. -
stackstate.customClusterAuthTokenSecretKey: (Optional) Key name for the cluster authorization token within the custom secret. Required ifstackstate.manageOwnSecretsis set totrue.
Behavior Description
-
Automatic Secret Creation: By default, the chart continues to automatically create secrets as before if
stackstate.manageOwnSecretsis set tofalse. -
Custom Secret Management: If
stackstate.manageOwnSecretsis set totrue, the chart expects the user to provide the name of the custom secret (stackstate.customSecretName) along with the service token and authorization token (stackstate.customApiKeySecretKeyandstackstate.customClusterAuthTokenSecretKey, respectively). -
Implied Omission: When specifying that you would like to manage your own secrets, the chart ignores values for
stackstate.apiKeyandstackstate.cluster.authToken.== How to Use in values.yaml
|
API key is synonymous with service token. Even though the environment variable refers to API_KEY, a service token must be used instead. |
-
Using Automatic Secret Creation (Default):
stackstate: manageOwnSecrets: false apiKey: "<your service token>" -
Managing Own Secrets:
stackstate: manageOwnSecrets: true customSecretName: my-custom-secret customApiKeySecretKey: api-key customClusterAuthTokenSecretKey: auth-token