Skip to content

Commit

Permalink
Increase default project quota in the sandbox and demo (#3061)
Browse files Browse the repository at this point in the history
* update default quota in the sandbox and demo

Signed-off-by: Kevin Su <[email protected]>

* Make helm

Signed-off-by: Kevin Su <[email protected]>

* wip

Signed-off-by: Kevin Su <[email protected]>

* make helm

Signed-off-by: Kevin Su <[email protected]>

* Update resource

Signed-off-by: Kevin Su <[email protected]>

* update

Signed-off-by: Kevin Su <[email protected]>

Signed-off-by: Kevin Su <[email protected]>
  • Loading branch information
pingsutw authored Nov 17, 2022
1 parent 8194578 commit fa4ca80
Show file tree
Hide file tree
Showing 4 changed files with 110 additions and 22 deletions.
74 changes: 74 additions & 0 deletions charts/flyte-core/values-sandbox.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,19 @@ configmap:
CONFIG_DIR: /etc/flyte/config
DISABLE_AUTH: "1"

# -- Task default resources configuration
# Refer to the full [structure](https://pkg.go.dev/github.com/lyft/[email protected]/pkg/runtime/interfaces#TaskResourceConfiguration).
task_resource_defaults:
# -- Task default resources parameters
task_resources:
defaults:
cpu: 500m
memory: 1Gi
limits:
cpu: 2
memory: 4Gi
gpu: 5


# -- Kubernetes specific Flyte configuration
k8s:
Expand Down Expand Up @@ -102,3 +115,64 @@ redis:
# --- enable or disable Redis Statefulset installation
enabled: false

# -- Configuration for the Cluster resource manager component. This is an optional component, that enables automatic
# cluster configuration. This is useful to set default quotas, manage namespaces etc that map to a project/domain
cluster_resource_manager:
# -- Enables the Cluster resource manager component
enabled: true
standaloneDeployment: false
# -- Service account name to run with
service_account_name: flyteadmin
# -- Annotations for ClusterResource pods
podAnnotations: {}
# -- Configmap for ClusterResource parameters
config:
# -- ClusterResource parameters
# Refer to the [structure](https://pkg.go.dev/github.com/lyft/[email protected]/pkg/runtime/interfaces#ClusterResourceConfig) to customize.
cluster_resources:
# -- How frequently to run the sync process
refreshInterval: 5m
templatePath: "/etc/flyte/clusterresource/templates"
# -- Starts the cluster resource manager in standalone mode with requisite auth credentials to call flyteadmin service endpoints
standaloneDeployment: false
customData:
- production:
- projectQuotaCpu:
value: "8"
- projectQuotaMemory:
value: "16Gi"
- staging:
- projectQuotaCpu:
value: "8"
- projectQuotaMemory:
value: "16Gi"
- development:
- projectQuotaCpu:
value: "8"
- projectQuotaMemory:
value: "16Gi"

# -- Resource templates that should be applied
templates:
# -- Template for namespaces resources
- key: aa_namespace
value: |
apiVersion: v1
kind: Namespace
metadata:
name: {{ namespace }}
spec:
finalizers:
- kubernetes
- key: ab_project_resource_quota
value: |
apiVersion: v1
kind: ResourceQuota
metadata:
name: project-quota
namespace: {{ namespace }}
spec:
hard:
limits.cpu: {{ projectQuotaCpu }}
limits.memory: {{ projectQuotaMemory }}
19 changes: 11 additions & 8 deletions flyte.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,25 +78,28 @@ cluster_resources:
customData:
- production:
- projectQuotaCpu:
value: "5"
value: "8"
- projectQuotaMemory:
value: "4000Mi"
value: "16Gi"
- staging:
- projectQuotaCpu:
value: "2"
value: "8"
- projectQuotaMemory:
value: "3000Mi"
value: "16Gi"
- development:
- projectQuotaCpu:
value: "4"
value: "8"
- projectQuotaMemory:
value: "3000Mi"
value: "16Gi"
refresh: 5m
task_resources:
defaults:
cpu: 500m
memory: 500Mi
storage: 500Mi
memory: 1Gi
limits:
cpu: 2
memory: 4Gi
gpu: 5
catalog-cache:
endpoint: localhost:8081
insecure: true
Expand Down
19 changes: 11 additions & 8 deletions flyte_local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,19 +79,19 @@ cluster_resources:
customData:
- production:
- projectQuotaCpu:
value: "5"
value: "8"
- projectQuotaMemory:
value: "4000Mi"
value: "16Gi"
- staging:
- projectQuotaCpu:
value: "2"
value: "8"
- projectQuotaMemory:
value: "3000Mi"
value: "16Gi"
- development:
- projectQuotaCpu:
value: "4"
value: "8"
- projectQuotaMemory:
value: "3000Mi"
value: "16Gi"
refresh: 5m
flyte:
admin:
Expand All @@ -102,8 +102,11 @@ flyte:
task_resources:
defaults:
cpu: 500m
memory: 500Mi
storage: 500Mi
memory: 1Gi
limits:
cpu: 2
memory: 4Gi
gpu: 5
catalog-cache:
endpoint: localhost:8081
insecure: true
Expand Down
20 changes: 14 additions & 6 deletions flyte_local_k3d.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,20 +72,28 @@ cluster_resources:
customData:
- production:
- projectQuotaCpu:
value: "5"
value: "8"
- projectQuotaMemory:
value: "4000Mi"
value: "16Gi"
- staging:
- projectQuotaCpu:
value: "2"
value: "8"
- projectQuotaMemory:
value: "3000Mi"
value: "16Gi"
- development:
- projectQuotaCpu:
value: "4"
value: "8"
- projectQuotaMemory:
value: "3000Mi"
value: "16Gi"
refresh: 5m
task_resources:
defaults:
cpu: 500m
memory: 1Gi
limits:
cpu: 2
memory: 4Gi
gpu: 5
flyte:
admin:
disableClusterResourceManager: true
Expand Down

0 comments on commit fa4ca80

Please sign in to comment.