How can I set up Lenses using credentials outside of Lenses Helm chart?
Sensitive values used in passwords while configuring Lenses can be taken from external Kubernetes resources using the underlying mechanism of transforming env vars to Lenses configuration.
Currenlty, supported sensitive values:
For the whole list of supported sensitive values, take a look into the latest values.yaml file.
lenses: schemaRegistries: enabled: true security: enabled: true authType: USER_INFO # Use the value "external" to bypass the Helm validation and handle externally. username: external password: external additionalEnv: - name: LENSES_SCHEMA_REGISTRY_USERNAME valueFrom: secretKeyRef: name: [SECRET_RESOURCE_NAME] key: lenses-schema-registry-username - name: LENSES_SCHEMA_REGISTRY_PASSWORD valueFrom: secretKeyRef: name: [SECRET_RESOURCE_NAME] key: lenses-schema-registry-password
lenses: storage: postgres: enabled: true # Use the value "external" to bypass the Helm validation and handle externally. username: external password: external additionalEnv: - name: LENSES_STORAGE_POSTGRES_USERNAME valueFrom: secretKeyRef: name: [SECRET_RESOURCE_NAME] key: lenses-storage-postgres-username - name: LENSES_STORAGE_POSTGRES_PASSWORD valueFrom: secretKeyRef: name: [SECRET_RESOURCE_NAME] key: lenses-storage-postgres-password
lenses: security: defaultUser: # Use the value "external" to bypass the Helm validation and handle externally. username: external password: external additionalEnv: - name: LENSES_SECURITY_USER valueFrom: secretKeyRef: name: [SECRET_RESOURCE_NAME] key: lenses-security-username - name: LENSES_SECURITY_PASSWORD valueFrom: secretKeyRef: name: [SECRET_RESOURCE_NAME] key: lenses-security-password
lenses: # Use the value "external" to bypass the Helm validation and handle externally. license: external additionalEnv: - name: LICENSE valueFrom: secretKeyRef: name: [SECRET_RESOURCE_NAME] key: lenses-license
lenses: kafka: sasl: enabled: true # Use the value "external" to bypass the Helm validation and handle externally. jaasConfig: external additionalEnv: - name: LENSES_KAFKA_SETTINGS_CLIENT_SASL_JAAS_CONFIG valueFrom: secretKeyRef: name: [SECRET_RESOURCE_NAME] key: lenses-kafka-settings-client-sasl-jaas-config
On this page