2023-11-14 21:12:33 +00:00
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: zipline
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app.kubernetes.io/name: zipline
|
|
|
|
replicas: 2
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: zipline
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: zipline
|
|
|
|
image: zipline
|
2024-08-16 11:43:14 +00:00
|
|
|
env:
|
|
|
|
- name: CORE_DATABASE_URL
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: db-credentials-zipline
|
|
|
|
key: PQ_URL
|
2023-11-14 21:12:33 +00:00
|
|
|
envFrom:
|
|
|
|
- secretRef:
|
2024-04-27 15:49:33 +00:00
|
|
|
name: zipline-config
|
2023-11-14 21:12:33 +00:00
|
|
|
ports:
|
|
|
|
- containerPort: 3000
|
|
|
|
protocol: TCP
|
|
|
|
name: web
|
|
|
|
volumeMounts:
|
|
|
|
- mountPath: /tmp
|
|
|
|
name: temp
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
memory: "256Mi"
|
|
|
|
cpu: "50m"
|
|
|
|
limits:
|
|
|
|
memory: "512Mi"
|
|
|
|
cpu: "500m"
|
|
|
|
securityContext:
|
|
|
|
allowPrivilegeEscalation: false
|
|
|
|
capabilities:
|
|
|
|
drop:
|
|
|
|
- ALL
|
|
|
|
readOnlyRootFilesystem: true
|
2023-11-25 11:36:07 +00:00
|
|
|
affinity:
|
|
|
|
nodeAffinity:
|
|
|
|
preferredDuringSchedulingIgnoredDuringExecution:
|
|
|
|
- weight: 100
|
|
|
|
preference:
|
|
|
|
matchExpressions:
|
|
|
|
- key: kubernetes.io/arch
|
|
|
|
operator: In
|
|
|
|
values:
|
|
|
|
- arm64
|
2023-11-14 21:12:33 +00:00
|
|
|
volumes:
|
|
|
|
- name: temp
|
|
|
|
emptyDir:
|
|
|
|
sizeLimit: 1500Mi
|
|
|
|
securityContext:
|
|
|
|
runAsUser: 1000
|
|
|
|
runAsGroup: 1000
|
|
|
|
runAsNonRoot: true
|