rmetzger commented on a change in pull request #11222: [FLINK-15834] Set up 
nightly builds in Azure & various CI improvements
URL: https://github.com/apache/flink/pull/11222#discussion_r384452260
 
 

 ##########
 File path: flink-end-to-end-tests/test-scripts/common_kubernetes.sh
 ##########
 @@ -51,10 +51,18 @@ function check_kubernetes_status {
 function start_kubernetes_if_not_running {
     if ! check_kubernetes_status; then
         echo "Starting minikube ..."
-        start_command="minikube start"
         # We need sudo permission to set vm-driver to none in linux os.
-        [[ "${OS_TYPE}" = "linux" ]] && start_command="sudo 
CHANGE_MINIKUBE_NONE_USER=true ${start_command} --vm-driver=none"
-        ${start_command}
+        if [[ "${OS_TYPE}" = "linux" ]] ; then
+            sudo CHANGE_MINIKUBE_NONE_USER=true minikube start 
--vm-driver=none \
+                --extra-config=kubelet.image-gc-high-threshold=99 \
+                --extra-config=kubelet.image-gc-low-threshold=98 \
+                --extra-config=kubelet.minimum-container-ttl-duration=120m \
+                
--extra-config=kubelet.eviction-hard="memory.available<5Mi,nodefs.available<1Mi,imagefs.available<1Mi"
 \
+                
--extra-config=kubelet.eviction-soft="memory.available<5Mi,nodefs.available<2Mi,imagefs.available<2Mi"
 \
+                
--extra-config=kubelet.eviction-soft-grace-period="memory.available=2h,nodefs.available=2h,imagefs.available=2h"
 
 Review comment:
   Not at all. This relates to the second problem I described above `Problem: 
Low disk space let the kublet delete unused docker images, including images 
generated for the test.`.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to