-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexternal-secrets.yaml.tftpl
63 lines (63 loc) · 1.49 KB
/
external-secrets.yaml.tftpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
%{ if length(external_secrets_keys.loki) > 0 }
---
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: ${logs_secret}
namespace: monitoring
spec:
dataFrom:
- extract:
conversionStrategy: Default
decodingStrategy: None
key: ${external_secrets_keys.loki}
metadataPolicy: None
refreshInterval: 1h
secretStoreRef:
kind: ${external_secret_store_ref.kind}
name: ${external_secret_store_ref.name}
target:
creationPolicy: Owner
deletionPolicy: Retain
---
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: ${metrics_secret}
namespace: monitoring
spec:
dataFrom:
- extract:
conversionStrategy: Default
decodingStrategy: None
key: ${external_secrets_keys.prometheus}
metadataPolicy: None
refreshInterval: 1h
secretStoreRef:
kind: ${external_secret_store_ref.kind}
name: ${external_secret_store_ref.name}
target:
creationPolicy: Owner
deletionPolicy: Retain
---
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: ${traces_secret}
namespace: monitoring
spec:
dataFrom:
- extract:
conversionStrategy: Default
decodingStrategy: None
key: ${external_secrets_keys.tempo}
metadataPolicy: None
refreshInterval: 1h
secretStoreRef:
kind: ${external_secret_store_ref.kind}
name: ${external_secret_store_ref.name}
target:
creationPolicy: Owner
deletionPolicy: Retain
---
%{ endif }