1. Învăţa
  2. /
  3. Courses
  4. /
  5. Kubernetes入門

Connected

exercise

Service をデプロイする

Pod 同士の通信は、Kubernetes の Service で実現できます。 これから、サンプルの Deployment に対して Service をデプロイします。

Instrucțiuni 1 / 5

undefined XP
    1
    2
    3
    4
    5
  • cat *.yml を使って 2 つの Manifest を確認します。
    • Deployment と Service の両方にある label の指定に注目してください。
    • 使用する ports の指定にも注目してください。Pod は service 経由の通信にポート 1234 を使い、Service 自体はポート 9876 でアクセスできます。