Local Kubernetes Cluster
This repo is design to enable a Kubernetes cluster environment for use in development.
The cluster hosts services such as a single instance of Redis and MongoDB.
This Kubernetes setup relies on an installation of Docker Desktop . Once installed make sure to enable Kubernetes on the Docker Desktop dashboard.
Execute the one time init script. Optionally, include the local_cluster_host
argument pointed at your ngrok origin, ie: https://some-unique-subdomain.ngrok.io. But all other arguments are required to run the init script.
Usage:
$ ./one-time-init.sh \
--local_cluster_host localk8s.ngrok.io \
--docker_username <docker-username> \
--docker_password "<docker-password>" \
--docker_email <docker-email> \
--github_token <github-readonly-token>
For ease, copy the command above into init.sh and execute it. The init.sh
is automatically excluded from github and may be deleted after use.
Starting:
./startup.sh
Stopping:
./shutdown.sh
Starting:
.\startup.ps1
Stopping:
.\shutdown.ps1
{sudo} kubectl port-forward --address 0.0.0.0 service/hydra-router-cluster-ip-service 80:5353
kubectl port-forward --address 0.0.0.0 service/redis-cluster-ip-service 6379:6379
./ngrok.exe http --subdomain=cjus 80
This repo uses RedisStack to enable a local Redis server. It's highly recommended that you consider using RedisInsight to access the Redis Service.
Download a version for your OS: https://redis.io/docs/stack/insight/#download-the-latest-redisinsight