First pass at setting CPU and memory limits in Kubernetes

This commit is contained in:
Ray Zane 2020-01-13 11:30:48 -05:00
parent 8c02ba7a8d
commit 835cd4f12e

View File

@ -49,6 +49,13 @@ spec:
subPath: uwsgi.ini
- name: flask-secret
mountPath: "/config"
resources:
requests:
memory: 200Mi
cpu: 400m
limits:
memory: 200Mi
cpu: 400m
- name: nginx
image: nginx:alpine
ports:
@ -77,6 +84,13 @@ spec:
mountPath: "/etc/nginx/snippets/"
- name: nginx-secret
mountPath: "/etc/ssl/"
resources:
requests:
memory: 20Mi
cpu: 10m
limits:
memory: 20Mi
cpu: 10m
volumes:
- name: nginx-client-ca-bundle
configMap:
@ -190,6 +204,13 @@ spec:
subPath: pgsslrootcert.crt
- name: flask-secret
mountPath: "/config"
resources:
requests:
memory: 280Mi
cpu: 20m
limits:
memory: 280Mi
cpu: 20m
volumes:
- name: pgsslrootcert
configMap:
@ -255,6 +276,13 @@ spec:
subPath: pgsslrootcert.crt
- name: flask-secret
mountPath: "/config"
resources:
requests:
memory: 80Mi
cpu: 10m
limits:
memory: 80Mi
cpu: 10m
volumes:
- name: pgsslrootcert
configMap: