Improved documentation

This commit is contained in:
Sandro La Bruzzo 2024-04-19 16:32:51 +02:00
parent b51fd066e4
commit 9631d0245b
1 changed files with 16 additions and 0 deletions

View File

@ -33,6 +33,8 @@ Before you begin, you will need to install the following software on your local
2. Kind: Kind is a tool for creating local Kubernetes clusters using Docker container "nodes". You can download Kind from https://kind.sigs.k8s.io/docs/user/quick-start/.
3. Terraform: Terraform lets you define what your infrastructure looks like in a single configuration file. This file describes things like virtual machines, storage, and networking. Terraform then takes that configuration and provisions (creates) all the resources you need in the cloud, following your instructions.
### Create Kubernetes cluster
For creating kubernetes cluster run the following command
@ -51,3 +53,17 @@ To enable ingress run the command:
kubectl apply --context kind-openaire-data-platform -f ./clusters/local/nginx-kind-deploy.yaml
```
### Define the cluster
- Generate a terraform variable file starting from the file ```local.tfvars.template``` and save as ```local.tfvars```
- Initialize terraform:
```console
terraform init
````
- Create the cluster:
```console
terraform apply -var-file="local.tfvars"
```