k8s.io/perf-tests/clusterloader2@v0.0.0-20240304094227-64bdb12da87e/testing/node-throughput/rc.yaml (about)

     1  apiVersion: v1
     2  kind: ReplicationController
     3  metadata:
     4    name: {{.Name}}
     5    labels:
     6      group: {{.Group}}
     7  spec:
     8    replicas: {{.Replicas}}
     9    selector:
    10      name: {{.Name}}
    11    template:
    12      metadata:
    13        labels:
    14          name: {{.Name}}
    15          group: {{.Group}}
    16      spec:
    17        # Do not automount default service account, to eliminate its impact.
    18        automountServiceAccountToken: false
    19        containers:
    20        - image: {{.Image}}
    21          imagePullPolicy: IfNotPresent
    22          name: {{.Name}}
    23          ports:
    24        # Add not-ready/unreachable tolerations for 15 minutes so that node
    25        # failure doesn't trigger pod deletion.
    26        tolerations:
    27        - key: "node.kubernetes.io/not-ready"
    28          operator: "Exists"
    29          effect: "NoExecute"
    30          tolerationSeconds: 900
    31        - key: "node.kubernetes.io/unreachable"
    32          operator: "Exists"
    33          effect: "NoExecute"
    34          tolerationSeconds: 900