Skip to content

Commit

Permalink
SRVKE-1523: [release-v1.10] Re-add removed HPA for ingress and filter (
Browse files Browse the repository at this point in the history
…#364)

* Re-add removed HPA for ingress and filter

Signed-off-by: Pierangelo Di Pilato <[email protected]>

* Run make generate-release

Signed-off-by: Pierangelo Di Pilato <[email protected]>

---------

Signed-off-by: Pierangelo Di Pilato <[email protected]>
  • Loading branch information
pierDipi authored Oct 2, 2023
1 parent 2a05131 commit 4196827
Show file tree
Hide file tree
Showing 6 changed files with 184 additions and 20 deletions.
61 changes: 61 additions & 0 deletions config/brokers/mt-channel-broker/deployments/hpa.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Copyright 2020 The Knative Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: broker-ingress-hpa
namespace: knative-eventing
labels:
app.kubernetes.io/component: broker-ingress
app.kubernetes.io/version: devel
app.kubernetes.io/name: knative-eventing
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: mt-broker-ingress
minReplicas: 1
maxReplicas: 10
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 70
---
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: broker-filter-hpa
namespace: knative-eventing
labels:
app.kubernetes.io/component: broker-filter
app.kubernetes.io/version: devel
app.kubernetes.io/name: knative-eventing
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: mt-broker-filter
minReplicas: 1
maxReplicas: 10
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 70
1 change: 1 addition & 0 deletions config/brokers/mt-channel-broker/hpa.yaml
39 changes: 30 additions & 9 deletions openshift/release/artifacts/eventing-core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1247,15 +1247,33 @@ metadata:
app.kubernetes.io/version: v1.10
app.kubernetes.io/name: knative-eventing
annotations:
# TODO add schemas and descriptions
# TODO add schemas
registry.knative.dev/eventTypes: |
[
{ "type": "dev.knative.apiserver.resource.add" },
{ "type": "dev.knative.apiserver.resource.delete" },
{ "type": "dev.knative.apiserver.resource.update" },
{ "type": "dev.knative.apiserver.ref.add" },
{ "type": "dev.knative.apiserver.ref.delete" },
{ "type": "dev.knative.apiserver.ref.update" }
{
"type": "dev.knative.apiserver.resource.add",
"description": "CloudEvent type used for add operations when in Resource mode"
},
{
"type": "dev.knative.apiserver.resource.delete",
"description": "CloudEvent type used for delete operations when in Resource mode"
},
{
"type": "dev.knative.apiserver.resource.update",
"description": "CloudEvent type used for update operations when in Resource mode"
},
{
"type": "dev.knative.apiserver.ref.add",
"description": "CloudEvent type used for add operations when in Reference mode"
},
{
"type": "dev.knative.apiserver.ref.delete",
"description": "CloudEvent type used for delete operations when in Reference mode"
},
{
"type": "dev.knative.apiserver.ref.update",
"description": "CloudEvent type used for update operations when in Reference mode"
}
]
name: apiserversources.sources.knative.dev
spec:
Expand Down Expand Up @@ -2567,10 +2585,13 @@ metadata:
app.kubernetes.io/version: v1.10
app.kubernetes.io/name: knative-eventing
annotations:
# TODO add schemas and descriptions
# TODO add schema
registry.knative.dev/eventTypes: |
[
{ "type": "dev.knative.sources.ping" }
{
"type": "dev.knative.sources.ping",
"description": "CloudEvent type for fixed payloads on a specified cron schedule"
}
]
name: pingsources.sources.knative.dev
spec:
Expand Down
39 changes: 30 additions & 9 deletions openshift/release/artifacts/eventing-crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,33 @@ metadata:
app.kubernetes.io/version: v1.10
app.kubernetes.io/name: knative-eventing
annotations:
# TODO add schemas and descriptions
# TODO add schemas
registry.knative.dev/eventTypes: |
[
{ "type": "dev.knative.apiserver.resource.add" },
{ "type": "dev.knative.apiserver.resource.delete" },
{ "type": "dev.knative.apiserver.resource.update" },
{ "type": "dev.knative.apiserver.ref.add" },
{ "type": "dev.knative.apiserver.ref.delete" },
{ "type": "dev.knative.apiserver.ref.update" }
{
"type": "dev.knative.apiserver.resource.add",
"description": "CloudEvent type used for add operations when in Resource mode"
},
{
"type": "dev.knative.apiserver.resource.delete",
"description": "CloudEvent type used for delete operations when in Resource mode"
},
{
"type": "dev.knative.apiserver.resource.update",
"description": "CloudEvent type used for update operations when in Resource mode"
},
{
"type": "dev.knative.apiserver.ref.add",
"description": "CloudEvent type used for add operations when in Reference mode"
},
{
"type": "dev.knative.apiserver.ref.delete",
"description": "CloudEvent type used for delete operations when in Reference mode"
},
{
"type": "dev.knative.apiserver.ref.update",
"description": "CloudEvent type used for update operations when in Reference mode"
}
]
name: apiserversources.sources.knative.dev
spec:
Expand Down Expand Up @@ -1344,10 +1362,13 @@ metadata:
app.kubernetes.io/version: v1.10
app.kubernetes.io/name: knative-eventing
annotations:
# TODO add schemas and descriptions
# TODO add schema
registry.knative.dev/eventTypes: |
[
{ "type": "dev.knative.sources.ping" }
{
"type": "dev.knative.sources.ping",
"description": "CloudEvent type for fixed payloads on a specified cron schedule"
}
]
name: pingsources.sources.knative.dev
spec:
Expand Down
62 changes: 62 additions & 0 deletions openshift/release/artifacts/mt-channel-broker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -584,3 +584,65 @@ spec:
containerPort: 9090
- name: profiling
containerPort: 8008
---
# Copyright 2020 The Knative Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: broker-ingress-hpa
namespace: knative-eventing
labels:
app.kubernetes.io/component: broker-ingress
app.kubernetes.io/version: v1.10
app.kubernetes.io/name: knative-eventing
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: mt-broker-ingress
minReplicas: 1
maxReplicas: 10
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 70
---
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: broker-filter-hpa
namespace: knative-eventing
labels:
app.kubernetes.io/component: broker-filter
app.kubernetes.io/version: v1.10
app.kubernetes.io/name: knative-eventing
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: mt-broker-filter
minReplicas: 1
maxReplicas: 10
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 70
2 changes: 0 additions & 2 deletions openshift/release/generate-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ mkdir -p $artifacts_dir
rm -rf config/channels/in-memory-channel/configmaps/observability.yaml
rm -rf config/channels/in-memory-channel/configmaps/tracing.yaml
rm -rf config/channels/in-memory-channel/100-namespace.yaml
rm -rf config/brokers/mt-channel-broker/deployments/hpa.yaml
rm -rf config/brokers/mt-channel-broker/hpa.yaml

image_prefix="registry.ci.openshift.org/openshift/knative-${release}:knative-eventing-"
tag=""
Expand Down

0 comments on commit 4196827

Please sign in to comment.