diff --git a/charts/README.md b/charts/README.md index 7b0ba80..06e157b 100644 --- a/charts/README.md +++ b/charts/README.md @@ -1,13 +1,27 @@ -# Starting Databunker with MySQL backend +# Installation + +Databunker charts can be installed only with [Helm 3](https://helm.sh/docs/). + +Before installing containers, you need to add Databunker Helm repository. + +Run the following commands: +``` +helm repo add databunker https://databunker.org/charts/ +helm repo update +``` + +# Starting Databunker using MySQL database ## Start Databunker with auto-generated self-signed SSL certificate ``` -helm install --debug databunker ./databunker --set mariadb.primary.persistence.enabled=false --set certificates.customCAs\[0\].secret="databunker" +helm install databunker databunker/databunker --set mariadb.primary.persistence.enabled=false --set certificates.customCAs\[0\].secret="databunker" ``` ## Start Databunker for local testing ``` -helm install --debug databunker ./databunker --set mariadb.primary.persistence.enabled=false --set certificates.customCAs\[0\].secret="databunker" +helm install databunker databunker/databunker \ + --set mariadb.primary.persistence.enabled=false \ + --set certificates.customCAs\[0\].secret="databunker" export POD_NAME=$(kubectl get pods --namespace default -l "app.kubernetes.io/name=databunker,app.kubernetes.io/instance=databunker" -o jsonpath="{.items[0].metadata.name}") export CONTAINER_PORT=$(kubectl get pod --namespace default $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}") @@ -15,41 +29,45 @@ echo "Visit http://127.0.0.1:8080 to use your application" kubectl --namespace default port-forward $POD_NAME 8080:$CONTAINER_PORT ``` -# Starting Databunker DEMO deployment using Kubernetes -You can run the following command: +# Starting Databunker DEMO + +## Start in AWS +Use the following command: ``` -helm install databunker-demo ./databunker-demo --set service.type=NodePort +helm install demo databunker/databunker-demo --set service.type=LoadBalancer ``` -The `./databunker-demo` directory must contain all help chart files for the **databunker-demo** project. - -## Default port for NodePort - -The default port is **30300**. - -## Running Kubernetes on the local machine - -You can open `http://localhost:30300/` in your browser. - -## Start Databunker DEMO on EKS - -``` -helm install databunker-demo ./databunker-demo --set service.type=LoadBalancer -``` +It takes a few seconds for the load balancer starts working. You can use the following command to get URL of the load balancer: ``` -kubectl get svc | grep databunker-demo +kubectl get svc | grep demo ``` +You can open this url in browser. By default, it will use port 3000. + + +## Start using NodePort +You can run the following command: +``` +helm install demo databunker/databunker-demo --set service.type=NodePort +``` + +### Default port for NodePort + +The default port is **30300**. + +## Running Databunker demo on the local machine + +You can open `http://localhost:30300/` in your browser. ## Removing **databunker-demo** deployment Use the following command: ``` -helm uninstall databunker-demo +helm uninstall demo ``` ## Chart Parameters diff --git a/terraform/aws/variables.tf b/terraform/aws/variables.tf index 2de7335..4db3a84 100644 --- a/terraform/aws/variables.tf +++ b/terraform/aws/variables.tf @@ -10,6 +10,5 @@ default = "eu-north-1" resource "random_password" "db_password" { length = 16 - special = true - override_special = "@/" + special = false }