feat(backupstore): add azurite emulator
Add the Azurite manifest to start Azurite server for local testing Ref: 1309 Signed-off-by: James Lu <james.lu@suse.com>
This commit is contained in:
parent
9681de43de
commit
2a811e282b
39
deploy/backupstores/azurite-backupstore.yaml
Normal file
39
deploy/backupstores/azurite-backupstore.yaml
Normal file
@ -0,0 +1,39 @@
|
||||
# same secret for longhorn-system namespace
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: azblob-secret
|
||||
namespace: longhorn-system
|
||||
type: Opaque
|
||||
data:
|
||||
AZBLOB_ACCOUNT_NAME: ZGV2c3RvcmVhY2NvdW50MQ==
|
||||
AZBLOB_ACCOUNT_KEY: RWJ5OHZkTTAyeE5PY3FGbHFVd0pQTGxtRXRsQ0RYSjFPVXpGVDUwdVNSWjZJRnN1RnEyVVZFckN6NEk2dHEvSzFTWkZQVE90ci9LQkhCZWtzb0dNR3c9PQ==
|
||||
AZBLOB_ENDPOINT: aHR0cDovL2F6YmxvYi1zZXJ2aWNlLmRlZmF1bHQ6MTAwMDAv
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: longhorn-test-azblob
|
||||
namespace: default
|
||||
labels:
|
||||
app: longhorn-test-azblob
|
||||
spec:
|
||||
containers:
|
||||
- name: azurite
|
||||
image: mcr.microsoft.com/azure-storage/azurite:3.23.0
|
||||
ports:
|
||||
- containerPort: 10000
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: azblob-service
|
||||
namespace: default
|
||||
spec:
|
||||
selector:
|
||||
app: longhorn-test-azblob
|
||||
ports:
|
||||
- port: 10000
|
||||
targetPort: 10000
|
||||
protocol: TCP
|
||||
sessionAffinity: ClientIP
|
Loading…
Reference in New Issue
Block a user