Skip to content
Snippets Groups Projects
Commit 0d16d024 authored by David José Araújo Ferreira's avatar David José Araújo Ferreira
Browse files

HPA in device and monitoring disabled

parent f35c5566
No related branches found
No related tags found
2 merge requests!294Release TeraFlowSDN 4.0,!226Resolve "Testing configurations for DDOS protection"
...@@ -70,30 +70,30 @@ spec: ...@@ -70,30 +70,30 @@ spec:
selector: selector:
app: deviceservice app: deviceservice
ports: ports:
- name: grpc - name: grpc
protocol: TCP protocol: TCP
port: 2020 port: 2020
targetPort: 2020 targetPort: 2020
- name: metrics - name: metrics
protocol: TCP protocol: TCP
port: 9192 port: 9192
targetPort: 9192 targetPort: 9192
--- ---
apiVersion: autoscaling/v2 # apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler # kind: HorizontalPodAutoscaler
metadata: # metadata:
name: deviceservice-hpa # name: deviceservice-hpa
spec: # spec:
scaleTargetRef: # scaleTargetRef:
apiVersion: apps/v1 # apiVersion: apps/v1
kind: Deployment # kind: Deployment
name: deviceservice # name: deviceservice
minReplicas: 1 # minReplicas: 1
maxReplicas: 10 # maxReplicas: 10
metrics: # metrics:
- type: Resource # - type: Resource
resource: # resource:
name: cpu # name: cpu
target: # target:
type: Utilization # type: Utilization
averageUtilization: 80 # averageUtilization: 80
...@@ -65,30 +65,30 @@ spec: ...@@ -65,30 +65,30 @@ spec:
selector: selector:
app: monitoringservice app: monitoringservice
ports: ports:
- name: grpc - name: grpc
protocol: TCP protocol: TCP
port: 7070 port: 7070
targetPort: 7070 targetPort: 7070
- name: metrics - name: metrics
protocol: TCP protocol: TCP
port: 9192 port: 9192
targetPort: 9192 targetPort: 9192
--- ---
apiVersion: autoscaling/v2 # apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler # kind: HorizontalPodAutoscaler
metadata: # metadata:
name: monitoringservice-hpa # name: monitoringservice-hpa
spec: # spec:
scaleTargetRef: # scaleTargetRef:
apiVersion: apps/v1 # apiVersion: apps/v1
kind: Deployment # kind: Deployment
name: monitoringservice # name: monitoringservice
minReplicas: 1 # minReplicas: 1
maxReplicas: 10 # maxReplicas: 10
metrics: # metrics:
- type: Resource # - type: Resource
resource: # resource:
name: cpu # name: cpu
target: # target:
type: Utilization # type: Utilization
averageUtilization: 80 # averageUtilization: 80
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