k8s.io/perf-tests/clusterloader2@v0.0.0-20240304094227-64bdb12da87e/testing/list/modules/list-benchmark.yaml (about)

     1  {{$namePrefix := DefaultParam .namePrefix "list-benchmark-"}}
     2  {{$replicas := DefaultParam .replicas 0}}
     3  {{$inflight := DefaultParam .inflight 0}}
     4  {{$uri := DefaultParam .uri "/"}}
     5  {{$namespaced := DefaultParam .namespaced false}}
     6  {{$namespaceNumber := DefaultParam .namespaceNumber 0}}
     7  {{$cpu := DefaultParam .cpu "200m"}}
     8  {{$memory := DefaultParam .memory "400Mi"}}
     9  
    10  steps:
    11  - name: Creating WaitForControlledPodsRunning measurement
    12    measurements:
    13    - Identifier: WaitForListBenchmarkDeployment
    14      Method: WaitForControlledPodsRunning
    15      Params:
    16        action: start
    17        apiVersion: apps/v1
    18        checkIfPodsAreUpdated: true
    19        kind: Deployment
    20        labelSelector: group = benchmark
    21        operationTimeout: 5m
    22  - name: Deploying {{$namePrefix}}deployment
    23    phases:
    24    - tuningSet: Sequence
    25      replicasPerNamespace: 1
    26  {{if $namespaced}}
    27      namespaceRange:
    28        min: 1
    29        max: {{$namespaceNumber}}
    30  {{else}}
    31      namespaceRange:
    32        min: 0
    33        max: 0
    34        basename: list-benchmark
    35  {{end}}
    36      objectBundle:
    37      - basename: {{$namePrefix}}deploy
    38        objectTemplatePath: deployment.yaml
    39        templateFillMap:
    40          Replicas: {{$replicas}}
    41          Inflight: {{$inflight}}
    42          Uri: {{$uri}}
    43          cpu: {{$cpu}}
    44          memory: {{$memory}}
    45  - name: Waiting for WaitForControlledPodsRunning gather
    46    measurements:
    47    - Identifier: WaitForListBenchmarkDeployment
    48      Method: WaitForControlledPodsRunning
    49      Params:
    50        action: gather