Initial commit
This commit is contained in:
@@ -0,0 +1,70 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: db
|
||||
namespace: {{ wanderer_namespace }}
|
||||
spec:
|
||||
replicas: {{ wanderer_replica_count.db }}
|
||||
selector:
|
||||
matchLabels:
|
||||
app: db
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: db
|
||||
spec:
|
||||
containers:
|
||||
- name: db
|
||||
image: "{{ wanderer_images.db }}"
|
||||
ports:
|
||||
- containerPort: 8090
|
||||
env:
|
||||
- name: MEILI_URL
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
name: wanderer-config
|
||||
key: MEILI_URL
|
||||
- name: MEILI_MASTER_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: wanderer-secrets
|
||||
key: MEILI_MASTER_KEY
|
||||
- name: POCKETBASE_ENCRYPTION_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: wanderer-secrets
|
||||
key: POCKETBASE_ENCRYPTION_KEY
|
||||
- name: ORIGIN
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
name: wanderer-config
|
||||
key: ORIGIN
|
||||
volumeMounts:
|
||||
- name: pb-data
|
||||
mountPath: /pb_data
|
||||
- name: plugins
|
||||
mountPath: /data/plugins
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
port: 8090
|
||||
initialDelaySeconds: 20
|
||||
periodSeconds: 15
|
||||
timeoutSeconds: 10
|
||||
failureThreshold: 10
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
port: 8090
|
||||
initialDelaySeconds: 20
|
||||
periodSeconds: 15
|
||||
timeoutSeconds: 10
|
||||
failureThreshold: 10
|
||||
volumes:
|
||||
- name: pb-data
|
||||
persistentVolumeClaim:
|
||||
claimName: wanderer-db-data
|
||||
- name: plugins
|
||||
persistentVolumeClaim:
|
||||
claimName: wanderer-db-plugins
|
||||
|
||||
Reference in New Issue
Block a user