forked from TazTheManiac/cert-manager-webhook-infoblox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathissuer-sample.yaml
More file actions
67 lines (64 loc) · 1.47 KB
/
Copy pathissuer-sample.yaml
File metadata and controls
67 lines (64 loc) · 1.47 KB
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
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: letsencrypt-staging
spec:
acme:
email: YOUR_EMAIL
server: https://acme-staging-v02.api.letsencrypt.org/directory
privateKeySecretRef:
name: letsencrypt-account-key
solvers:
- dns01:
webhook:
groupName: GROUP_NAME
solverName: infoblox
config:
host: INFOBLOX_ADDRESS
view: INFOBLOX_VIEW
usernameSecretRef:
name: CREDENTIAL_SECRET_NAME
key: username
passwordSecretRef:
name: CREDENTIAL_SECRET_NAME
key: password
---
apiVersion: v1
kind: Secret
metadata:
name: CREDENTIAL_SECRET_NAME
namespace: cert-manager
type: Opaque
data:
username: dXNlcm5hbWUK # base64 encoded string "username"
password: cGFzc3dvcmQK # base64 encoded string "password"
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: webhook-infoblox:secret-reader
namespace: cert-manager
rules:
- apiGroups: [""]
resources:
- secrets
resourceNames:
- CREDENTIAL_SECRET_NAME
verbs:
- get
- watch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: webhook-infoblox:secret-reader
namespace: cert-manager
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: webhook-infoblox:secret-reader
subjects:
- apiGroup: ""
kind: ServiceAccount
name: webhook-infoblox
namespace: cert-manager