Skip to content

Commit

Permalink
docs: update age readme
Browse files Browse the repository at this point in the history
  • Loading branch information
isindir committed Dec 3, 2023
1 parent c065f47 commit eecdb81
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,18 +71,24 @@ 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
secretName: sops-age-key-file
extraEnv:
- name: SOPS_AGE_KEY_FILE
value: /etc/sops-age-key-file/key
...
```

* Also see: [Local testing using age](docs/age/README.md)

References:
Expand Down

0 comments on commit eecdb81

Please sign in to comment.