-
Notifications
You must be signed in to change notification settings - Fork 670
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Increase default project quota in the sandbox and demo (#3061)
* 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
Showing
4 changed files
with
110 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters