Loading deploy/subscription_ws_e2e.sh +0 −3 Original line number Diff line number Diff line Loading @@ -40,6 +40,3 @@ CONTAINER='{"name": "nginx-ingress-microk8s", "ports": ['${PORT_MAP}']}' PATCH='{"spec": {"template": {"spec": {"containers": ['${CONTAINER}']}}}}' kubectl patch daemonset nginx-ingress-microk8s-controller-e2e --namespace ingress --patch "${PATCH}" echo deploy/subscription_ws_ip.sh +0 −3 Original line number Diff line number Diff line Loading @@ -40,6 +40,3 @@ CONTAINER='{"name": "nginx-ingress-microk8s", "ports": ['${PORT_MAP}']}' PATCH='{"spec": {"template": {"spec": {"containers": ['${CONTAINER}']}}}}' kubectl patch daemonset nginx-ingress-microk8s-controller-ip --namespace ingress --patch "${PATCH}" echo manifests/contextservice.yaml +23 −23 Original line number Diff line number Diff line Loading @@ -60,7 +60,7 @@ spec: command: ["/bin/grpc_health_probe", "-addr=:1010"] resources: requests: cpu: 200m cpu: 250m memory: 128Mi limits: cpu: 1000m Loading @@ -85,25 +85,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 manifests/deviceservice.yaml +1 −1 Original line number Diff line number Diff line Loading @@ -53,7 +53,7 @@ spec: command: ["/bin/grpc_health_probe", "-addr=:2020"] resources: requests: cpu: 200m cpu: 250m memory: 128Mi limits: cpu: 1000m Loading manifests/e2e_orchestratorservice.yaml +1 −1 Original line number Diff line number Diff line Loading @@ -59,7 +59,7 @@ spec: command: ["/bin/grpc_health_probe", "-addr=:10050"] resources: requests: cpu: 200m cpu: 250m memory: 128Mi limits: cpu: 1000m Loading Loading
deploy/subscription_ws_e2e.sh +0 −3 Original line number Diff line number Diff line Loading @@ -40,6 +40,3 @@ CONTAINER='{"name": "nginx-ingress-microk8s", "ports": ['${PORT_MAP}']}' PATCH='{"spec": {"template": {"spec": {"containers": ['${CONTAINER}']}}}}' kubectl patch daemonset nginx-ingress-microk8s-controller-e2e --namespace ingress --patch "${PATCH}" echo
deploy/subscription_ws_ip.sh +0 −3 Original line number Diff line number Diff line Loading @@ -40,6 +40,3 @@ CONTAINER='{"name": "nginx-ingress-microk8s", "ports": ['${PORT_MAP}']}' PATCH='{"spec": {"template": {"spec": {"containers": ['${CONTAINER}']}}}}' kubectl patch daemonset nginx-ingress-microk8s-controller-ip --namespace ingress --patch "${PATCH}" echo
manifests/contextservice.yaml +23 −23 Original line number Diff line number Diff line Loading @@ -60,7 +60,7 @@ spec: command: ["/bin/grpc_health_probe", "-addr=:1010"] resources: requests: cpu: 200m cpu: 250m memory: 128Mi limits: cpu: 1000m Loading @@ -85,25 +85,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
manifests/deviceservice.yaml +1 −1 Original line number Diff line number Diff line Loading @@ -53,7 +53,7 @@ spec: command: ["/bin/grpc_health_probe", "-addr=:2020"] resources: requests: cpu: 200m cpu: 250m memory: 128Mi limits: cpu: 1000m Loading
manifests/e2e_orchestratorservice.yaml +1 −1 Original line number Diff line number Diff line Loading @@ -59,7 +59,7 @@ spec: command: ["/bin/grpc_health_probe", "-addr=:10050"] resources: requests: cpu: 200m cpu: 250m memory: 128Mi limits: cpu: 1000m Loading