Version: v1.0

Worker

Description

Describes long-running, scalable, containerized services that running at backend. They do NOT have network endpoint to receive external network traffic.

Samples

  1. apiVersion: core.oam.dev/v1beta1
  2. kind: Application
  3. metadata:
  4. name: app-worker
  5. spec:
  6. components:
  7. - name: myworker
  8. type: worker
  9. properties:
  10. image: "busybox"
  11. cmd:
  12. - sleep
  13. - "1000"

Specification

  1. # Properties
  2. +-------+----------------------------------------------------+----------+----------+---------+
  3. | NAME | DESCRIPTION | TYPE | REQUIRED | DEFAULT |
  4. +-------+----------------------------------------------------+----------+----------+---------+
  5. | cmd | Commands to run in the container | []string | false | |
  6. | image | Which image would you like to use for your service | string | true | |
  7. +-------+----------------------------------------------------+----------+----------+---------+