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

     1  # Valid actions: "create", "delete"
     2  {{$action := .action}}
     3  
     4  {{$replicasPerNamespace := .replicasPerNamespace}}
     5  {{$endpoints := DefaultParam .endpoints 100}}
     6  {{$serviceName := .serviceName}}
     7  
     8  steps:
     9  - name: {{$action}} {{$serviceName}}
    10    phases:
    11    - namespaceRange:
    12        min: 1
    13        max: 1
    14      replicasPerNamespace: {{$replicasPerNamespace}}
    15      tuningSet: Sequence
    16      objectBundle:
    17      - basename: {{$serviceName}}
    18        objectTemplatePath: statefulset_service.yaml
    19  - name: Creating {{$serviceName}} measurements
    20    measurements:
    21    - Identifier: WaitForHugeServiceStatefulSet
    22      Method: WaitForControlledPodsRunning
    23      Params:
    24        action: start
    25        apiVersion: apps/v1
    26        kind: StatefulSet
    27        labelSelector: group = load
    28        operationTimeout: 30m
    29  - name: {{$action}} {{$serviceName}} pods
    30    phases:
    31    - namespaceRange:
    32        min: 1
    33        max: 1
    34      replicasPerNamespace: {{$replicasPerNamespace}}
    35      tuningSet: Sequence
    36      objectBundle:
    37      - basename: {{$serviceName}}
    38        objectTemplatePath: statefulset.yaml
    39        templateFillMap:
    40          ReplicasMin: {{$endpoints}}
    41          ReplicasMax: {{$endpoints}}
    42  - name: Waiting for {{$serviceName}} pods to be {{$action}}d
    43    measurements:
    44    - Identifier: WaitForHugeServiceStatefulSet
    45      Method: WaitForControlledPodsRunning
    46      Params:
    47        action: gather