From bb54de8124ded2cb04957b0cd2da8648c764df6c Mon Sep 17 00:00:00 2001 From: root Date: Thu, 13 Jan 2022 22:09:56 +0000 Subject: [PATCH] update the file --- terraform/aws/README.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/terraform/aws/README.md b/terraform/aws/README.md index 8b0f811..68a8d7c 100644 --- a/terraform/aws/README.md +++ b/terraform/aws/README.md @@ -11,7 +11,7 @@ These Terraform configuration files create the following AWS infrastructure elem 1. Elastic Kubernetes Service (EKS) 1. Security groups to allow connectivity -During deployment, Terraform generates a random MySQL password. This password is saved in just created EKS cluster as a **Kubernetes secret** using the following resource path: ```databunker-mysql-rds/db-password```. +During deployment, Terraform generates a random MySQL password. This password is saved in newly created EKS cluster as a **Kubernetes secret** using the following resource path: ```databunker-mysql-rds/db-password```. ### ⚡ How to setup everything @@ -26,7 +26,7 @@ Run the following command to create AWS infrastructure: terraform apply ``` -You can use the following command to display MySQL database domain name. You will need its value in the next section. +You can use the following command to display full MySQL database domain name. You will need its value in the next part. ``` terraform output rds_hostname ``` @@ -36,16 +36,17 @@ terraform output rds_hostname ``` export KUBECONFIG=`pwd`/`ls -1 kubeconfig_*` ``` -1. Create an SSL certificate for Databunker service and save it as Kubernetes secret +After this command, you can execute ```kubectl get nodes``` to list all nodes in newly created EKS cluster. +2. Create an SSL certificate for Databunker service and save it as Kubernetes secret ``` openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout tls.key -out tls.crt -subj "/CN=localhost" ``` -1. Add Databunker charts repository using ```helm``` command and run ```helm update``` +3. Add Databunker charts repository using ```helm``` command and run ```helm update``` ``` helm repo add databunker https://databunker.org/charts/ helm repo update ``` -1. Deploy Databunker service using the ```helm``` command +4. Deploy Databunker service using the ```helm``` command ``` helm install databunker databunker/databunker --set mariadb.enabled=false \ --set externalDatabase.host=MYSQL-RDS-HOST \ @@ -53,7 +54,7 @@ helm install databunker databunker/databunker --set mariadb.enabled=false \ --set certificates.customCertificate.certificateSecret=databunkertls ``` -The **MYSQL-RDS-HOST** is a MySQL domain name. +🚩 The **MYSQL-RDS-HOST** above is a full MySQL domain name. **All commands together**