Adds polis app.
This commit is contained in:
44
polis/versions/dev/deployment-math.yaml
Normal file
44
polis/versions/dev/deployment-math.yaml
Normal 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
|
||||
Reference in New Issue
Block a user