From a1b5e6b50f2141aac4b8d79d10f7f8c5e72f88ae Mon Sep 17 00:00:00 2001 From: Liam Date: Mon, 23 Sep 2024 22:33:26 +0100 Subject: [PATCH] fix(apps): add resource limits and disable user registration for drone --- kubernetes/apps/production/drone/deployment.yaml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/kubernetes/apps/production/drone/deployment.yaml b/kubernetes/apps/production/drone/deployment.yaml index d7eee96..582de6d 100644 --- a/kubernetes/apps/production/drone/deployment.yaml +++ b/kubernetes/apps/production/drone/deployment.yaml @@ -22,13 +22,13 @@ spec: ports: - containerPort: 80 - containerPort: 443 - # resources: - # requests: - # cpu: 50m - # memory: 100Mi - # limits: - # cpu: 1000m # 1 vCPU - # memory: 200Mi + resources: + requests: + cpu: 50m + memory: 75Mi + limits: + cpu: 100m + memory: 200Mi env: - name: DRONE_GITEA_SERVER value: "https://git.fascinated.cc" @@ -51,6 +51,8 @@ spec: value: "drone.local.fascinated.cc" - name: DRONE_SERVER_PROTO value: "https" + - name: DRONE_REGISTRATION_CLOSED + value: "true" volumeMounts: - name: drone-data mountPath: /data