-
Notifications
You must be signed in to change notification settings - Fork 7
docs: Add how to create clusters #602
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
3 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
+++ | ||
title = "Creating clusters" | ||
icon = "fa-solid fa-industry" | ||
weight = 2 | ||
+++ | ||
|
||
CAREN currently supports clusters for the providers below (follow the links below to see instructions on how to use | ||
CAREN with these providers). |
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,47 @@ | ||
+++ | ||
title = "AWS" | ||
icon = "fa-brands fa-aws" | ||
weight = 1 | ||
+++ | ||
|
||
Cluster API requires that `ClusterClasses` referenced by a `Cluster` reside in the same namespace as the `Cluster`. To | ||
create the necessary `ClusterClass`, run: | ||
|
||
```shell | ||
kubectl apply --server-side \ | ||
-f https://github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/releases/download/v{{< param "version" >}}/aws-cluster-class.yaml | ||
``` | ||
|
||
You can then create your cluster. First, let's list the required variables: | ||
|
||
```shell | ||
clusterctl generate cluster my-cluster \ | ||
--from https://github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/releases/download/v{{< param "version" >}}/aws-cluster-cilium-helm-addon.yaml \ | ||
--list-variables | ||
``` | ||
|
||
Export the required variables and any optional variables that you may want to set: | ||
|
||
```shell | ||
export AMI_LOOKUP_BASEOS=<value> \ | ||
AMI_LOOKUP_FORMAT=<value> \ | ||
AMI_LOOKUP_ORG=<value> | ||
``` | ||
|
||
And create your cluster: | ||
|
||
```shell | ||
clusterctl generate cluster my-cluster \ | ||
--from https://github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/releases/download/v{{< param "version" >}}/aws-cluster-cilium-helm-addon.yaml | kubectl apply --server-side -f - | ||
``` | ||
|
||
To customize your cluster configuration prior to creation, generate the cluster definition to a file and edit it before applying: | ||
|
||
```shell | ||
clusterctl generate cluster my-cluster \ | ||
--from https://github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/releases/download/v{{< param "version" >}}/aws-cluster-cilium-helm-addon.yaml >mycluster.yaml | ||
|
||
# EDIT mycluster.yaml | ||
|
||
kubectl apply --server-side -f mycluster.yaml | ||
``` |
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,39 @@ | ||
+++ | ||
title = "Docker" | ||
icon = "fa-brands fa-docker" | ||
weight = 3 | ||
+++ | ||
|
||
Cluster API requires that `ClusterClasses` referenced by a `Cluster` reside in the same namespace as the `Cluster`. To | ||
create the necessary `ClusterClass`, run: | ||
|
||
```shell | ||
kubectl apply --server-side \ | ||
-f https://github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/releases/download/v{{< param "version" >}}/docker-cluster-class.yaml | ||
``` | ||
|
||
You can then create your cluster. First, let's list the required variables: | ||
|
||
```shell | ||
clusterctl generate cluster my-cluster \ | ||
--from https://github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/releases/download/v{{< param "version" >}}/docker-cluster-cilium-helm-addon.yaml \ | ||
--list-variables | ||
``` | ||
|
||
Export the required variables and any optional variables that you may want to set and then create your cluster: | ||
|
||
```shell | ||
clusterctl generate cluster my-cluster \ | ||
--from https://github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/releases/download/v{{< param "version" >}}/docker-cluster-cilium-helm-addon.yaml | kubectl apply --server-side -f - | ||
``` | ||
|
||
To customize your cluster configuration prior to creation, generate the cluster definition to a file and edit it before applying: | ||
|
||
```shell | ||
clusterctl generate cluster my-cluster \ | ||
--from https://github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/releases/download/v{{< param "version" >}}/docker-cluster-cilium-helm-addon.yaml >mycluster.yaml | ||
|
||
# EDIT mycluster.yaml | ||
|
||
kubectl apply --server-side -f mycluster.yaml | ||
``` |
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,57 @@ | ||
+++ | ||
title = "Nutanix" | ||
icon = "fa-solid fa-server" | ||
weight = 2 | ||
+++ | ||
|
||
|
||
Cluster API requires that `ClusterClasses` referenced by a `Cluster` reside in the same namespace as the `Cluster`. To | ||
create the necessary `ClusterClass`, run: | ||
|
||
```shell | ||
kubectl apply --server-side \ | ||
-f https://github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/releases/download/v{{< param "version" >}}/nutanix-cluster-class.yaml | ||
``` | ||
|
||
You can then create your cluster. First, let's list the required variables: | ||
|
||
```shell | ||
clusterctl generate cluster my-cluster \ | ||
--from https://github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/releases/download/v{{< param "version" >}}/nutanix-cluster-cilium-helm-addon.yaml \ | ||
--list-variables | ||
``` | ||
|
||
Export the required variables and any optional variables that you may want to set: | ||
|
||
```shell | ||
export CONTROL_PLANE_ENDPOINT_IP=<value> \ | ||
DOCKER_HUB_PASSWORD=<value> \ | ||
DOCKER_HUB_USERNAME=<value> \ | ||
NUTANIX_ENDPOINT=<value> \ | ||
NUTANIX_INSECURE=<value> \ | ||
NUTANIX_MACHINE_TEMPLATE_IMAGE_NAME=<value> \ | ||
NUTANIX_PASSWORD=<value> \ | ||
NUTANIX_PORT=<value> \ | ||
NUTANIX_PRISM_ELEMENT_CLUSTER_NAME=<value> \ | ||
NUTANIX_STORAGE_CONTAINER_NAME=<value> \ | ||
NUTANIX_SUBNET_NAME=<value> \ | ||
NUTANIX_USER | ||
``` | ||
|
||
And create your cluster: | ||
|
||
```shell | ||
clusterctl generate cluster my-cluster \ | ||
--from https://github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/releases/download/v{{< param "version" >}}/nutanix-cluster-cilium-helm-addon.yaml | kubectl apply --server-side -f - | ||
jimmidyson marked this conversation as resolved.
Show resolved
Hide resolved
|
||
``` | ||
|
||
To customize your cluster configuration prior to creation, generate the cluster definition to a file and edit it before applying: | ||
|
||
```shell | ||
clusterctl generate cluster my-cluster \ | ||
--from https://github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/releases/download/v{{< param "version" >}}/nutanix-cluster-cilium-helm-addon.yaml >mycluster.yaml | ||
|
||
# EDIT mycluster.yaml | ||
|
||
kubectl apply --server-side -f mycluster.yaml | ||
``` |
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,11 +1,12 @@ | ||
+++ | ||
title = "Deploying CAREN" | ||
icon = "fa-solid fa-truck-fast" | ||
weight = 1 | ||
+++ | ||
|
||
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. | ||
Alternatively, you can install CAREN [via Helm]({{< ref "via-helm" >}}). Installing via Helm will provide 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
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,3 @@ | ||
{{- $v := .Site.Params -}} | ||
{{- range (split (.Get 0) ".") }}{{ $v = index $v (.) }}{{- end -}} | ||
{{- $v -}} |
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.
Uh oh!
There was an error while loading. Please reload this page.