From b5c56a4f2b8439e8a3b53c5d730cc6cf3697f2f9 Mon Sep 17 00:00:00 2001 From: Michael Barr Date: Tue, 14 Feb 2023 15:12:44 -0500 Subject: [PATCH] Update cfssl-deployment.yml Add resource management for cpu/memory. --- helm/cfssl/templates/cfssl-deployment.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/helm/cfssl/templates/cfssl-deployment.yml b/helm/cfssl/templates/cfssl-deployment.yml index db8b283e2..b7381a3aa 100644 --- a/helm/cfssl/templates/cfssl-deployment.yml +++ b/helm/cfssl/templates/cfssl-deployment.yml @@ -1,5 +1,5 @@ --- -apiVersion: apps/v1beta2 +apiVersion: apps/v1 kind: Deployment metadata: {{- $appName := index .Values "apps" "cfssl" }} @@ -34,6 +34,13 @@ spec: readOnly: true image: registry.keypr.com/{{ .Values.imageName }}:{{ .Values.imageVersion }} imagePullPolicy: {{ .Values.imagePullPolicy }} + resources: + limits: + cpu: 100m + memory: 256Mi + requests: + cpu: 25m + memory: 64Mi command: [ "cfssl", "serve", "-ca", "/etc/cfssl-config/ca-cert", "-ca-key", "/etc/cfssl-config/ca-key", "-config", "/etc/cfssl-config/ca-config", "-port", "8888", "-address", "0.0.0.0" ] ports: - containerPort: {{ .Values.defaultContainerPort }}