-
Notifications
You must be signed in to change notification settings - Fork 37
Pre 0.6.0 release fixes #405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,3 +2,4 @@ nav: | |
| - index.md | ||
| - api-concepts.md | ||
| - synchronization.md | ||
| - integrations | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| nav: | ||
| - cert-manager.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,103 @@ | ||
| --- | ||
| title: Cert-Manager | ||
| description: | | ||
| Guide on integrating kube-bind with cert-manager for automated TLS certificate management. | ||
| weight: 10 | ||
| --- | ||
|
|
||
| # Cert-Manager Integration | ||
|
|
||
| 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/). | ||
|
|
||
|
|
||
| 2. **Create a `kube-bind` template for `Certificate` resources** to allow service consumers to request TLS certificates. Below is an example template: | ||
|
|
||
| ```yaml | ||
| kubectl apply -f - <<EOF | ||
| apiVersion: kube-bind.io/v1alpha2 | ||
| kind: APIServiceExportTemplate | ||
| metadata: | ||
| labels: | ||
| provider: cert-manager | ||
| name: certificate | ||
| spec: | ||
| permissionClaims: | ||
| - group: "" | ||
| resource: secrets | ||
| selector: | ||
| references: | ||
| - resource: certificates | ||
| group: cert-manager.io | ||
| jsonPath: | ||
| name: 'spec.secretName' | ||
| resources: | ||
| - group: cert-manager.io | ||
| resource: certificates | ||
| versions: | ||
| - v1 | ||
| scope: Namespaced | ||
| EOF | ||
| ``` | ||
|
|
||
| 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. | ||
|
|
||
| ```bash | ||
| kubectl bind login https://kube-bind.example.com | ||
| # you will get redirected to UI to authenticate and pick the template | ||
| kubectl bind | ||
| ``` | ||
|
|
||
| 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. | ||
|
|
||
| ```bash | ||
| kubectl bind | ||
| 🌐 Opening kube-bind UI in your browser... | ||
| https://kube-bind.genericcontrolplane.io?redirect_url=.... | ||
|
|
||
| Browser opened successfully | ||
| Waiting for binding completion from UI... | ||
| (Press Ctrl+C to cancel) | ||
|
|
||
| Binding completed successfully! | ||
| Created kube-bind namespace. | ||
| 🔒 Created secret kube-bind/kubeconfig-p6mfh for host https://api.kcp-prod.kcp.internal.canary.k8s.ondemand.com:443, namespace kube-bind-dkxkx | ||
| 🚀 Deploying konnector v0.6.0 to namespace kube-bind with custom image "ghcr.io/kube-bind/konnector:v0.6.0-rc1". | ||
| Waiting for the ................... | ||
| ✅ Created APIServiceBinding certificate for 1 resources | ||
| Created 1 APIServiceBinding(s): | ||
| - certificate | ||
| Resources bound successfully! | ||
| ``` | ||
|
|
||
| 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. | ||
|
|
||
| !!! note | ||
| my-selfsigned-issuer must be present in the provider cluster for this example to work. | ||
|
|
||
| ```yaml | ||
| kubectl apply -f - <<EOF | ||
| apiVersion: cert-manager.io/v1 | ||
| kind: Certificate | ||
| metadata: | ||
| name: my-tls-cert | ||
| namespace: default | ||
| spec: | ||
| commonName: my-ca | ||
| isCA: true | ||
| issuerRef: | ||
| kind: ClusterIssuer | ||
| name: my-selfsigned-issuer | ||
| secretName: my-tls-cert | ||
| EOF | ||
| ``` | ||
|
|
||
| 6. Observe that the `Certificate` resource is created in the consumer cluster and the corresponding TLS secret is generated. | ||
|
|
||
| ```bash | ||
| kubectl get certificates | ||
| NAME READY SECRET AGE | ||
| my-tls-cert True my-tls-cert 6m55s | ||
| kubectl get secrets | ||
| NAME TYPE DATA AGE | ||
| my-tls-cert kubernetes.io/tls 3 6m33s | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.