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

     1  {{$EXTERNAL_TRAFFIC_POLICY := DefaultParam .CL2_EXTERNAL_TRAFFIC_POLICY "Cluster"}}
     2  {{$LARGE_BACKEND_SIZE := DefaultParam .CL2_LARGE_BACKEND_SIZE 300}}
     3  {{$MEDIUM_BACKEND_SIZE := DefaultParam .CL2_MEDIUM_BACKEND_SIZE 150}}
     4  {{$SMALL_BACKEND_SIZE := DefaultParam .CL2_SMALL_BACKEND_SIZE 10}}
     5  {{$LARGE_BACKEND_LB_SERVICE_COUNT := .largeBackendLbServiceCount}}
     6  {{$MEDIUM_BACKEND_LB_SERVICE_COUNT := .mediumBackendLbServiceCount}}
     7  {{$SMALL_BACKEND_LB_SERVICE_COUNT := .smallBackendLbServiceCount}}
     8  {{$actionName := .actionName}}
     9  {{$namespaces := 1}}
    10  
    11  steps:
    12  - name: {{$actionName}} ILBs
    13    phases:
    14    - namespaceRange:
    15        min: 1
    16        max: {{$namespaces}}
    17      replicasPerNamespace: {{$LARGE_BACKEND_LB_SERVICE_COUNT}}
    18      tuningSet: ILBConstantQPS
    19      objectBundle:
    20      - basename: large-backends-service
    21        objectTemplatePath: service.yaml
    22        templateFillMap:
    23          DeploymentBaseName: large-backends-dep
    24          ExternalTrafficPolicy: {{$EXTERNAL_TRAFFIC_POLICY}}
    25          ILBSizeLabel: ilb-large
    26      - basename: large-backends-dep
    27        objectTemplatePath: dep.yaml
    28        templateFillMap:
    29          NumReplicas: {{$LARGE_BACKEND_SIZE}}
    30    - namespaceRange:
    31        min: 1
    32        max: {{$namespaces}}
    33      replicasPerNamespace: {{$MEDIUM_BACKEND_LB_SERVICE_COUNT}}
    34      tuningSet: ILBConstantQPS
    35      objectBundle:
    36      - basename: medium-backends-service
    37        objectTemplatePath: service.yaml
    38        templateFillMap:
    39          DeploymentBaseName: medium-backends-dep
    40          ExternalTrafficPolicy: {{$EXTERNAL_TRAFFIC_POLICY}}
    41          ILBSizeLabel: ilb-medium
    42      - basename: medium-backends-dep
    43        objectTemplatePath: dep.yaml
    44        templateFillMap:
    45          NumReplicas: {{$MEDIUM_BACKEND_SIZE}}
    46    - namespaceRange:
    47        min: 1
    48        max: {{$namespaces}}
    49      replicasPerNamespace: {{$SMALL_BACKEND_LB_SERVICE_COUNT}}
    50      tuningSet: ILBConstantQPS
    51      objectBundle:
    52      - basename: small-backends-service
    53        objectTemplatePath: service.yaml
    54        templateFillMap:
    55          DeploymentBaseName: small-backends-dep
    56          ExternalTrafficPolicy: {{$EXTERNAL_TRAFFIC_POLICY}}
    57          ILBSizeLabel: ilb-small
    58      - basename: small-backends-dep
    59        objectTemplatePath: dep.yaml
    60        templateFillMap:
    61          NumReplicas: {{$SMALL_BACKEND_SIZE}}