Skip to content

Commit

Permalink
Tell soft memory limit to the operator
Browse files Browse the repository at this point in the history
  • Loading branch information
rkojedzinszky committed Apr 13, 2024
1 parent 0e516bc commit 88e3584
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ spec:
- --leader-elect
image: ghcr.io/k-web-s/patroni-postgres-operator
name: manager
env:
- name: GOMEMLIMIT
valueFrom:
resourceFieldRef:
resource: requests.memory
securityContext:
allowPrivilegeEscalation: false
capabilities:
Expand Down
5 changes: 5 additions & 0 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ spec:
- --leader-elect
image: ghcr.io/k-web-s/patroni-postgres-operator
name: manager
env:
- name: GOMEMLIMIT
valueFrom:
resourceFieldRef:
resource: requests.memory
securityContext:
allowPrivilegeEscalation: false
capabilities:
Expand Down

0 comments on commit 88e3584

Please sign in to comment.