@@ -46,26 +46,27 @@ Running pgAdmin:
4646- The first time you use ` pgAdmin ` after building the Docker containers you will need to register the server.
4747The ` Host name/address ` , ` Username ` and ` Password ` are specified in ` balancer-main/docker-compose.yml `
4848
49- ## Kubernetes
49+ ## Local Kubernetes Deployment
5050
5151### Prereqs
5252
53+ - Fill the configmap with the [ env vars] ( ./deploy/manifests/balancer/base/configmap.yml )
5354- Install [ Devbox] ( https://www.jetify.com/devbox )
5455- Run the following script with admin privileges:
5556
5657``` bash
5758HOSTNAME=" balancertestsite.com"
58- DOCKER_IP=$( docker network inspect kind -f ' {{(index .IPAM.Config 0).Gateway}}' )
59- echo " Docker IP: $DOCKER_IP "
59+ LOCAL_IP=" 127.0.0.1"
6060
6161# Check if the correct line already exists
62- if grep -q " ^$DOCKER_IP [[:space:]]\+$HOSTNAME " /etc/hosts; then
63- echo " Entry for $HOSTNAME with IP $DOCKER_IP already exists in /etc/hosts"
62+ if grep -q " ^$LOCAL_IP [[:space:]]\+$HOSTNAME " /etc/hosts; then
63+ echo " Entry for $HOSTNAME with IP $LOCAL_IP already exists in /etc/hosts"
6464else
6565 echo " Updating /etc/hosts for $HOSTNAME "
6666 sudo sed -i " /[[:space:]]$HOSTNAME /d" /etc/hosts
67- echo " $DOCKER_IP $HOSTNAME " | sudo tee -a /etc/hosts
67+ echo " $LOCAL_IP $HOSTNAME " | sudo tee -a /etc/hosts
6868fi
69+ ```
6970
7071### Steps to reproduce
7172
@@ -77,6 +78,8 @@ devbox create:cluster
7778devbox run deploy:balancer
7879```
7980
81+ The website should be available in [ https://balancertestsite.com:30219/ ] ( https://balancertestsite.com:30219/ )
82+
8083## Architecture
8184
8285The Balancer website is a Postgres, Django REST, and React project. The source code layout is:
0 commit comments