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
Loading
Loading
Loading
Loading
+23 −1
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@ spec:
  selector:
    matchLabels:
      app: contextservice
  replicas: 1
  #replicas: 1
  template:
    metadata:
      labels:
@@ -77,3 +77,25 @@ spec:
    protocol: TCP
    port: 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
+25 −5
Original line number Diff line number Diff line
@@ -20,11 +20,9 @@ spec:
  selector:
    matchLabels:
      app: pathcompservice
  replicas: 1
  #replicas: 1
  template:
    metadata:
      #annotations:
      #  config.linkerd.io/opaque-ports: "8081"
      labels:
        app: pathcompservice
    spec:
@@ -55,8 +53,8 @@ spec:
      - name: backend
        image: labs.etsi.org:5050/tfs/controller/pathcomp-backend:latest
        imagePullPolicy: Always
        #ports:
        #- containerPort: 8081
        ports:
        - containerPort: 8081
        #readinessProbe:
        #  httpGet:
        #    path: /health
@@ -100,3 +98,25 @@ spec:
    protocol: TCP
    port: 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
+23 −1
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@ spec:
  selector:
    matchLabels:
      app: serviceservice
  replicas: 1
  #replicas: 1
  template:
    metadata:
      labels:
@@ -70,3 +70,25 @@ spec:
    protocol: TCP
    port: 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
+23 −1
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@ spec:
  selector:
    matchLabels:
      app: sliceservice
  replicas: 1
  #replicas: 1
  template:
    metadata:
      labels:
@@ -75,3 +75,25 @@ spec:
    protocol: TCP
    port: 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