diff --git a/.drone.yml b/.drone.yml index 0239708..4474c95 100644 --- a/.drone.yml +++ b/.drone.yml @@ -34,6 +34,13 @@ steps: --dockerfile Dockerfile --destination ccr.ccs.tencentyun.com/violin/todo-backend:${DRONE_COMMIT_SHA} --verbosity debug + resources: + requests: + memory: 1Gi + cpu: 500m + limits: + memory: 4Gi # <--- 关键:给大一点,防止爆内存 + cpu: 2000m - name: dev-deploy image: ccr.ccs.tencentyun.com/violin/kubectl:latest