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

Deploy Specs script and Manifests:

- Added deploy-specs script
- Reduced request resources in components to fit in VM
- Activated DEBUG logs
- Deactivated horizontal pod autoscalers
parent 24688dad
No related branches found
No related tags found
3 merge requests!142Release TeraFlowSDN 2.1,!132NetSoft Hackfest extensions, gNMI Driver, gNMI L3NM Service Handler, multiple fixes,!113Draft: NetSoft Hackfest extensions
...@@ -54,11 +54,11 @@ spec: ...@@ -54,11 +54,11 @@ spec:
command: ["/bin/grpc_health_probe", "-addr=:1010"] command: ["/bin/grpc_health_probe", "-addr=:1010"]
resources: resources:
requests: requests:
cpu: 250m cpu: 150m
memory: 128Mi memory: 128Mi
limits: limits:
cpu: 1000m cpu: 500m
memory: 1024Mi memory: 512Mi
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
...@@ -79,25 +79,25 @@ spec: ...@@ -79,25 +79,25 @@ spec:
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: contextservice-hpa # name: contextservice-hpa
spec: #spec:
scaleTargetRef: # scaleTargetRef:
apiVersion: apps/v1 # apiVersion: apps/v1
kind: Deployment # kind: Deployment
name: contextservice # name: contextservice
minReplicas: 1 # minReplicas: 1
maxReplicas: 20 # maxReplicas: 20
metrics: # metrics:
- type: Resource # - type: Resource
resource: # resource:
name: cpu # name: cpu
target: # target:
type: Utilization # type: Utilization
averageUtilization: 80 # averageUtilization: 80
#behavior: # #behavior:
# scaleDown: # # scaleDown:
# stabilizationWindowSeconds: 30 # # stabilizationWindowSeconds: 30
...@@ -39,7 +39,7 @@ spec: ...@@ -39,7 +39,7 @@ spec:
- containerPort: 9192 - containerPort: 9192
env: env:
- name: LOG_LEVEL - name: LOG_LEVEL
value: "INFO" value: "DEBUG"
readinessProbe: readinessProbe:
exec: exec:
command: ["/bin/grpc_health_probe", "-addr=:2020"] command: ["/bin/grpc_health_probe", "-addr=:2020"]
...@@ -48,11 +48,11 @@ spec: ...@@ -48,11 +48,11 @@ spec:
command: ["/bin/grpc_health_probe", "-addr=:2020"] command: ["/bin/grpc_health_probe", "-addr=:2020"]
resources: resources:
requests: requests:
cpu: 250m cpu: 150m
memory: 128Mi memory: 128Mi
limits: limits:
cpu: 1000m cpu: 500m
memory: 1024Mi memory: 512Mi
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
......
...@@ -36,7 +36,7 @@ spec: ...@@ -36,7 +36,7 @@ spec:
- containerPort: 9192 - containerPort: 9192
env: env:
- name: LOG_LEVEL - name: LOG_LEVEL
value: "INFO" value: "DEBUG"
envFrom: envFrom:
- secretRef: - secretRef:
name: qdb-data name: qdb-data
......
...@@ -36,7 +36,7 @@ spec: ...@@ -36,7 +36,7 @@ spec:
- containerPort: 9192 - containerPort: 9192
env: env:
- name: LOG_LEVEL - name: LOG_LEVEL
value: "INFO" value: "DEBUG"
readinessProbe: readinessProbe:
exec: exec:
command: ["/bin/grpc_health_probe", "-addr=:10020"] command: ["/bin/grpc_health_probe", "-addr=:10020"]
...@@ -72,7 +72,7 @@ spec: ...@@ -72,7 +72,7 @@ spec:
cpu: 100m cpu: 100m
memory: 256Mi memory: 256Mi
limits: limits:
cpu: 700m cpu: 500m
memory: 1024Mi memory: 1024Mi
--- ---
apiVersion: v1 apiVersion: v1
...@@ -98,25 +98,25 @@ spec: ...@@ -98,25 +98,25 @@ spec:
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: pathcompservice-hpa # name: pathcompservice-hpa
spec: #spec:
scaleTargetRef: # scaleTargetRef:
apiVersion: apps/v1 # apiVersion: apps/v1
kind: Deployment # kind: Deployment
name: pathcompservice # name: pathcompservice
minReplicas: 1 # minReplicas: 1
maxReplicas: 20 # maxReplicas: 20
metrics: # metrics:
- type: Resource # - type: Resource
resource: # resource:
name: cpu # name: cpu
target: # target:
type: Utilization # type: Utilization
averageUtilization: 80 # averageUtilization: 80
#behavior: # #behavior:
# scaleDown: # # scaleDown:
# stabilizationWindowSeconds: 30 # # stabilizationWindowSeconds: 30
...@@ -36,7 +36,7 @@ spec: ...@@ -36,7 +36,7 @@ spec:
- containerPort: 9192 - containerPort: 9192
env: env:
- name: LOG_LEVEL - name: LOG_LEVEL
value: "INFO" value: "DEBUG"
readinessProbe: readinessProbe:
exec: exec:
command: ["/bin/grpc_health_probe", "-addr=:3030"] command: ["/bin/grpc_health_probe", "-addr=:3030"]
...@@ -45,11 +45,11 @@ spec: ...@@ -45,11 +45,11 @@ spec:
command: ["/bin/grpc_health_probe", "-addr=:3030"] command: ["/bin/grpc_health_probe", "-addr=:3030"]
resources: resources:
requests: requests:
cpu: 250m cpu: 150m
memory: 128Mi memory: 128Mi
limits: limits:
cpu: 1000m cpu: 500m
memory: 1024Mi memory: 512Mi
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
...@@ -70,25 +70,25 @@ spec: ...@@ -70,25 +70,25 @@ spec:
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: serviceservice-hpa # name: serviceservice-hpa
spec: #spec:
scaleTargetRef: # scaleTargetRef:
apiVersion: apps/v1 # apiVersion: apps/v1
kind: Deployment # kind: Deployment
name: serviceservice # name: serviceservice
minReplicas: 1 # minReplicas: 1
maxReplicas: 20 # maxReplicas: 20
metrics: # metrics:
- type: Resource # - type: Resource
resource: # resource:
name: cpu # name: cpu
target: # target:
type: Utilization # type: Utilization
averageUtilization: 80 # averageUtilization: 80
#behavior: # #behavior:
# scaleDown: # # scaleDown:
# stabilizationWindowSeconds: 30 # # stabilizationWindowSeconds: 30
...@@ -50,11 +50,11 @@ spec: ...@@ -50,11 +50,11 @@ spec:
command: ["/bin/grpc_health_probe", "-addr=:4040"] command: ["/bin/grpc_health_probe", "-addr=:4040"]
resources: resources:
requests: requests:
cpu: 250m cpu: 150m
memory: 128Mi memory: 128Mi
limits: limits:
cpu: 1000m cpu: 500m
memory: 1024Mi memory: 512Mi
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
...@@ -75,25 +75,25 @@ spec: ...@@ -75,25 +75,25 @@ spec:
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: sliceservice-hpa # name: sliceservice-hpa
spec: #spec:
scaleTargetRef: # scaleTargetRef:
apiVersion: apps/v1 # apiVersion: apps/v1
kind: Deployment # kind: Deployment
name: sliceservice # name: sliceservice
minReplicas: 1 # minReplicas: 1
maxReplicas: 20 # maxReplicas: 20
metrics: # metrics:
- type: Resource # - type: Resource
resource: # resource:
name: cpu # name: cpu
target: # target:
type: Utilization # type: Utilization
averageUtilization: 80 # averageUtilization: 80
#behavior: # #behavior:
# scaleDown: # # scaleDown:
# stabilizationWindowSeconds: 30 # # stabilizationWindowSeconds: 30
...@@ -21,10 +21,10 @@ export TFS_REGISTRY_IMAGES="http://localhost:32000/tfs/" ...@@ -21,10 +21,10 @@ export TFS_REGISTRY_IMAGES="http://localhost:32000/tfs/"
# Set the list of components, separated by spaces, you want to build images for, and deploy. # Set the list of components, separated by spaces, you want to build images for, and deploy.
#export TFS_COMPONENTS="context device pathcomp service slice compute webui load_generator" #export TFS_COMPONENTS="context device pathcomp service slice compute webui load_generator"
export TFS_COMPONENTS="context device pathcomp service slice compute webui" export TFS_COMPONENTS="context device pathcomp service slice webui"
# Uncoment to activate Monitoring # Uncoment to activate Monitoring
#export TFS_COMPONENTS="${TFS_COMPONENTS} monitoring" export TFS_COMPONENTS="${TFS_COMPONENTS} monitoring"
# Uncoment to activate Automation and Policy Manager # Uncoment to activate Automation and Policy Manager
#export TFS_COMPONENTS="${TFS_COMPONENTS} automation policy" #export TFS_COMPONENTS="${TFS_COMPONENTS} automation policy"
......
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