Secrets Properties

Kubernetes Secrets are a mechanism to securely store and manage sensitive information, such as passwords, OAuth tokens, and SSH keys, within a Kubernetes cluster. This approach helps ensure that sensitive data is not hard-coded or exposed in application code or configuration files.

By providing multiple entries in the secret.files map, you can create multiple Secrets. Each entry in the map generates its own separate Secret. The name format of a Secret is applicationName-nameSuffix. The applicationName is the global parameter. The nameSuffix is each key in secret.files. For example, for the following values, the Secret name is helloworld-config:
applicationName: helloworld 
secret:
  files:
    config: # nameSuffix
      key: value
Secrets Properties describes the Secrets properties:
Table 1. Secrets Properties
Name Description
secret.enabled Set this to true to enable Secrets in the application's Helm chart. The default value is false.
secret.additionalLabels More labels for the Secret.
secret.annotations Annotations for the Secret.
secret.files A map of Secret files with suffixes and data contained in those files.
secret.files.[name].stringData This property enables clear text content to be provided inside the Secret.
secret.files.[name].data This property enables text content to be provided inside the Secret that will be 64-bit encoded.
secret.files.[name].encodedData This property enables text content to be provided inside the Secret that is already 64-bit encoded.
This is an example of a Secrets properties configuration:
secret:
  enabled: true
  files:
   password:
     data:
       password: t0p-Secret