feat: create the examples of cluster api #63
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.
What does this PR do?
This PR proposes creating examples of Cluster API resources.
How to run (bootstrap)
Important
We are testing on Ubuntu
Please install Docker manually before continuing: https://docs.docker.com/engine/install/ubuntu
Add your user to the docker group and refresh the session:
sudo usermod -aG docker $USER newgrp docker id -nGThen test without
sudo:Clone the repository and go into the project directory:
git clone https://github.com/latitudesh/cluster-api-provider-latitudesh.git cd cluster-api-provider-latitudeshExport your API Key:
Run the bootstrap script:
The script will:
$CLUSTER_NAME(see hack/.env.dev)Check provider installation:
You should see something similar to:
List CAPL API resources:
Open again the examples repository
cd examples/cluster-apiTo create a cluster running the commands below:
Wait for the cluster to be ready:
To create a machine running the commands below:
💻 You should also see the machine in the dashboard.
Delete all stack
Clean the installation
cd cluster-api-provider-latitudesh make clean