forked from bitnami-labs/sealed-secrets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sealedsecret.yaml
48 lines (48 loc) · 1.62 KB
/
sealedsecret.yaml
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
---
apiVersion: bitnami.com/v1alpha1
kind: SealedSecret
metadata:
name: example
spec:
encryptedData:
server1: "AgA+dujiBo..."
server2: "AgCC4/FvhZ..."
database1: "AgBtYQzl3T..."
template:
metadata:
creationTimestamp: null
name: example
namespace: default
data:
myconfig.json: |
{
"Server": [{
"host": "foobar",
"ip": "10.10.10.12",
"port": "22",
"env": "SOME_ENV",
"user": "myuser",
"password": "{{ index . "server1" }}",
"role": "foo"
},{
"host": "barfoo",
"ip": "10.10.10.11",
"port": "22",
"env": "SOME_OTHER_STUFF",
"user": "otheruser",
"password": "{{ index . "server2" }}",
"role": "foo"
}
],
"Database": [{
"host": "somedb",
"ip": "10.10.10.10",
"port": "1521",
"sid": "FOO",
"env": "BAZ",
"user": "abcdefg123",
"password": "{{ index . "database1" }}",
"role": "foo"
}
]
}