-
Notifications
You must be signed in to change notification settings - Fork 86
/
cert-manager.yaml
54 lines (54 loc) · 1.14 KB
/
cert-manager.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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: cert-exporter
name: cert-exporter
spec:
selector:
matchLabels:
name: cert-exporter
template:
metadata:
annotations:
prometheus.io/port: "8080"
prometheus.io/scrape: "true"
labels:
name: cert-exporter
spec:
serviceAccountName: cert-exporter
containers:
- image: joeelliott/cert-exporter:v2.14.0
name: cert-exporter
command: ["./app"]
args:
- --secrets-annotation-selector=cert-manager.io/certificate-name
- --secrets-include-glob=*.crt
- --logtostderr
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: cert-reader
rules:
- apiGroups: [""]
resources: ["secrets","configmaps"]
verbs: ["get", "list"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: cert-exporter
subjects:
- kind: ServiceAccount
name: cert-exporter
namespace: default
roleRef:
kind: ClusterRole
name: cert-reader
apiGroup: rbac.authorization.k8s.io
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: cert-exporter