Skip to content

Commit

Permalink
docs: add note about the lifetime of synced k8s secrets (#572)
Browse files Browse the repository at this point in the history
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
  • Loading branch information
aramase committed Jul 15, 2021
1 parent 715d9f0 commit 9654564
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions website/content/en/configurations/sync-with-k8s-secrets.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ In some cases, you may want to create a Kubernetes Secret to mirror the mounted

- The secrets will only sync once you *start a pod mounting the secrets*. Solely relying on the syncing with Kubernetes secrets feature thus does not work.
- The Kubernetes secrets will be synced to the same namespace as the application pod and `SecretProviderClass`.
- When all the pods consuming the secret are deleted, the Kubernetes secret is also deleted. This is done by adding the pods as owners to the created Kubernetes secret. When all the application pods consuming the Kubernetes secret are deleted, the Kubernetes secret will be garbage collected.
{{% /alert %}}

A `SecretProviderClass` custom resource should have the following components:
Expand Down

0 comments on commit 9654564

Please sign in to comment.