k8s.io/perf-tests/clusterloader2@v0.0.0-20240304094227-64bdb12da87e/testing/density/deployment.yaml (about) 1 apiVersion: apps/v1 2 kind: Deployment 3 metadata: 4 name: {{.Name}} 5 labels: 6 group: {{.Group}} 7 spec: 8 replicas: {{.Replicas}} 9 selector: 10 matchLabels: 11 name: {{.Name}} 12 template: 13 metadata: 14 labels: 15 name: {{.Name}} 16 group: {{.Group}} 17 spec: 18 containers: 19 - image: registry.k8s.io/pause:3.9 20 imagePullPolicy: IfNotPresent 21 name: {{.Name}} 22 ports: 23 resources: 24 requests: 25 cpu: {{.CpuRequest}} 26 memory: {{.MemoryRequest}} 27 # Add not-ready/unreachable tolerations for 15 minutes so that node 28 # failure doesn't trigger pod deletion. 29 tolerations: 30 - key: "node.kubernetes.io/not-ready" 31 operator: "Exists" 32 effect: "NoExecute" 33 tolerationSeconds: 900 34 - key: "node.kubernetes.io/unreachable" 35 operator: "Exists" 36 effect: "NoExecute" 37 tolerationSeconds: 900