Skip to content

3.3.5 Workflow orchestration

Iqqdd99 edited this page Dec 17, 2024 · 3 revisions

Workflow orchestration

apiVersion: "core.oam.dev/v1beta1"
kind: "Application"
metadata:
  name: "workflow-poisson-app-202411191437"
spec:
  components:
  - name: "workflow-poisson-app"
    type: "webservice"
    properties:
      image: "iqqdd/poisson-workflow:latest"
      cpu: "4.0"
      memory: "8048Mi"      
      imagePullPolicy: "Always"
      env:
        - name: DURATION
          value: "60"
        - name: ARGO_HOST
          value: "http://argo-workflows-server.argo.svc.cluster.local:2746"
        - name: NBIN
          value: "10000000000"
        - name: LAMBDA
          value: "30"
    traits:
    - type: "scaler"
      properties:
        replicas: 1
  - name: "workflow-worker"
    type: "webservice"
    properties:
      image: "hello-world"
      cpu: "4.0"
      memory: "8048Mi"
    traits:
    - type: "scaler"
      properties:
        replicas: 1

WORKFLOW_ENABLED yes