Google Kubernetes logs

Memory cgroup out of memory: Kill process 545486 (python3) score 2016 or sacrifice child Killed process 545486 (python3) total-vm:579096kB, anon-rss:518892kB, file-rss:16952kB

This node logs and my container is continuously restarting randomly. Running python cotnainer with 4 replicas.

Python application contains socket with a flask. Docker image contain of python3.5:slim

Kubectl get nodes

NAME                                                 CPU(cores)   CPU%   MEMORY(bytes)   MEMORY%   
gke-XXXXXXX-cluster-highmem-pool-gen2-f2743e02-msv2   682m         17%    11959Mi         89%    

Today morning node log : 0/1 nodes are available: 1 Insufficient cpu.

But node CPU usage is 17% only

There not much running inside pod.

Source: StackOverflow