diff --git a/manifests/contextservice.yaml b/manifests/contextservice.yaml index 659ff7b8daa217476e37634b1689b9ae69c96bad..ab8ccc521fca6679672faaf310cc86b8200e959d 100644 --- a/manifests/contextservice.yaml +++ b/manifests/contextservice.yaml @@ -23,9 +23,8 @@ spec: #replicas: 1 template: metadata: - # Deactivated linkerd for the Hackfest - #annotations: - # config.linkerd.io/skip-outbound-ports: "4222" + annotations: + config.linkerd.io/skip-outbound-ports: "4222" labels: app: contextservice spec: @@ -80,25 +79,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: 1 -# maxReplicas: 20 -# metrics: -# - type: Resource -# resource: -# name: cpu -# target: -# type: Utilization -# averageUtilization: 80 -# #behavior: -# # scaleDown: -# # stabilizationWindowSeconds: 30 +--- +apiVersion: autoscaling/v2 +kind: HorizontalPodAutoscaler +metadata: + name: contextservice-hpa +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: contextservice + minReplicas: 1 + maxReplicas: 20 + metrics: + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: 80 + #behavior: + # scaleDown: + # stabilizationWindowSeconds: 30 diff --git a/manifests/deviceservice.yaml b/manifests/deviceservice.yaml index 74c58b83dabe2bd38dec08e22fc130341996c457..4bf4d6247c491f9b704bb79cbcd21c652fd84ca4 100644 --- a/manifests/deviceservice.yaml +++ b/manifests/deviceservice.yaml @@ -23,10 +23,9 @@ spec: replicas: 1 template: metadata: - # Deactivated linkerd for the Hackfest - #annotations: - # # Required for IETF L2VPN SBI when both parent and child run in same K8s cluster with Linkerd - # config.linkerd.io/skip-outbound-ports: "8002" + annotations: + # Required for IETF L2VPN SBI when both parent and child run in same K8s cluster with Linkerd + config.linkerd.io/skip-outbound-ports: "8002" labels: app: deviceservice spec: diff --git a/manifests/pathcompservice.yaml b/manifests/pathcompservice.yaml index 8aaf99dcbda895c662049d4b0fc9df38a8b0d7d6..2fae0c8f27a58b09b27144841b5752c10dbe982c 100644 --- a/manifests/pathcompservice.yaml +++ b/manifests/pathcompservice.yaml @@ -98,25 +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: 1 -# maxReplicas: 20 -# metrics: -# - type: Resource -# resource: -# name: cpu -# target: -# type: Utilization -# averageUtilization: 80 -# #behavior: -# # scaleDown: -# # stabilizationWindowSeconds: 30 +--- +apiVersion: autoscaling/v2 +kind: HorizontalPodAutoscaler +metadata: + name: pathcompservice-hpa +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: pathcompservice + minReplicas: 1 + maxReplicas: 20 + metrics: + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: 80 + #behavior: + # scaleDown: + # stabilizationWindowSeconds: 30 diff --git a/manifests/serviceservice.yaml b/manifests/serviceservice.yaml index 99f8f45a6c5ff7a2d0cd8f44f5be5afbedbe1a77..6143740e893406611f86ee4353798ac829971c28 100644 --- a/manifests/serviceservice.yaml +++ b/manifests/serviceservice.yaml @@ -70,25 +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: 1 -# maxReplicas: 20 -# metrics: -# - type: Resource -# resource: -# name: cpu -# target: -# type: Utilization -# averageUtilization: 80 -# #behavior: -# # scaleDown: -# # stabilizationWindowSeconds: 30 +--- +apiVersion: autoscaling/v2 +kind: HorizontalPodAutoscaler +metadata: + name: serviceservice-hpa +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: serviceservice + minReplicas: 1 + maxReplicas: 20 + metrics: + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: 80 + #behavior: + # scaleDown: + # stabilizationWindowSeconds: 30 diff --git a/manifests/sliceservice.yaml b/manifests/sliceservice.yaml index 5ea63ad0cbe466ea0e9caf8bd076b8c8ec359e37..7f4d022b3fa07f20481287a131938b2f42867347 100644 --- a/manifests/sliceservice.yaml +++ b/manifests/sliceservice.yaml @@ -75,25 +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: 1 -# maxReplicas: 20 -# metrics: -# - type: Resource -# resource: -# name: cpu -# target: -# type: Utilization -# averageUtilization: 80 -# #behavior: -# # scaleDown: -# # stabilizationWindowSeconds: 30 +--- +apiVersion: autoscaling/v2 +kind: HorizontalPodAutoscaler +metadata: + name: sliceservice-hpa +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: sliceservice + minReplicas: 1 + maxReplicas: 20 + metrics: + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: 80 + #behavior: + # scaleDown: + # stabilizationWindowSeconds: 30