You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by je...@apache.org on 2021/09/29 14:53:58 UTC

[airflow] branch main updated: Chart docs: Update webserver secret key reference configuration (#18595)

This is an automated email from the ASF dual-hosted git repository.

jedcunningham pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 9133ff4  Chart docs: Update webserver secret key reference configuration (#18595)
9133ff4 is described below

commit 9133ff4bc49468a1789b24283f9452b343f47945
Author: Gabriel Machado <ga...@hotmail.com>
AuthorDate: Wed Sep 29 16:53:03 2021 +0200

    Chart docs: Update webserver secret key reference configuration (#18595)
---
 docs/helm-chart/production-guide.rst | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/docs/helm-chart/production-guide.rst b/docs/helm-chart/production-guide.rst
index 36c4e23..4d3c3a3 100644
--- a/docs/helm-chart/production-guide.rst
+++ b/docs/helm-chart/production-guide.rst
@@ -95,9 +95,15 @@ Alternatively, create a kubernetes Secret and use ``webserverSecretKeySecretName
 
 .. code-block:: yaml
 
-    webserverSecretKey: my-webserver-secret
+    webserverSecretKeySecretName: my-webserver-secret
     # where the random key is under `webserver-secret-key` in the k8s Secret
 
+Example to create a kubernetes Secret from ``kubectl``:
+
+.. code-block:: bash
+
+    kubectl create secret generic my-webserver-secret --from-literal="webserver-secret-key=$(python3 -c 'import secrets; print(secrets.token_hex(16))')"
+
 Extending and customizing Airflow Image
 ---------------------------------------