Merge pull request #1309 from dod-ccpo/kubernetes-resource-limits
First pass at setting CPU and memory limits in Kubernetes
This commit is contained in:
commit
9cb7422468
@ -49,6 +49,13 @@ spec:
|
|||||||
subPath: uwsgi.ini
|
subPath: uwsgi.ini
|
||||||
- name: flask-secret
|
- name: flask-secret
|
||||||
mountPath: "/config"
|
mountPath: "/config"
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: 200Mi
|
||||||
|
cpu: 400m
|
||||||
|
limits:
|
||||||
|
memory: 200Mi
|
||||||
|
cpu: 400m
|
||||||
- name: nginx
|
- name: nginx
|
||||||
image: nginx:alpine
|
image: nginx:alpine
|
||||||
ports:
|
ports:
|
||||||
@ -77,6 +84,13 @@ spec:
|
|||||||
mountPath: "/etc/nginx/snippets/"
|
mountPath: "/etc/nginx/snippets/"
|
||||||
- name: nginx-secret
|
- name: nginx-secret
|
||||||
mountPath: "/etc/ssl/"
|
mountPath: "/etc/ssl/"
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: 20Mi
|
||||||
|
cpu: 10m
|
||||||
|
limits:
|
||||||
|
memory: 20Mi
|
||||||
|
cpu: 10m
|
||||||
volumes:
|
volumes:
|
||||||
- name: nginx-client-ca-bundle
|
- name: nginx-client-ca-bundle
|
||||||
configMap:
|
configMap:
|
||||||
@ -190,6 +204,13 @@ spec:
|
|||||||
subPath: pgsslrootcert.crt
|
subPath: pgsslrootcert.crt
|
||||||
- name: flask-secret
|
- name: flask-secret
|
||||||
mountPath: "/config"
|
mountPath: "/config"
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: 280Mi
|
||||||
|
cpu: 20m
|
||||||
|
limits:
|
||||||
|
memory: 280Mi
|
||||||
|
cpu: 20m
|
||||||
volumes:
|
volumes:
|
||||||
- name: pgsslrootcert
|
- name: pgsslrootcert
|
||||||
configMap:
|
configMap:
|
||||||
@ -255,6 +276,13 @@ spec:
|
|||||||
subPath: pgsslrootcert.crt
|
subPath: pgsslrootcert.crt
|
||||||
- name: flask-secret
|
- name: flask-secret
|
||||||
mountPath: "/config"
|
mountPath: "/config"
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: 80Mi
|
||||||
|
cpu: 10m
|
||||||
|
limits:
|
||||||
|
memory: 80Mi
|
||||||
|
cpu: 10m
|
||||||
volumes:
|
volumes:
|
||||||
- name: pgsslrootcert
|
- name: pgsslrootcert
|
||||||
configMap:
|
configMap:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user