diff --git a/README.md b/README.md index af9994a..34eb88c 100644 --- a/README.md +++ b/README.md @@ -14,27 +14,22 @@ All code in this repo is distributed freely by the GPLv3 License. - Requirements: - This project requires a working kubernetes cluster, in case of a testing environment a minikube cluster will by configured for you, otherwise a kubernetes will not be configured. - -- Configuring Secrets: - - ``` - python -m pip install --upgrade pip pipenv - pipenv install - pipenv run python setup.py -e {{environment-option}} -f config.json - ``` + This project requires a working kubernetes cluster with the following tools installed: kubectl, helm and envsubts. If running in a local environment and if minikube is preset a minikube cluster can be created. - Running Kubernetes Application: ``` - sudo apt update && sudo apt install -y jq python3-pip - cd infra-hideyoshi.com - ./deploy.sh {{environmet-flag}} + ./deploy.sh [-f ] [-e ] [-m] ``` - `{{environment-flag}}` : `--local`, `--staging`, `--prod` +- Flags: + + - `-f`: The environment file to use. If not set the system environment variables will be used. + + - `-e`: The environment to deploy. Values `[remote|local]`. Default is `remote`. + + - `-m`: If set, the minikube cluster will be used. - `{{environment-option}` : `local`, `staging`, `prod` ## Authors - [@HideyoshiNakazone](https://github.com/HideyoshiNakazone) diff --git a/deploy.sh b/deploy.sh index 023bc15..60ee9d7 100755 --- a/deploy.sh +++ b/deploy.sh @@ -68,7 +68,7 @@ apply_deployment() { configure_nginx_minikube() { if [[ $setup_minikube == "true" ]]; then - minikube start --driver kvm2 --cpus 2 --memory 4Gib + minikube start --driver kvm2 --cpus 8 --memory 8Gib fi minikube addons enable ingress-dns