Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use GOMEMLIMIT to reduce the likelihood of an OOM issue #2124

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions deploy/concierge/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,11 @@ spec:
- name: NO_PROXY
value: #@ data.values.no_proxy
#@ end
#! reduce OOM likelihood
- name: GOMEMLIMIT
valueFrom:
resourceFieldRef:
resource: limits.memory
livenessProbe:
httpGet:
path: /healthz
Expand Down
8 changes: 7 additions & 1 deletion deploy/local-user-authenticator/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! Copyright 2020-2023 the Pinniped contributors. All Rights Reserved.
#! Copyright 2020-2024 the Pinniped contributors. All Rights Reserved.
#! SPDX-License-Identifier: Apache-2.0

#@ load("@ytt:data", "data")
Expand Down Expand Up @@ -76,6 +76,12 @@ spec:
#! `--validate=false` flag. Note that installing via `kapp` does not complain about this validation error.
seccompProfile:
type: "RuntimeDefault"
env:
#! reduce OOM likelihood
- name: GOMEMLIMIT
valueFrom:
resourceFieldRef:
resource: limits.memory
tolerations:
- key: kubernetes.io/arch
effect: NoSchedule
Expand Down
7 changes: 6 additions & 1 deletion deploy/supervisor/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! Copyright 2020-2023 the Pinniped contributors. All Rights Reserved.
#! Copyright 2020-2024 the Pinniped contributors. All Rights Reserved.
#! SPDX-License-Identifier: Apache-2.0

#@ load("@ytt:data", "data")
Expand Down Expand Up @@ -152,6 +152,11 @@ spec:
- name: NO_PROXY
value: #@ data.values.no_proxy
#@ end
#! reduce OOM likelihood
- name: GOMEMLIMIT
valueFrom:
resourceFieldRef:
resource: limits.memory
livenessProbe:
httpGet:
path: /healthz
Expand Down
Loading