-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from Danil-Grigorev/quickstart-operator
Helm quick-start guide for operator, turtles and rancher
- Loading branch information
Showing
8 changed files
with
306 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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,7 +1,48 @@ | ||
--- | ||
sidebar_position: 1 | ||
sidebar_position: 2 | ||
--- | ||
|
||
# Add Infrastructure Provider | ||
|
||
In this section we will cover how to add an infrastructure proviedr such as AWS. | ||
This section describes how an infrastructure provider such as `Azure` could be added using `Cluster API Operator`. | ||
|
||
### Installing Azure Infrastructure Provider | ||
|
||
Next, install [Azure Infrastructure Provider](https://capz.sigs.k8s.io/). Before that ensure that `capz-system` namespace exists. | ||
|
||
Since the provider requires variables to be set, create a secret containing them in the same namespace as the provider. It is also recommended to include a `github-token` in the secret. This token is used to fetch the provider repository, and it is required for the provider to be installed. The operator may exceed the rate limit of the GitHub API without the token. Like [clusterctl](https://cluster-api.sigs.k8s.io/clusterctl/overview.html?highlight=github_token#avoiding-github-rate-limiting), the token needs only the `repo` scope. | ||
|
||
```yaml | ||
--- | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: azure-variables | ||
namespace: capz-system | ||
type: Opaque | ||
stringData: | ||
AZURE_CLIENT_ID_B64: Zm9vCg== | ||
AZURE_CLIENT_SECRET_B64: Zm9vCg== | ||
AZURE_SUBSCRIPTION_ID_B64: Zm9vCg== | ||
AZURE_TENANT_ID_B64: Zm9vCg== | ||
github-token: ghp_fff | ||
--- | ||
apiVersion: operator.cluster.x-k8s.io/v1alpha1 | ||
kind: InfrastructureProvider | ||
metadata: | ||
name: azure | ||
namespace: capz-system | ||
spec: | ||
version: v1.9.3 | ||
configSecret: | ||
name: azure-variables | ||
``` | ||
### Deleting providers | ||
To remove the installed providers and all related kubernetes objects just delete the following CRs: | ||
```bash | ||
kubectl delete coreprovider cluster-api | ||
kubectl delete infrastructureprovider azure | ||
``` |
15 changes: 15 additions & 0 deletions
15
docs/tasks/capi-operator/basic_cluster_api_provider_installation.md
This file contains 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,15 @@ | ||
--- | ||
sidebar_position: 1 | ||
--- | ||
|
||
# Basic Cluster API Provider Installation | ||
|
||
This section describes the basic process of installing `CAPI` providers using the operator. The `Cluster API Operator` manages five types of objects: | ||
|
||
- `CoreProvider` | ||
- `BootstrapProvider` | ||
- `ControlPlaneProvider` | ||
- `InfrastructureProvider` | ||
- `AddonProvider` | ||
|
||
Please note that this example provides a basic configuration of Azure Infrastructure provider for getting started. More detailed examples and CRD descriptions are provided in the `Cluster API Operator` [documentation](https://github.com/kubernetes-sigs/cluster-api-operator/tree/main/docs#readme) |
Oops, something went wrong.