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
+28-10Lines changed: 28 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,8 +9,26 @@ weight: 10
9
9
10
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/).
11
11
12
+
2.**Add kube-bind export label** to certificate CRD.
12
13
13
-
2.**Create a `kube-bind` template for `Certificate` resources** to allow service consumers to request TLS certificates. Below is an example template:
3.**Create SelfSigned issuer** in the provider cluster.
19
+
20
+
```yaml
21
+
kubectl apply -f - <<EOF
22
+
apiVersion: cert-manager.io/v1
23
+
kind: ClusterIssuer
24
+
metadata:
25
+
name: my-selfsigned-issuer
26
+
spec:
27
+
selfSigned: {}
28
+
EOF
29
+
```
30
+
31
+
4.**Create a `kube-bind` template for `Certificate` resources** to allow service consumers to request TLS certificates. Below is an example template:
14
32
15
33
```yaml
16
34
kubectl apply -f - <<EOF
@@ -39,18 +57,18 @@ spec:
39
57
EOF
40
58
```
41
59
42
-
3.**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.
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.
43
61
44
62
```bash
45
63
kubectl bind login https://kube-bind.example.com
46
64
# you will get redirected to UI to authenticate and pick the template
47
-
kubectl bind
65
+
kubectl bind
48
66
```
49
67
50
-
4.**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.
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.
@@ -69,11 +87,11 @@ Created 1 APIServiceBinding(s):
69
87
Resources bound successfully!
70
88
```
71
89
72
-
5.**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.
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.
73
91
74
92
!!! note
75
93
my-selfsigned-issuer must be present in the provider cluster for this example to work.
76
-
94
+
77
95
```yaml
78
96
kubectl apply -f - <<EOF
79
97
apiVersion: cert-manager.io/v1
@@ -91,13 +109,13 @@ spec:
91
109
EOF
92
110
```
93
111
94
-
6. Observe that the `Certificate` resource is created in the consumer cluster and the corresponding TLS secret is generated.
112
+
8. Observe that the `Certificate` resource is created in the consumer cluster and the corresponding TLS secret is generated.
0 commit comments