Improved documentation
This commit is contained in:
parent
b51fd066e4
commit
9631d0245b
16
README.md
16
README.md
|
@ -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/.
|
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
|
### Create Kubernetes cluster
|
||||||
For creating kubernetes cluster run the following command
|
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
|
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"
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue