Skip to content

Commit

Permalink
Deployment special adjustments.
Browse files Browse the repository at this point in the history
- Replica count set from template var to make it compatible with SNO
 clusters using "REPLICAS=1 make install".
- Affinity rule updated to use "operator: Exists", since those labels
  don't have any value in real OCP clusters.
  • Loading branch information
greyerof committed Sep 16, 2024
1 parent cf6d3d3 commit 9e145f8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test-target/special-resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
labels:
redhat-best-practices-for-k8s.com/generic: target
spec:
replicas: 2
replicas: {{ REPLICAS }}
selector:
matchLabels:
app: special-dp
Expand Down Expand Up @@ -76,9 +76,7 @@ spec:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/worker
operator: In
values:
- worker
operator: Exists
---
apiVersion: policy/v1
kind: PodDisruptionBudget
Expand Down

0 comments on commit 9e145f8

Please sign in to comment.