Commit 1f67bcab authored by harshit aggarwal's avatar harshit aggarwal
Browse files

Adding replicas

parent 483c24e9
Pipeline #22170 failed with stages
in 2 minutes and 9 seconds
......@@ -3,6 +3,11 @@
# Specify the Gitlab branch being used for image creation
# ie: community.opengroup.org:5555/osdu/platform/system/schema/{{ .Values.global.branch }}/schema:latest
#
global:
# Service(s) Replica Count
replicaCount: 10
azure:
servicebusSubscription: eg_sb_wkssubscription
servicebusTopic: recordstopiceg
......
......@@ -18,6 +18,7 @@ metadata:
name: {{ .Release.Name }}
namespace: osdu
spec:
replicas: {{ .Values.global.replicaCount }}
selector:
matchLabels:
app: {{ .Chart.Name }}
......
# Source: indexer-service/templates/hpa.yml
# Copyright © Microsoft Corporation
#
# 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/v2beta2
kind: HorizontalPodAutoscaler
metadata:
name: {{ .Chart.Name }}-hpa
namespace: osdu
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: {{ .Chart.Name }}
minReplicas: 1
maxReplicas: 10
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 50
\ No newline at end of file
......@@ -12,6 +12,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
global:
# Service(s) Replica Count
replicaCount: 10
azure:
servicebusSubscription: eg_sb_wkssubscription
servicebusTopic: recordstopiceg
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment