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
Loading
Loading
Loading
Loading
+25 −25
Original line number Diff line number Diff line
@@ -54,11 +54,11 @@ spec:
            command: ["/bin/grpc_health_probe", "-addr=:1010"]
        resources:
          requests:
            cpu: 250m
            cpu: 150m
            memory: 128Mi
          limits:
            cpu: 1000m
            memory: 1024Mi
            cpu: 500m
            memory: 512Mi
---
apiVersion: v1
kind: Service
@@ -79,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
+4 −4
Original line number Diff line number Diff line
@@ -39,7 +39,7 @@ spec:
        - containerPort: 9192
        env:
        - name: LOG_LEVEL
          value: "INFO"
          value: "DEBUG"
        readinessProbe:
          exec:
            command: ["/bin/grpc_health_probe", "-addr=:2020"]
@@ -48,11 +48,11 @@ spec:
            command: ["/bin/grpc_health_probe", "-addr=:2020"]
        resources:
          requests:
            cpu: 250m
            cpu: 150m
            memory: 128Mi
          limits:
            cpu: 1000m
            memory: 1024Mi
            cpu: 500m
            memory: 512Mi
---
apiVersion: v1
kind: Service
+1 −1
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ spec:
        - containerPort: 9192
        env:
        - name: LOG_LEVEL
          value: "INFO"
          value: "DEBUG"
        envFrom:
        - secretRef:
            name: qdb-data
+24 −24
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ spec:
        - containerPort: 9192
        env:
        - name: LOG_LEVEL
          value: "INFO"
          value: "DEBUG"
        readinessProbe:
          exec:
            command: ["/bin/grpc_health_probe", "-addr=:10020"]
@@ -72,7 +72,7 @@ spec:
            cpu: 100m
            memory: 256Mi
          limits:
            cpu: 700m
            cpu: 500m
            memory: 1024Mi
---
apiVersion: v1
@@ -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
+26 −26
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ spec:
        - containerPort: 9192
        env:
        - name: LOG_LEVEL
          value: "INFO"
          value: "DEBUG"
        readinessProbe:
          exec:
            command: ["/bin/grpc_health_probe", "-addr=:3030"]
@@ -45,11 +45,11 @@ spec:
            command: ["/bin/grpc_health_probe", "-addr=:3030"]
        resources:
          requests:
            cpu: 250m
            cpu: 150m
            memory: 128Mi
          limits:
            cpu: 1000m
            memory: 1024Mi
            cpu: 500m
            memory: 512Mi
---
apiVersion: v1
kind: Service
@@ -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
Loading