-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathhyperauth_certs.yaml
91 lines (87 loc) · 1.89 KB
/
hyperauth_certs.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: hyperauth-certificate
namespace: hyperauth
spec:
secretName: hyperauth-https-secret
duration: 8760h # 360d=1y
renewBefore: 720h # 30d
isCA: false
usages:
- digital signature
- key encipherment
- server auth
- client auth
ipAddresses:
- {HYPERAUTH_EXTERNAL_IP}
dnsNames:
- {HYPERAUTH_EXTERNAL_DNS}
- tmax-cloud
issuerRef:
kind: ClusterIssuer
group: cert-manager.io
name: tmaxcloud-issuer
---
apiVersion: cert-manager.io/v1alpha2
kind: Certificate
metadata:
name: hyperauth-kafka-jks-certificate
namespace: hyperauth
spec:
secretName: hyperauth-kafka-jks
commonName: hyperauth
isCA: false
keySize: 2048
duration: 8760h # 360d=1y
renewBefore: 720h # 30d
keyAlgorithm: rsa
keyEncoding: pkcs1
keystores:
jks:
create: true
passwordSecretRef: # Password used to encrypt the keystore
key: CERTS_PASSWORD
name: passwords
usages:
- digital signature
- key encipherment
- server auth
issuerRef:
name: tmaxcloud-issuer
kind: ClusterIssuer
group: cert-manager.io
---
apiVersion: cert-manager.io/v1alpha2
kind: Certificate
metadata:
name: kafka-broker-jks-certificate
namespace: hyperauth
spec:
secretName: kafka-jks
commonName: kafka
dnsNames:
- kafka-kafka-bootstrap.hyperauth
- "*.kafka-kafka-brokers.hyperauth.svc"
- "*.hyperauth"
- tmax-cloud
isCA: false
keySize: 2048
duration: 8760h # 360d=1y
renewBefore: 720h # 30d
keyAlgorithm: rsa
keyEncoding: pkcs1
keystores:
jks:
create: true
passwordSecretRef: # Password used to encrypt the keystore
key: CERTS_PASSWORD
name: passwords
usages:
- digital signature
- key encipherment
- server auth
issuerRef:
name: tmaxcloud-issuer
kind: ClusterIssuer
group: cert-manager.io