Created
December 17, 2020 11:26
-
-
Save corrupt952/5e17d879259ed643bd89763adb08b2c2 to your computer and use it in GitHub Desktop.
EKS Fargateで起動すると、6,7分後ぐらいでtoo many open filesが出るかどうかを検証
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
--- | |
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: test | |
namespace: kube-system | |
labels: | |
eks.amazonaws.com/compute-type: fargate # NOTE: Fargateで起動するためのラベル | |
spec: | |
containers: | |
- name: app | |
image: ubuntu:20.04 | |
command: ['bash', '-lc'] | |
# とりあえず起動だけしておいて欲しいのでtty: trueにしてbashを実行 | |
tty: true | |
args: | |
- >- | |
bash | |
readinessProbe: | |
exec: | |
command: | |
- sh | |
- -c | |
- ps -ef | grep [b]ash | |
initialDelaySeconds: 5 | |
periodSeconds: 1 | |
livenessProbe: | |
exec: | |
command: | |
- sh | |
- -c | |
- ps -ef | grep [b]ash | |
initialDelaySeconds: 5 | |
periodSeconds: 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment