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:
parent
268580b837
commit
da8b31eabe
@ -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`)
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user