...

Text file src/edge-infra.dev/config/pallets/f8n/dev-infra/argo/workflows/configmap-patch.yaml

Documentation: edge-infra.dev/config/pallets/f8n/dev-infra/argo/workflows

     1apiVersion: v1
     2kind: ConfigMap
     3metadata:
     4  name: workflow-controller-configmap
     5  namespace: argo
     6data:
     7  # Parallelism limits the max total parallel workflows that can execute at the same time
     8  # (available since Argo v2.3). Controller must be restarted to take effect.
     9  parallelism: "20"
    10  # artifactRepository defines the default location to be used as the artifact repository for
    11  # container artifacts.
    12  # 
    13  # https://github.com/argoproj/argo-workflows/blob/682755f16a7c4dcdde5ba02d4b71058fc42783a6/docs/workflow-controller-configmap.yaml#L98 
    14  #
    15  artifactRepository: |-
    16    # archiveLogs will archive the main container logs as an artifact
    17    archiveLogs: true
    18    gcs:
    19      bucket: edge-argo-logs
    20      # e.g.: argo/logs/2018/08/23/8baf78f8-4ee1-498d-8e23-6bb5916942d7/some-workflow-pod-abc123
    21      keyFormat: "{{workflow.creationTimestamp.Y}}\
    22        /{{workflow.creationTimestamp.m}}\
    23        /{{workflow.creationTimestamp.d}}\
    24        /{{workflow.uid}}\
    25        /{{pod.name}}"
    26  # executor controls how the init and wait container should be customized
    27  # (available since Argo v2.3)
    28  # https://argoproj.github.io/argo-workflows/cost-optimisation/#configure-executor-resource-requests
    29  executor: |
    30    imagePullPolicy: IfNotPresent
    31    resources:
    32      requests:
    33        cpu: 1
    34        memory: 64Mi
    35        ephemeral-storage: 1Gi
    36      limits:
    37        memory: 512Mi
    38        ephemeral-storage: 20Gi
    39  # Defaults for main containers. These can be overridden by the template.
    40  mainContainer: |
    41    imagePullPolicy: IfNotPresent
    42    resources:
    43      requests:
    44        cpu: 1
    45        memory: 64Mi
    46        ephemeral-storage: 1Gi
    47      limits:
    48        memory: 512Mi
    49        ephemeral-storage: 20Gi
    50  # Limit the maximum number of incomplete workflows in a namespace.
    51  # Intended for cluster installs that are multi-tenancy environments, to prevent too many workflows in one
    52  # namespace impacting others.
    53  # >= v3.2
    54  namespaceParallelism: "20"
    55  # Default values that will apply to all Workflows from this controller
    56  # can be overridden at the Workflow-level
    57  # https://argoproj.github.io/argo-workflows/cost-optimisation/#limit-the-total-number-of-workflows-and-pods
    58  workflowDefaults: |-
    59    metadata:
    60      annotations:
    61        argo: workflows
    62    spec:
    63      # must complete in 4h (14400s)
    64      activeDeadlineSeconds: 14400
    65      # TODO: add podGC to auto delete
    66      ttlStrategy:
    67        # keep workflows for 1d (86,400 seconds)
    68        secondsAfterCompletion: 86400
    69      VolumeClaimGC:
    70        strategy: OnWorkflowCompletion
    71      templateDefaults:
    72        timeout: 120m
    73        nodeSelector:
    74          disktype: "ssd" # schedule everything on the beefy nodes

View as plain text