Skip to content

Commit

Permalink
[auth] mirror the batch settings for non-deploy (#13164)
Browse files Browse the repository at this point in the history
In particular, start with a few copies, no autoscaling, and no
disruption budget
  • Loading branch information
danking authored Jun 9, 2023
1 parent df00ebc commit 60bf091
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions auth/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,7 @@ spec:
selector:
matchLabels:
app: auth
{% if deploy %}
replicas: 3
{% else %}
replicas: 1
{% endif %}
replicas: 5
template:
metadata:
labels:
Expand Down Expand Up @@ -253,6 +249,7 @@ spec:
secret:
optional: false
secretName: ssl-config-auth
{% if deploy %}
---
apiVersion: autoscaling/v2beta1
kind: HorizontalPodAutoscaler
Expand All @@ -263,13 +260,8 @@ spec:
apiVersion: apps/v1
kind: Deployment
name: auth
{% if deploy %}
minReplicas: 3
maxReplicas: 10
{% else %}
minReplicas: 1
maxReplicas: 3
{% endif %}
metrics:
- type: Resource
resource:
Expand All @@ -281,14 +273,11 @@ kind: PodDisruptionBudget
metadata:
name: auth
spec:
{% if deploy %}
minAvailable: 2
{% else %}
minAvailable: 0
{% endif %}
selector:
matchLabels:
app: auth
{% endif %}
---
apiVersion: v1
kind: Service
Expand Down

0 comments on commit 60bf091

Please sign in to comment.