Skip to content
Snippets Groups Projects
Commit 10eebd0a authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Manifests:

- Added autoscalers for context, service, slice, and pathcomp components
parent 9d9efa4f
No related branches found
No related tags found
2 merge requests!142Release TeraFlowSDN 2.1,!81Context Performance Scalability
...@@ -20,7 +20,7 @@ spec: ...@@ -20,7 +20,7 @@ spec:
selector: selector:
matchLabels: matchLabels:
app: contextservice app: contextservice
replicas: 1 #replicas: 1
template: template:
metadata: metadata:
labels: labels:
...@@ -77,3 +77,25 @@ spec: ...@@ -77,3 +77,25 @@ spec:
protocol: TCP protocol: TCP
port: 9192 port: 9192
targetPort: 9192 targetPort: 9192
---
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: contextservice-hpa
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: contextservice
minReplicas: 2
maxReplicas: 5
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 80
#behavior:
# scaleDown:
# stabilizationWindowSeconds: 30
...@@ -20,11 +20,9 @@ spec: ...@@ -20,11 +20,9 @@ spec:
selector: selector:
matchLabels: matchLabels:
app: pathcompservice app: pathcompservice
replicas: 1 #replicas: 1
template: template:
metadata: metadata:
#annotations:
# config.linkerd.io/opaque-ports: "8081"
labels: labels:
app: pathcompservice app: pathcompservice
spec: spec:
...@@ -55,8 +53,8 @@ spec: ...@@ -55,8 +53,8 @@ spec:
- name: backend - name: backend
image: labs.etsi.org:5050/tfs/controller/pathcomp-backend:latest image: labs.etsi.org:5050/tfs/controller/pathcomp-backend:latest
imagePullPolicy: Always imagePullPolicy: Always
#ports: ports:
#- containerPort: 8081 - containerPort: 8081
#readinessProbe: #readinessProbe:
# httpGet: # httpGet:
# path: /health # path: /health
...@@ -100,3 +98,25 @@ spec: ...@@ -100,3 +98,25 @@ spec:
protocol: TCP protocol: TCP
port: 9192 port: 9192
targetPort: 9192 targetPort: 9192
---
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: pathcompservice-hpa
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: pathcompservice
minReplicas: 2
maxReplicas: 5
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 80
#behavior:
# scaleDown:
# stabilizationWindowSeconds: 30
...@@ -20,7 +20,7 @@ spec: ...@@ -20,7 +20,7 @@ spec:
selector: selector:
matchLabels: matchLabels:
app: serviceservice app: serviceservice
replicas: 1 #replicas: 1
template: template:
metadata: metadata:
labels: labels:
...@@ -70,3 +70,25 @@ spec: ...@@ -70,3 +70,25 @@ spec:
protocol: TCP protocol: TCP
port: 9192 port: 9192
targetPort: 9192 targetPort: 9192
---
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: serviceservice-hpa
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: serviceservice
minReplicas: 2
maxReplicas: 5
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 80
#behavior:
# scaleDown:
# stabilizationWindowSeconds: 30
...@@ -20,7 +20,7 @@ spec: ...@@ -20,7 +20,7 @@ spec:
selector: selector:
matchLabels: matchLabels:
app: sliceservice app: sliceservice
replicas: 1 #replicas: 1
template: template:
metadata: metadata:
labels: labels:
...@@ -75,3 +75,25 @@ spec: ...@@ -75,3 +75,25 @@ spec:
protocol: TCP protocol: TCP
port: 9192 port: 9192
targetPort: 9192 targetPort: 9192
---
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: sliceservice-hpa
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: sliceservice
minReplicas: 2
maxReplicas: 5
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 80
#behavior:
# scaleDown:
# stabilizationWindowSeconds: 30
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment