service
service can be used to define workspace-level service configuration.
Attributes
| Name and Description | Type | Default Value | Required | 
|---|---|---|---|
| replicas Number of container replicas based on this configuration that should be ran. | int | 2 | optional | 
| labels Labels are key/value pairs that are attached to the workload. | {str: str} | Undefined | optional | 
| annotations Annotations are key/value pairs that attach arbitrary non-identifying metadata to the workload. | {str: str} | Undefined | optional | 
| type Type represents the type of workload used by this Service. Currently, it supports several types, including Deployment and CollaSet. | "Deployment" | "CollaSet" | Deployment | required | 
Examples
modules:
  service:
    path: oci://ghcr.io/kusionstack/service
    version: 0.2.0
    configs: 
      default:
        replicas: 3
        labels:
          label-key: label-value
        annotations:
          annotation-key: annotation-value
        type: CollaSet