0
0
mirror of https://github.com/alex289/CleanArchitecture.git synced 2025-08-30 23:35:30 +00:00

docs: Add info for redis when using kubernetes

This commit is contained in:
Alexander Konietzko 2023-09-01 22:15:24 +02:00
parent 268580b837
commit da8b31eabe
No known key found for this signature in database
GPG Key ID: BA6905F37AEC2B5B
2 changed files with 3 additions and 1 deletions

View File

@ -63,7 +63,8 @@ Running the container
### Using Kubernetes
1. Change the ConnectionString in the appsettings.json to `Server=clean-architecture-db-service;Database=clean-architecture;Trusted_Connection=False;MultipleActiveResultSets=true;TrustServerCertificate=True;User Id=SA;Password=Password123!#`
2. Build the docker image and push it to the docker hub (Change the image name in the `k8s-deployment.yml` to your own)
2. Change the RedisHostName in the appsettings.json to `redis-service`
3. Build the docker image and push it to the docker hub (Change the image name in the `k8s-deployment.yml` to your own)
Apply the deployment file: `kubectl apply -f k8s-deployment.yml` (Delete: `kubectl delete -f k8s-deployment.yml`)

View File

@ -14,6 +14,7 @@ spec:
spec:
containers:
- name: clean-architecture-app
# Replace this with the path to your built image
image: alexdev28/clean-architecture
ports:
- containerPort: 80