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
# Example endpoint with discoverable attribute
- exposure: public
targetPort: 8080
name: http-python
protocol: http
secure: true
attributes:
discoverable: true
其他资源