consumerfinance.gov
consumerfinance.gov copied to clipboard
Add `ingress-nginx` to local deployments
Instead of exposing ports, it is more "prod-like" to access it through an ingress. This PR adds instructions to helm/README.md
explaining how to install ingress-nginx
, and how to access the
deployment through the ingress locally.
Additions
- Adds notes on how to install
ingress-nginx
- Changes
helm-install.sh
to useRELEASE
variable for ingress hostname.- default is
cfgov.localhost
, otherwise<release>.localhost
.
- default is
Changes
- default
LoadBalancer
on port8000
, changed toClusterIP
for default.
How to test this PR
- Make sure you have 8 CPUs and 8GB of RAM allocated in Docker Desktop Settings -> Resources.
- Install
ingress-nginx
following the instructions. - Run
./build-images.sh && ./helm-install.sh
- Run
RELEASE=my-test ./helm-install.sh
- Scale
my-test-cfgov
Deployment to0
and load different data (ex,test.sql.gz
, followManually Load Data
inREADME.md
). Scalemy-test-cfgov
back to 1 once data is loaded. - Access
cfgov.localhost
andmy-test.localhost
Screenshots