From af7c42b60dc0ee2f6567eb2e896776857288102a Mon Sep 17 00:00:00 2001 From: ducoterra Date: Sat, 18 Apr 2020 18:59:34 -0400 Subject: [PATCH] add resource limits --- k8s/deploy.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/k8s/deploy.yaml b/k8s/deploy.yaml index 6f9806f..886ab22 100644 --- a/k8s/deploy.yaml +++ b/k8s/deploy.yaml @@ -16,7 +16,7 @@ spec: k8s-app: traefik-external name: traefik-external spec: - serviceAccountName: traefik-ingress-controller + serviceAccountName: traefik-external terminationGracePeriodSeconds: 60 containers: - image: hub.ducoterra.net/ducoterra/traefik:v1.7_1 @@ -26,6 +26,13 @@ spec: containerPort: 80 - name: https containerPort: 443 + resources: + limits: + memory: "2Gi" + cpu: "2" + requests: + memory: "1Mi" + cpu: "1m" args: - --api - --kubernetes