From b13de214e8e817b534547127bbf5561db51d721c Mon Sep 17 00:00:00 2001 From: Haytham Abuelfutuh Date: Sun, 21 Feb 2021 09:58:16 -0800 Subject: [PATCH] Update Admin task resources (#753) --- deployment/sandbox/flyte_generated.yaml | 8 ++++---- .../sandbox/config/admin/task_resource_defaults.yaml | 10 ++++++++++ kustomize/overlays/sandbox/kustomization.yaml | 1 + 3 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 kustomize/overlays/sandbox/config/admin/task_resource_defaults.yaml diff --git a/deployment/sandbox/flyte_generated.yaml b/deployment/sandbox/flyte_generated.yaml index ec01d50d91..1da79f75b5 100644 --- a/deployment/sandbox/flyte_generated.yaml +++ b/deployment/sandbox/flyte_generated.yaml @@ -1838,7 +1838,7 @@ data: task_resources: defaults: cpu: 100m - memory: 100Mi + memory: 200Mi storage: 5Mi limits: cpu: 2 @@ -1847,7 +1847,7 @@ data: gpu: 1 kind: ConfigMap metadata: - name: flyte-admin-config-k7f4k7g76c + name: flyte-admin-config-5b5g7785h8 namespace: flyte --- apiVersion: v1 @@ -2426,7 +2426,7 @@ spec: - emptyDir: {} name: shared-data - configMap: - name: flyte-admin-config-k7f4k7g76c + name: flyte-admin-config-5b5g7785h8 name: config-volume - name: db-pass secret: @@ -2613,7 +2613,7 @@ spec: name: clusterresource-template-dtg8ff28mt name: resource-templates - configMap: - name: flyte-admin-config-k7f4k7g76c + name: flyte-admin-config-5b5g7785h8 name: config-volume - name: db-pass secret: diff --git a/kustomize/overlays/sandbox/config/admin/task_resource_defaults.yaml b/kustomize/overlays/sandbox/config/admin/task_resource_defaults.yaml new file mode 100644 index 0000000000..dc71781b13 --- /dev/null +++ b/kustomize/overlays/sandbox/config/admin/task_resource_defaults.yaml @@ -0,0 +1,10 @@ +task_resources: + defaults: + cpu: 100m + memory: 200Mi + storage: 5Mi + limits: + cpu: 2 + memory: 8Gi + storage: 20Mi + gpu: 1 diff --git a/kustomize/overlays/sandbox/kustomization.yaml b/kustomize/overlays/sandbox/kustomization.yaml index 5ea13353eb..e60cd33045 100644 --- a/kustomize/overlays/sandbox/kustomization.yaml +++ b/kustomize/overlays/sandbox/kustomization.yaml @@ -30,6 +30,7 @@ configMapGenerator: - behavior: merge files: - ./config/admin/db.yaml + - ./config/admin/task_resource_defaults.yaml - ./config/common/storage.yaml - ./config/common/logger.yaml name: flyte-admin-config