Skip to content

Commit

Permalink
Fix affinity expression (kube-burner#235)
Browse files Browse the repository at this point in the history
Signed-off-by: Raul Sevilla <[email protected]>
  • Loading branch information
rsevilla87 authored Jan 12, 2023
1 parent 2c1954d commit 677bb1d
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 45 deletions.
19 changes: 10 additions & 9 deletions cmd/kube-burner/ocp-config/node-density-cni/curl-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@ spec:
name: curl-{{.Replica}}-{{.Iteration}}
spec:
affinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/worker
operator: Exists
- key: node-role.kubernetes.io/infra
operator: DoesNotExist
- key: node-role.kubernetes.io/workload
operator: DoesNotExist
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/worker
operator: Exists
- key: node-role.kubernetes.io/infra
operator: DoesNotExist
- key: node-role.kubernetes.io/workload
operator: DoesNotExist
containers:
- name: curlapp
image: quay.io/cloud-bulldozer/curl:latest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@ spec:
name: webserver-{{.Replica}}-{{.Iteration}}
spec:
affinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/worker
operator: Exists
- key: node-role.kubernetes.io/infra
operator: DoesNotExist
- key: node-role.kubernetes.io/workload
operator: DoesNotExist
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/worker
operator: Exists
- key: node-role.kubernetes.io/infra
operator: DoesNotExist
- key: node-role.kubernetes.io/workload
operator: DoesNotExist
containers:
- name: webserver
image: quay.io/cloud-bulldozer/sampleapp:latest
Expand Down
19 changes: 10 additions & 9 deletions cmd/kube-burner/ocp-config/node-density-heavy/app-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@ spec:
name: perfapp-{{.Replica}}-{{.Iteration}}
spec:
affinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/worker
operator: Exists
- key: node-role.kubernetes.io/infra
operator: DoesNotExist
- key: node-role.kubernetes.io/workload
operator: DoesNotExist
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/worker
operator: Exists
- key: node-role.kubernetes.io/infra
operator: DoesNotExist
- key: node-role.kubernetes.io/workload
operator: DoesNotExist
containers:
- name: perfapp
image: quay.io/cloud-bulldozer/perfapp:latest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@ spec:
name: postgres-{{.Replica}}-{{.Iteration}}
spec:
affinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/worker
operator: Exists
- key: node-role.kubernetes.io/infra
operator: DoesNotExist
- key: node-role.kubernetes.io/workload
operator: DoesNotExist
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/worker
operator: Exists
- key: node-role.kubernetes.io/infra
operator: DoesNotExist
- key: node-role.kubernetes.io/workload
operator: DoesNotExist
containers:
- name: postgresql
image: registry.redhat.io/rhel8/postgresql-10@sha256:4b912c80085b88a03309aeb7907efcc29dd3342fa3952b6ea067afb1914bfe53
Expand Down
19 changes: 10 additions & 9 deletions cmd/kube-burner/ocp-config/node-density/pod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@ metadata:
name: {{.JobName}}-{{.Iteration}}
spec:
affinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/worker
operator: Exists
- key: node-role.kubernetes.io/infra
operator: DoesNotExist
- key: node-role.kubernetes.io/workload
operator: DoesNotExist
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/worker
operator: Exists
- key: node-role.kubernetes.io/infra
operator: DoesNotExist
- key: node-role.kubernetes.io/workload
operator: DoesNotExist
tolerations:
- key: os
value: Windows
Expand Down

0 comments on commit 677bb1d

Please sign in to comment.