feat: add Kubernetes manifest for Azurite deployment
This commit is contained in:
69
azurite-deployment.yaml
Normal file
69
azurite-deployment.yaml
Normal file
@@ -0,0 +1,69 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: azurite-storage
|
||||
labels:
|
||||
app.kubernetes.io/name: azurite
|
||||
app.kubernetes.io/component: storage-emulator
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 100Mi
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: azurite
|
||||
labels:
|
||||
app.kubernetes.io/name: azurite
|
||||
app.kubernetes.io/component: storage-emulator
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: azurite
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: azurite
|
||||
app.kubernetes.io/component: storage-emulator
|
||||
spec:
|
||||
containers:
|
||||
- name: azurite
|
||||
image: azurite:latest
|
||||
imagePullPolicy: IfNotPresent
|
||||
args:
|
||||
- --oauth
|
||||
ports:
|
||||
- name: https
|
||||
containerPort: 443
|
||||
protocol: TCP
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: azurite-accounts
|
||||
volumeMounts:
|
||||
- name: storage
|
||||
mountPath: /storage
|
||||
volumes:
|
||||
- name: storage
|
||||
persistentVolumeClaim:
|
||||
claimName: azurite-storage
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: azurite
|
||||
labels:
|
||||
app.kubernetes.io/name: azurite
|
||||
app.kubernetes.io/component: storage-emulator
|
||||
spec:
|
||||
type: LoadBalancer
|
||||
selector:
|
||||
app.kubernetes.io/name: azurite
|
||||
ports:
|
||||
- name: https
|
||||
port: 443
|
||||
targetPort: 443
|
||||
protocol: TCP
|
||||
Reference in New Issue
Block a user