k8s.io/perf-tests/clusterloader2@v0.0.0-20240304094227-64bdb12da87e/testing/windows-tests/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 nodeSelector: 20 kubernetes.io/os: windows 21 containers: 22 - image: {{.Image}} 23 imagePullPolicy: IfNotPresent 24 name: {{.Name}} 25 ports: 26 - containerPort: 80 27 tolerations: 28 - key: "node.kubernetes.io/os" 29 operator: "Exists" 30 effect: "NoSchedule" 31 # Add not-ready/unreachable tolerations for 15 minutes so that node 32 # failure doesn't trigger pod deletion. 33 - key: "node.kubernetes.io/not-ready" 34 operator: "Exists" 35 effect: "NoExecute" 36 tolerationSeconds: 900 37 - key: "node.kubernetes.io/unreachable" 38 operator: "Exists" 39 effect: "NoExecute" 40 tolerationSeconds: 900