Skip to content

Commit e016edb

Browse files
committed
remove sensitive values
1 parent cb605bb commit e016edb

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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.
4747
The `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
5758
HOSTNAME="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"
6464
else
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
6868
fi
69+
```
6970

7071
### Steps to reproduce
7172

@@ -77,6 +78,8 @@ devbox create:cluster
7778
devbox run deploy:balancer
7879
```
7980

81+
The website should be available in [https://balancertestsite.com:30219/](https://balancertestsite.com:30219/)
82+
8083
## Architecture
8184

8285
The Balancer website is a Postgres, Django REST, and React project. The source code layout is:

deploy/manifests/balancer/base/configmap.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@ apiVersion: v1
22
data:
33
DEBUG: "1"
44
SECRET_KEY: "foo"
5-
DJANGO_ALLOWED_HOSTS: "localhost 127.0.0.1 [::1]"
5+
DJANGO_ALLOWED_HOSTS: "localhost 127.0.0.1 [::1] balancertestsite.com"
66
SQL_ENGINE: "django.db.backends.postgresql"
77
SQL_DATABASE: "balancer_dev"
88
SQL_USER: "balancer"
9-
SQL_PASSWORD: "asdFAf1324"
10-
SQL_HOST: "database-1.c9a0wokccvp3.us-east-1.rds.amazonaws.com"
9+
SQL_PASSWORD: ""
10+
SQL_HOST: ""
1111
SQL_PORT: "5432"
1212
DATABASE: "postgres"
1313
LOGIN_REDIRECT_URL: ""
14-
OPENAI_API_KEY: "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"
15-
PINECONE_API_KEY: "6c326c1c-b0b6-45b8-acac-69eb0b235e34"
14+
OPENAI_API_KEY: ""
15+
PINECONE_API_KEY: ""
1616
REACT_APP_API_BASE_URL: "https://balancertestsite.com/"
1717
kind: ConfigMap
1818
metadata:

0 commit comments

Comments
 (0)