From eecdb813453365f412ea83d89d76d77a3c3efedb Mon Sep 17 00:00:00 2001 From: Eriks Zelenka Date: Sun, 3 Dec 2023 09:10:44 +0000 Subject: [PATCH] docs: update age readme --- README.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9155e9b4..c16ce14c 100644 --- a/README.md +++ b/README.md @@ -71,10 +71,14 @@ helm upgrade --install sops sops/sops-secrets-operator --namespace sops ## Age * Create age reference `keys.txt` file, create kubernetes secret from it. -* Deploy helm chart - - Use `secretsAsFiles` to specify the secret which contains the `keys.txt`. Example: - - Use `extraEnv` and specify mounted `keys.txt` path `SOPS_AGE_KEY_FILE` environment variable: -``` +* Deploy helm chart: + * Use `secretsAsFiles` to specify the secret which contains the `keys.txt`. + * Use `extraEnv` and specify mounted `keys.txt` path `SOPS_AGE_KEY_FILE` environment variable. + +See example: + +```yaml +... secretsAsFiles: - mountPath: /etc/sops-age-key-file name: sops-age-key-file @@ -82,7 +86,9 @@ secretsAsFiles: extraEnv: - name: SOPS_AGE_KEY_FILE value: /etc/sops-age-key-file/key +... ``` + * Also see: [Local testing using age](docs/age/README.md) References: