-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Support OOMKilled with container-set. Fixes #10063. FOR 3.4.11 o…
…nly (#11757) Signed-off-by: Alex Collins <[email protected]> Signed-off-by: Isitha Subasinghe <[email protected]> Co-authored-by: Alex Collins <[email protected]>
- Loading branch information
1 parent
e731cc0
commit ee939bb
Showing
6 changed files
with
120 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Workflow | ||
metadata: | ||
name: example | ||
namespace: argo | ||
spec: | ||
templates: | ||
- name: entrypoint | ||
metadata: | ||
containerSet: | ||
containers: | ||
- name: one | ||
resources: | ||
requests: | ||
memory: "50Mi" | ||
cpu: "50m" | ||
limits: | ||
memory: "50Mi" | ||
image: argoproj/argosay:v2 | ||
command: | ||
- bash | ||
- '-c' | ||
args: | ||
- | | ||
/bin/bash <<'EOF' | ||
echo "hello one" | ||
apt update -y | ||
apt install stress -y | ||
echo 'stress --vm 1 --vm-bytes 512M --vm-hang 100' > abc.sh | ||
bash abc.sh | ||
EOF | ||
- name: two | ||
resources: | ||
requests: | ||
memory: "150Mi" | ||
cpu: "50m" | ||
limits: | ||
memory: "250Mi" | ||
image: argoproj/argosay:v2 | ||
command: | ||
- bash | ||
- '-c' | ||
args: | ||
- | | ||
/bin/bash <<'EOF' | ||
echo "hello world" | ||
EOF | ||
dependencies: | ||
- one | ||
entrypoint: entrypoint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters