mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 05:36:59 +01:00
Add kubectl encryption config
This commit is contained in:
parent
7166585268
commit
958fb6be2f
2 changed files with 17 additions and 0 deletions
|
|
@ -75,3 +75,9 @@
|
||||||
client_cert: admin
|
client_cert: admin
|
||||||
loop_control:
|
loop_control:
|
||||||
loop_var: service
|
loop_var: service
|
||||||
|
|
||||||
|
- name: Create encryption config file
|
||||||
|
template:
|
||||||
|
src: "templates/encryption-config.yaml.j2"
|
||||||
|
dest: "{{k8s_encryption_config_directory}}/encryption-config.yaml"
|
||||||
|
mode: 0600
|
||||||
|
|
|
||||||
11
roles/kubectl/templates/encryption-config.yaml.j2
Normal file
11
roles/kubectl/templates/encryption-config.yaml.j2
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
kind: EncryptionConfig
|
||||||
|
apiVersion: v1
|
||||||
|
resources:
|
||||||
|
- resources:
|
||||||
|
- secrets
|
||||||
|
providers:
|
||||||
|
- aescbc:
|
||||||
|
keys:
|
||||||
|
- name: key1
|
||||||
|
secret: {{k8s_encryption_config_key}}
|
||||||
|
- identity: {}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue