feat: add Kubernetes manifest for Azurite deployment

This commit is contained in:
2026-03-02 07:34:00 +01:00
parent d5a715fcfc
commit ea7905d7c7
2 changed files with 98 additions and 0 deletions

View File

@@ -28,6 +28,35 @@ To run the Azure Storage Emulator in a container, follow these steps:
You can also use the included example `compose.yaml` file for running it using `docker compose` (or any other compose compatible CLI).
### Using Kubernetes
Use the example manifest `azurite-deployment.yaml`.
1. Create the required Secret from your local env file:
```bash
kubectl create secret generic azurite-accounts \
--from-env-file="$HOME/.azurite/accounts.env"
```
2. Deploy the manifest:
```bash
kubectl apply -f azurite-deployment.yaml
```
3. Get the Kubernetes Service external IP:
```bash
kubectl get svc azurite -o jsonpath='{.status.loadBalancer.ingress[0].ip}'
```
4. Add `/etc/hosts` entries on your workstation and point all Azurite account FQDNs to that Service IP (not `127.0.0.1`):
```
<service_ip> <accountname>.blob.core.windows.net <accountname>.queue.core.windows.net <accountname>.table.core.windows.net
```
### Using Node.js
To install the Azure Storage Emulator natively on your machine, ensure you have Node.js (with npm) and Caddy HTTP Server installed, and follow these steps: