-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtmaxcloud-issuer.yaml
53 lines (49 loc) · 1.14 KB
/
tmaxcloud-issuer.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
## ref https://cert-manager.io/next-docs/reference/api-docs/#cert-manager.io%2fv1alpha3
---
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
labels:
app.kubernetes.io/instance: traefik
app.kubernetes.io/managed-bu: tmax-cloud
app.kubernetes.io/name: api-gateway
name: tmaxcloud-selfsigned
spec:
selfSigned: {}
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
labels:
app.kubernetes.io/instance: traefik
app.kubernetes.io/managed-bu: tmax-cloud
app.kubernetes.io/name: api-gateway
name: tmaxcloud-ca
namespace: cert-manager
spec:
secretName: tmaxcloud-ca
duration: 8760h # 360d=1y
renewBefore: 720h # 30d
commonName: tmaxcloud
isCA: true
usages:
- digital signature
- key encipherment
- server auth
- client auth
issuerRef:
kind: ClusterIssuer
group: cert-manager.io
name: tmaxcloud-selfsigned
---
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
labels:
app.kubernetes.io/instance: traefik
app.kubernetes.io/managed-bu: tmax-cloud
app.kubernetes.io/name: api-gateway
name: tmaxcloud-issuer
spec:
ca:
secretName: tmaxcloud-ca