-
Notifications
You must be signed in to change notification settings - Fork 6
docs: Add how to deploy CAREN #599
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
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"heading-style": { "style": "atx" }, | ||
"ul-style": { "style": "dash" }, | ||
"line-length": { "line_length": 120, "stern": true }, | ||
"line-length": { "line_length": 120, "code_blocks": false }, | ||
"hr-style": { "style": "---" } | ||
} |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
+++ | ||
title = "Addons" | ||
weight = 2 | ||
weight = 3 | ||
icon = "fa-solid fa-cubes" | ||
+++ |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
+++ | ||
title = "Contributing" | ||
weight = 99 | ||
icon = "fa-solid fa-gift" | ||
icon = "fa-solid fa-hand-holding-heart" | ||
+++ |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
+++ | ||
title = "Cluster customizations" | ||
weight = 1 | ||
weight = 2 | ||
icon = "fa-solid fa-screwdriver-wrench" | ||
+++ | ||
|
||
|
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,8 @@ | ||
+++ | ||
title = "Getting started" | ||
icon = "fa-solid fa-forward-fast" | ||
weight = 1 | ||
+++ | ||
|
||
To deploy CAREN, follow the docs on how to deploy CAREN using either | ||
[clusterctl]({{< ref "deployment/via-clusterctl" >}}) or [Helm]({{< ref "deployment/via-helm" >}}). |
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,11 @@ | ||
+++ | ||
title = "Deploying CAREN" | ||
icon = "fa-solid fa-truck-fast" | ||
+++ | ||
|
||
CAREN is implemented as a CAPI runtime extension provider, which means it can be deployed alongside all other CAPI | ||
providers in the same way [using `clusterctl`]({{< ref "via-clusterctl" >}}). However, as CAREN is not yet integrated | ||
into `clusterctl`, it is necessary to first configure `clusterctl` to know about CAREN before we can deploy it. | ||
|
||
Alternatively you can install CAREN [via Helm]({{< ref "via-helm" >}}). Installing via Helm will provide default some | ||
default `ClusterClasses` and allow for further customization of the CAREN deployment. |
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,35 @@ | ||
+++ | ||
title = "Via clusterctl" | ||
icon = "fa-solid fa-circle-nodes" | ||
weight = 1 | ||
+++ | ||
|
||
Add the following to your `clusterctl.yaml` file, which is normally found at | ||
`${XDG_CONFIG_HOME}/cluster-api/clusterctl.yaml` (or `${HOME}/cluster-api/clusterctl.yaml`). See [clusterctl | ||
configuration file] for more details. If the `providers` section already exists, add the entry and omit the `providers` | ||
key from this block below: | ||
|
||
```yaml | ||
providers: | ||
- name: "caren" | ||
url: "https://github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/releases/latest/runtime-extension-components.yaml" | ||
jimmidyson marked this conversation as resolved.
Show resolved
Hide resolved
|
||
type: "RuntimeExtensionProvider" | ||
``` | ||
|
||
Now we can deploy CAREN and other necessary providers (update infrastructure providers for your needs), leaving all | ||
configuration values blank as we will specify these when creating clusters: | ||
|
||
```shell | ||
env CLUSTER_TOPOLOGY=true \ | ||
EXP_RUNTIME_SDK=true \ | ||
EXP_CLUSTER_RESOURCE_SET=true \ | ||
NUTANIX_ENDPOINT= NUTANIX_PASSWORD= NUTANIX_USER= \ | ||
AWS_B64ENCODED_CREDENTIALS= \ | ||
clusterctl init \ | ||
--infrastructure docker,nutanix:v1.4.0-alpha.2,aws \ | ||
--addon helm \ | ||
--runtime-extension caren \ | ||
--wait-providers | ||
``` | ||
|
||
[clusterctl configuration file]: https://cluster-api.sigs.k8s.io/clusterctl/configuration.html?highlight=clusterctl%20config#variables |
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,33 @@ | ||
+++ | ||
title = "Via Helm" | ||
icon = "fa-solid fa-helmet-safety" | ||
weight = 2 | ||
+++ | ||
|
||
When installing CAREN via Helm, we need to deploy Cluster API core providers and any other required infrastructure | ||
providers to our management cluster via `clusterctl`: | ||
|
||
```shell | ||
env CLUSTER_TOPOLOGY=true \ | ||
EXP_RUNTIME_SDK=true \ | ||
EXP_CLUSTER_RESOURCE_SET=true \ | ||
NUTANIX_ENDPOINT= NUTANIX_PASSWORD= NUTANIX_USER= \ | ||
AWS_B64ENCODED_CREDENTIALS= \ | ||
clusterctl init \ | ||
--infrastructure docker,nutanix:v1.4.0-alpha.2,aws \ | ||
--addon helm \ | ||
--wait-providers | ||
``` | ||
|
||
We can then deploy CAREN via Helm by adding the Helm repo and installing in the usual way via Helm: | ||
Add the CAREN Helm repo: | ||
|
||
```shell | ||
helm repo add caren https://nutanix-cloud-native.github.io/cluster-api-runtime-extensions-nutanix/helm | ||
helm repo update caren | ||
helm upgrade --install caren caren/cluster-api-runtime-extensions-nutanix \ | ||
--namespace cluster-api-runtime-extensions-nutanix-system \ | ||
--create-namespace \ | ||
--wait \ | ||
--wait-for-jobs | ||
``` |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
+++ | ||
title = "Lifecycle handlers" | ||
weight = 3 | ||
weight = 4 | ||
icon = "fa-solid fa-seedling" | ||
+++ |
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Late to the party, but maybe next one, just a nit for a comma here:
Alternatively, you can install CAREN ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!