-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample.yml
50 lines (50 loc) · 1.03 KB
/
sample.yml
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
apiVersion: v1
kind: ServiceAccount
metadata:
name: athenz.example
namespace: default
---
apiVersion: cert-manager.athenz.io/v1
kind: AthenzClusterIssuer
metadata:
name: athenz-cluster-issuer
spec:
ztsEndpoint: https://zts.athenzcompany.com/zts/v1
cloud: aws
region: us-east-1
providerPrefix: sys.k8s
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: example-com
namespace: default
annotations:
csi.cert-manager.athenz.io/identity: spiffe://cluster.local/ns/default/sa/athenz.example
spec:
secretName: example-com-tls
duration: 2h
renewBefore: 1h
subject:
organizations:
- athenz
commonName: example.com
isCA: false
privateKey:
algorithm: RSA
encoding: PKCS1
size: 2048
usages:
- server auth
- client auth
dnsNames:
- example.com
- www.example.com
uris:
- spiffe://cluster.local/ns/default/sa/athenz.example
ipAddresses:
- 192.168.0.6
issuerRef:
name: athenz-cluster-issuer
kind: AthenzClusterIssuer
group: cert-manager.athenz.io