deployment incluing memcached

This commit is contained in:
2024-08-01 18:00:49 +02:00
parent 6aaa8fc1b3
commit c9df181256
6 changed files with 66 additions and 1 deletions

View File

@@ -15,11 +15,23 @@ Before deploying the backend application, ensure that you have the following pre
## Deployment Steps
### Initial deployment
To deploy the backend application, follow these steps:
1. Clone this repository: `git clone https://github.com/your-repo.git`
1. Apply the kustomization: `kubectl apply -k .`
### Rolling updates
Since the deployment uses the `latest` tag for the backend application, we simply need to trigger a rolling update which will pull the latest image from the registry. To do this, run the following command:
```bash
kubectl -n anyway-backend rollout restart deployment/nav-backend
```
## Configuration
The kustomization allows for easy configuration of the backend application. To customize the deployment, modify the `kustomization.yaml` file.
### Memcached
The backend application requires a memcached instance. By default, the kustomization deploys this instance, as configured under `memcached/`. To disable this, comment out the `memcached` overlay in the `kustomization.yaml` file.