2024-12-28 15:51:53 +01:00

47 lines
1.0 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: anyway-backend
spec:
replicas: 1
selector:
matchLabels:
app: anyway-backend
template:
metadata:
labels:
app: anyway-backend
spec:
containers:
- name: worker
securityContext:
allowPrivilegeEscalation: false
image: backend-image
imagePullPolicy: Always
ports:
- containerPort: 8000
env:
- name: MEMCACHED_HOST_PATH
value: "memcached:11211"
- name: NUM_WORKERS
value: "3"
- name: OSM_CACHE_DIR
value: "/osm-cache"
- name: LOKI_URL
value: "http://loki.monitoring.svc:3100/loki/api/v1/push"
volumeMounts:
- name: osm-cache
mountPath: /osm-cache
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
cpu: 4
memory: 10Gi
volumes:
- name: osm-cache
persistentVolumeClaim:
claimName: osm-cache