Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop 3scale-kourier-gateway HPA for 1.10 #105

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 0 additions & 26 deletions config/300-gateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -165,32 +165,6 @@ spec:
app: 3scale-kourier-gateway
type: ClusterIP
---
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: 3scale-kourier-gateway
namespace: kourier-system
labels:
networking.knative.dev/ingress-provider: kourier
app.kubernetes.io/component: net-kourier
app.kubernetes.io/version: devel
app.kubernetes.io/name: knative-serving
spec:
minReplicas: 1
maxReplicas: 10
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: 3scale-kourier-gateway
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
# Percentage of the requested CPU
averageUtilization: 100
---
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
Expand Down
45 changes: 45 additions & 0 deletions openshift/patches/002-pdb-and-hpa.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
diff --git a/config/300-gateway.yaml b/config/300-gateway.yaml
--- a/config/300-gateway.yaml (revision 29b5b45db233e5eaf7dcdb704fb4d36ab469c5e2)
+++ b/config/300-gateway.yaml (date 1696238557691)
@@ -165,32 +165,6 @@
app: 3scale-kourier-gateway
type: ClusterIP
---
-apiVersion: autoscaling/v2
-kind: HorizontalPodAutoscaler
-metadata:
- name: 3scale-kourier-gateway
- namespace: kourier-system
- labels:
- networking.knative.dev/ingress-provider: kourier
- app.kubernetes.io/component: net-kourier
- app.kubernetes.io/version: devel
- app.kubernetes.io/name: knative-serving
-spec:
- minReplicas: 1
- maxReplicas: 10
- scaleTargetRef:
- apiVersion: apps/v1
- kind: Deployment
- name: 3scale-kourier-gateway
- metrics:
- - type: Resource
- resource:
- name: cpu
- target:
- type: Utilization
- # Percentage of the requested CPU
- averageUtilization: 100
----
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
@@ -202,7 +176,7 @@
app.kubernetes.io/version: devel
app.kubernetes.io/name: knative-serving
spec:
- minAvailable: 80%
+ minAvailable: 1
selector:
matchLabels:
app: 3scale-kourier-gateway
13 changes: 0 additions & 13 deletions openshift/patches/002-pdb-minavailable.patch

This file was deleted.

26 changes: 0 additions & 26 deletions openshift/release/artifacts/net-kourier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -593,32 +593,6 @@ spec:
app: 3scale-kourier-gateway
type: ClusterIP
---
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: 3scale-kourier-gateway
namespace: kourier-system
labels:
networking.knative.dev/ingress-provider: kourier
app.kubernetes.io/component: net-kourier
app.kubernetes.io/version: "release-v1.10"
app.kubernetes.io/name: knative-serving
spec:
minReplicas: 1
maxReplicas: 10
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: 3scale-kourier-gateway
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
# Percentage of the requested CPU
averageUtilization: 100
---
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
Expand Down
Loading