diff --git a/.k8s/REAMDE.md b/.k8s/REAMDE.md index a3f89058..b78d6029 100644 --- a/.k8s/REAMDE.md +++ b/.k8s/REAMDE.md @@ -6,18 +6,12 @@ Getting started 1. To run in local install minikube and kubectl -2. Docker push image +2. Copy .k8s/secret.yaml.txt to .k8s/secret.yaml and configure it +3. Start minikube - docker login - - docker build -t mapeveri/languages:latest . - docker tag mapeveri/languages:latest mapeveri/languages:latest - - docker push mapeveri/languages:latest - -3. Copy .k8s/secret.yaml.txt to .k8s/secret.yaml and configure it + minikube start 4. Execute @@ -33,6 +27,21 @@ Getting started kubectl delete service app-service +# Docker registry + +When we will need to push the image to docker hub we will need this commands: + + ```bash + docker login + + docker build -t mapeveri/languages:latest . + + docker tag mapeveri/languages:latest mapeveri/languages:latest + + docker push mapeveri/languages:latest + ``` + +3. Copy .k8s/secret.yaml.txt to .k8s/secret.yaml and configure it # Encrypt secret values: diff --git a/README.md b/README.md index e2b42469..3fe49b2a 100644 --- a/README.md +++ b/README.md @@ -48,9 +48,6 @@ To consume async domain events you need to run the next command: make run-consume-events ``` -## Production +## Deployment with Kubernetes -For production run the next command: -```shell script - docker-compose run app npm run start:prod -``` +Follow the readme of .k8s/README.md