2.5. 検出可能なエンドポイント用のエンドポイント固有のサービス
devfile コンテナーコンポーネント エンドポイント に discoverable: true 属性を設定すると、専用のサービスが作成され、エンドポイントに使用されます。discoverable: true 属性を設定していない他のすべてのエンドポイントでは、共通ワークスペースサービスが使用されます。
エンドポイント用に作成された専用サービスには、エンドポイントの名前に対応する静的な名前が付けられます。たとえば、以下に定義されているサンプルエンドポイントでは、名前が http-python のサービスが生成されます。
# Example endpoint with discoverable attribute
- exposure: public
targetPort: 8080
name: http-python
protocol: http
secure: true
attributes:
discoverable: true
関連情報