Skip to content

Commit

Permalink
Tell Go runtime about the CPU & memory limits.
Browse files Browse the repository at this point in the history
  • Loading branch information
mindw authored Jun 22, 2024
1 parent fc955f7 commit 7e7e3d8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions deployments/kubernetes/reloader.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,18 @@ spec:

securityContext:
{}
env:
- name: GOMAXPROCS
value: "1"
- name: GOMEMLIMIT
value: 512MiB
resources:
limits:
cpu: 150m
cpu: "1"
memory: 512Mi
requests:
cpu: 10m
memory: 128Mi
memory: 512Mi
securityContext:
runAsNonRoot: true
runAsUser: 65534
Expand Down

0 comments on commit 7e7e3d8

Please sign in to comment.