From 835cd4f12e96ce26e8424e790cc6fb4de0b96201 Mon Sep 17 00:00:00 2001 From: Ray Zane Date: Mon, 13 Jan 2020 11:30:48 -0500 Subject: [PATCH] First pass at setting CPU and memory limits in Kubernetes --- deploy/azure/azure.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/deploy/azure/azure.yml b/deploy/azure/azure.yml index 8fe7fd87..aa13b67e 100644 --- a/deploy/azure/azure.yml +++ b/deploy/azure/azure.yml @@ -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: