From 0e51f183767f9919e2597c27a1b7f8e7fa8ad52b Mon Sep 17 00:00:00 2001 From: Liam Date: Mon, 23 Sep 2024 07:46:29 +0100 Subject: [PATCH] add security and resource limits to flyimg --- apps/production/flyimg/flyimg.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/apps/production/flyimg/flyimg.yaml b/apps/production/flyimg/flyimg.yaml index 4d12909..ede0b27 100644 --- a/apps/production/flyimg/flyimg.yaml +++ b/apps/production/flyimg/flyimg.yaml @@ -17,8 +17,17 @@ spec: containers: - name: flyimg-container image: flyimg/flyimg:1.4.12 + securityContext: + allowPrivilegeEscalation: false ports: - containerPort: 80 + resources: + requests: + cpu: 50m + memory: 200Mi + limits: + cpu: 500m + memory: 300Mi --- apiVersion: v1 kind: Service