소스 검색

HUE-8888 [k8s] Add CPU limit to email stats cron and flower

Romain 5 년 전
부모
커밋
ba0335ca96
2개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 0
      tools/kubernetes/helm/hue/templates/cron-email-stats.yaml
  2. 1 1
      tools/kubernetes/helm/hue/templates/deployment-celery-flower.yaml

+ 3 - 0
tools/kubernetes/helm/hue/templates/cron-email-stats.yaml

@@ -17,6 +17,9 @@ spec:
             - /bin/bash
             - -c
             - ./build/env/bin/hue send_query_stats
+            resources:
+              requests:
+                cpu: "5m"
             volumeMounts:
             - name: config-volume
               mountPath: /usr/share/hue/desktop/conf/z-hue.ini

+ 1 - 1
tools/kubernetes/helm/hue/templates/deployment-celery-flower.yaml

@@ -34,7 +34,7 @@ spec:
           subPath: hue-ini
         resources:
           limits:
-            cpu: 100m
+            cpu: 5m
       volumes:
         - name: config-volume
           configMap: