You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/usage/integrations/cert-manager.md
+45-9Lines changed: 45 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,15 +7,25 @@ weight: 10
7
7
8
8
# Cert-Manager Integration
9
9
10
-
1.**Install cert-manager** in your Kubernetes cluster, where kube-bind backend is running, if you haven't already. You can follow the official installation guide [here](https://cert-manager.io/docs/installation/kubernetes/).
10
+
## Setup
11
11
12
-
2.**Add kube-bind export label** to certificate CRD.
12
+
The following sections will guide you through the one-time setup that is required for providing
13
+
certificates using cert-manager and kube-bind.
14
+
15
+
### Install cert-manager
16
+
17
+
Install cert-manager in your Kubernetes cluster, where kube-bind backend is running, if you haven't
18
+
already. You can follow the [official installation guide](https://cert-manager.io/docs/installation/kubernetes/).
19
+
20
+
### Export the Certificate CRD
21
+
22
+
To export the cert-manager `Certificate` CRD, add the kube-bind export label to it:
3.**Create SelfSigned issuer** in the provider cluster.
28
+
### Create a SelfSigned Issuer
19
29
20
30
```yaml
21
31
kubectl apply -f - <<EOF
@@ -28,7 +38,10 @@ spec:
28
38
EOF
29
39
```
30
40
31
-
4.**Create a `kube-bind` template for `Certificate` resources** to allow service consumers to request TLS certificates. Below is an example template:
41
+
### Create a APIServiceExportTemplate
42
+
43
+
It's now time to configure kube-bind to export the certificate resource. To do so, create a
44
+
kube-bind `APIServiceExportTemplate` for `Certificate` resources like this one:
32
45
33
46
```yaml
34
47
kubectl apply -f - <<EOF
@@ -57,15 +70,31 @@ spec:
57
70
EOF
58
71
```
59
72
60
-
5.**Login into the kube-bind CLI** and request a binding to the `certificate` template created above. This will allow you to create `Certificate` resources in your consumer cluster.
73
+
## Usage
74
+
75
+
Now that everything is set up, users can begin to bind to your backend and begin consuming the new
76
+
API.
77
+
78
+
### Login to kube-bind
61
79
62
80
```bash
63
81
kubectl bind login https://kube-bind.example.com
82
+
```
83
+
84
+
### Request a Binding
85
+
86
+
Request a binding to the `certificate` template created above. This will allow you to create
87
+
`Certificate` objects in your consumer cluster.
88
+
89
+
```bash
64
90
# you will get redirected to UI to authenticate and pick the template
65
91
kubectl bind
66
92
```
67
93
68
-
6.**Wait for the binding to be established.** Once the binding is active, you can create `Certificate` resources in your consumer cluster, and you will get `Certificate` objects synced from the provider cluster.
94
+
### Wait for the Binding to be Established
95
+
96
+
Once the binding is active, you can create `Certificate` objects in your consumer cluster, and you
97
+
will get `Certificate` objects synced from the provider cluster.
69
98
70
99
```bash
71
100
kubectl bind
@@ -87,10 +116,13 @@ Created 1 APIServiceBinding(s):
87
116
Resources bound successfully!
88
117
```
89
118
90
-
7.**Create a `Certificate` resource** in your consumer cluster. The cert-manager in the provider cluster will handle the issuance and management of the TLS certificate.
119
+
### Create a Certificate
120
+
121
+
Now you can finally create a `Certificate` object in your consumer cluster. The cert-manager in the
122
+
provider cluster will handle the issuance and management of the TLS certificate.
91
123
92
124
!!! note
93
-
my-selfsigned-issuer must be present in the provider cluster for this example to work.
125
+
`my-selfsigned-issuer` must be present in the provider cluster for this example to work.
94
126
95
127
```yaml
96
128
kubectl apply -f - <<EOF
@@ -109,12 +141,16 @@ spec:
109
141
EOF
110
142
```
111
143
112
-
8. Observe that the `Certificate` resource is created in the consumer cluster and the corresponding TLS secret is generated.
144
+
### Wait for Provisioning
145
+
146
+
Observe that the `Certificate` object is created in the consumer cluster and the corresponding TLS
0 commit comments