LoginSignup
0
0

EKS on FargateにおいてPodを明示的に(確実に)AZを跨ぎ実装する方法

Posted at

FargateにおけるPodの配置計画は Fargate Profile を用いて管理する。

掲題の問題は2つの問題を分離して考える必要がある。

  • Fargate(Node)がどのAZ(Fargate profileで指定するのはsubentだから、実際はsubnet)に配置されるか
  • PodがどのNodeで構築されるか

前提知識

k8s スケジューリング(どのNodeにPodを配置させるか

  • nodeSelector
  • Node Affinity, Node Anti-Affinity
  • Inter-Pod Affinity, Inter-Pod Anti-Affinity

AWS

Fargate profile 目的: Selector(namespace, tag)を指定して、該当PodをFargate上で起動させる FargateをどのAZに配置するかは管理してないのでは?
妄想 Stateful setでPodを実行させ、Pod名をtagにいれる。(Statefule setではpod名の末尾に連番が振られる → selectorにtagとして、`pod名-0`, `pod名-1`を指定したprofileを作成する。このprofileではAZを一つだけ指定する。
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0