Skip to content

Commit

Permalink
Update k8s documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mapeveri committed Mar 9, 2024
1 parent 1953291 commit d459cc7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 14 deletions.
27 changes: 18 additions & 9 deletions .k8s/REAMDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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:

Expand Down
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ To consume async domain events you need to run the next command:
make run-consume-events
```

## Production
## Deployment with Kubernetes

Follow the readme of [.k8s/README.md](https://github.com/mapeveri/typescript-ddd-cqrs/blob/master/.k8s/README.md)

For production run the next command:
```shell script
docker-compose run app npm run start:prod
```

0 comments on commit d459cc7

Please sign in to comment.