Skip to content

Instantly share code, notes, and snippets.

@corrupt952
Created December 17, 2020 11:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save corrupt952/5e17d879259ed643bd89763adb08b2c2 to your computer and use it in GitHub Desktop.
Save corrupt952/5e17d879259ed643bd89763adb08b2c2 to your computer and use it in GitHub Desktop.
EKS Fargateで起動すると、6,7分後ぐらいでtoo many open filesが出るかどうかを検証
---
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