apps/zipline/resources/deployment.yaml
Peter Kurfer a91561f513
All checks were successful
Renovate / renovate (push) Successful in 26s
chore(zipline): switch to git-age
2024-04-27 17:49:33 +02:00

59 lines
No EOL
1.3 KiB
YAML

---
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
envFrom:
- secretRef:
name: zipline-config
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
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
preference:
matchExpressions:
- key: kubernetes.io/arch
operator: In
values:
- arm64
volumes:
- name: temp
emptyDir:
sizeLimit: 1500Mi
securityContext:
runAsUser: 1000
runAsGroup: 1000
runAsNonRoot: true