docs: fix k8s yaml (#3575)

pull/3572/head^2
James Elliott 2022-06-22 23:25:10 +10:00 committed by GitHub
parent e2e1d6d30b
commit 2ccdf6933c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -102,6 +102,7 @@ stringData:
This is the same manifest as above but encoded in base64. This is the same manifest as above but encoded in base64.
```yaml ```yaml
---
kind: Secret kind: Secret
apiVersion: v1 apiVersion: v1
type: Opaque type: Opaque
@ -119,6 +120,7 @@ data:
SMTP_PASSWORD: b2k0WWFnNUhYOEJoYzVKVHI0OW5Sa2RQRXI0SmNQTWZMQVB2WHhOcEh0SHFpSFhmeDNpc2RXWHVUZzd5Q3Rqaw== SMTP_PASSWORD: b2k0WWFnNUhYOEJoYzVKVHI0OW5Sa2RQRXI0SmNQTWZMQVB2WHhOcEh0SHFpSFhmeDNpc2RXWHVUZzd5Q3Rqaw==
STORAGE_ENCRYPTION_KEY: ckg4N3JqVk1RQnZ6VmdqOHZWR1N4aG9wMlBQd2Rkcko3QjZvU2tHY21vZ2FuTWY0d3FBTnA5QUp3YU1IdDhSQQ== STORAGE_ENCRYPTION_KEY: ckg4N3JqVk1RQnZ6VmdqOHZWR1N4aG9wMlBQd2Rkcko3QjZvU2tHY21vZ2FuTWY0d3FBTnA5QUp3YU1IdDhSQQ==
STORAGE_PASSWORD: Tk1IZjlaN0M1VVFZdUtLZ2g5QkpUS2VjY29adDZjNjQ3RlFxc0VIaGthcGtrbmRQa1B3M2Q4Ym52a3FMZ2laNQ== STORAGE_PASSWORD: Tk1IZjlaN0M1VVFZdUtLZ2g5QkpUS2VjY29adDZjNjQ3RlFxc0VIaGthcGtrbmRQa1B3M2Q4Ym52a3FMZ2laNQ==
...
``` ```
### Kustomize ### Kustomize
@ -129,6 +131,7 @@ desired secret value.
##### kustomization.yaml ##### kustomization.yaml
```yaml ```yaml
---
generatorOptions: generatorOptions:
disableNameSuffixHash: true disableNameSuffixHash: true
labels: labels:
@ -148,6 +151,7 @@ secretGenerator:
- SMTP_PASSWORD - SMTP_PASSWORD
- STORAGE_ENCRYPTION_KEY - STORAGE_ENCRYPTION_KEY
- STORAGE_PASSWORD - STORAGE_PASSWORD
...
``` ```
## Usage ## Usage
@ -159,6 +163,7 @@ The example is an excerpt for a manifest which can mount volumes. Examples of th
[StatefulSet], and [DaemonSet]. [StatefulSet], and [DaemonSet].
```yaml ```yaml
---
spec: spec:
containers: containers:
- name: authelia - name: authelia
@ -214,6 +219,7 @@ spec:
path: STORAGE_ENCRYPTION_KEY path: STORAGE_ENCRYPTION_KEY
- key: STORAGE_PASSWORD - key: STORAGE_PASSWORD
path: STORAGE_PASSWORD path: STORAGE_PASSWORD
...
``` ```
[Kubernetes]: https://kubernetes.io/ [Kubernetes]: https://kubernetes.io/