105 lines
3.1 KiB
Django/Jinja
105 lines
3.1 KiB
Django/Jinja
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: web
|
|
namespace: {{ wanderer_namespace }}
|
|
spec:
|
|
replicas: {{ wanderer_replica_count.web }}
|
|
selector:
|
|
matchLabels:
|
|
app: web
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: web
|
|
spec:
|
|
containers:
|
|
- name: web
|
|
image: "{{ wanderer_images.web }}"
|
|
ports:
|
|
- containerPort: 3000
|
|
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: ORIGIN
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: wanderer-config
|
|
key: ORIGIN
|
|
- name: BODY_SIZE_LIMIT
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: wanderer-config
|
|
key: BODY_SIZE_LIMIT
|
|
- name: PUBLIC_POCKETBASE_URL
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: wanderer-config
|
|
key: PUBLIC_POCKETBASE_URL
|
|
- name: PUBLIC_DISABLE_SIGNUP
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: wanderer-config
|
|
key: PUBLIC_DISABLE_SIGNUP
|
|
- name: UPLOAD_FOLDER
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: wanderer-config
|
|
key: UPLOAD_FOLDER
|
|
- name: UPLOAD_USER
|
|
value: "{{ wanderer_upload_user }}"
|
|
- name: UPLOAD_PASSWORD
|
|
value: "{{ wanderer_upload_password }}"
|
|
- name: OVERPASS_API_URL
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: wanderer-config
|
|
key: OVERPASS_API_URL
|
|
- name: VALHALLA_URL
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: wanderer-config
|
|
key: VALHALLA_URL
|
|
- name: NOMINATIM_URL
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: wanderer-config
|
|
key: NOMINATIM_URL
|
|
- name: PUBLIC_MAP_MAX_POLYLINES
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: wanderer-config
|
|
key: PUBLIC_MAP_MAX_POLYLINES
|
|
volumeMounts:
|
|
- name: uploads
|
|
mountPath: /app/uploads
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 3000
|
|
initialDelaySeconds: 20
|
|
periodSeconds: 15
|
|
timeoutSeconds: 10
|
|
failureThreshold: 10
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 3000
|
|
initialDelaySeconds: 20
|
|
periodSeconds: 15
|
|
timeoutSeconds: 10
|
|
failureThreshold: 10
|
|
volumes:
|
|
- name: uploads
|
|
persistentVolumeClaim:
|
|
claimName: wanderer-web-uploads
|
|
|