Adds polis app.

This commit is contained in:
2026-06-19 21:33:23 +00:00
parent bd1116048d
commit cd37c07a33
10 changed files with 351 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: polis-math
spec:
replicas: 1
selector:
matchLabels:
component: math
template:
metadata:
labels:
component: math
spec:
securityContext:
runAsNonRoot: false
runAsUser: 0
seccompProfile:
type: RuntimeDefault
containers:
- name: polis-math
image: compdemocracy/polis-math:dev
env:
- name: MATH_ENV
value: prod
- name: DATABASE_URL
valueFrom:
secretKeyRef:
name: polis-secrets
key: dbUrl
- name: DATABASE_IGNORE_SSL
value: "true"
resources:
limits:
cpu: 1000m
memory: 2Gi
ephemeral-storage: 1Gi
requests:
cpu: 50m
memory: 256Mi
ephemeral-storage: 50Mi
securityContext:
readOnlyRootFilesystem: false
restartPolicy: Always