Skip to content

Commit

Permalink
Set reasonable defaults and unconstrained limits for flyte-sandbox
Browse files Browse the repository at this point in the history
Signed-off-by: Jeev B <[email protected]>
  • Loading branch information
jeevb committed Sep 15, 2023
1 parent 95db070 commit bf6d6df
Show file tree
Hide file tree
Showing 9 changed files with 41 additions and 8 deletions.
1 change: 1 addition & 0 deletions charts/flyte-binary/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,3 +155,4 @@ Chart for basic single Flyte executable deployment
| serviceAccount.imagePullSecrets | list | `[]` | |
| serviceAccount.labels | object | `{}` | |
| serviceAccount.name | string | `""` | |

2 changes: 1 addition & 1 deletion charts/flyte-core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,4 +261,4 @@ helm install gateway bitnami/contour -n flyte
| webhook.serviceAccount.create | bool | `true` | Should a service account be created for the webhook |
| webhook.serviceAccount.imagePullSecrets | list | `[]` | ImagePullSecrets to automatically assign to the service account |
| workflow_notifications | object | `{"config":{},"enabled":false}` | **Optional Component** Workflow notifications module is an optional dependency. Flyte uses cloud native pub-sub systems to notify users of various events in their workflows |
| workflow_scheduler | object | `{"config":{},"enabled":false,"type":""}` | **Optional Component** Flyte uses a cloud hosted Cron scheduler to run workflows on a schedule. The following module is optional. Without, this module, you will not have scheduled launchplans / workflows. Docs: https://docs.flyte.org/en/latest/howto/enable_and_use_schedules.html#setting-up-scheduled-workflows |
| workflow_scheduler | object | `{"config":{},"enabled":false,"type":""}` | **Optional Component** Flyte uses a cloud hosted Cron scheduler to run workflows on a schedule. The following module is optional. Without, this module, you will not have scheduled launchplans / workflows. Docs: https://docs.flyte.org/en/latest/howto/enable_and_use_schedules.html#setting-up-scheduled-workflows |
2 changes: 1 addition & 1 deletion charts/flyte-deps/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,4 @@ helm upgrade -f values.yaml flyte .
| sparkoperator | object | `{"enabled":false}` | Optional: Spark Plugin using the Spark Operator |
| sparkoperator.enabled | bool | `false` | - enable or disable Sparkoperator deployment installation |
| webhook.enabled | bool | `true` | |
| webhook.service | object | `{"annotations":{"projectcontour.io/upstream-protocol.h2c":"grpc"},"type":"ClusterIP"}` | Service settings for the webhook |
| webhook.service | object | `{"annotations":{"projectcontour.io/upstream-protocol.h2c":"grpc"},"type":"ClusterIP"}` | Service settings for the webhook |
9 changes: 9 additions & 0 deletions charts/flyte-sandbox/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ A Helm chart for the Flyte local sandbox
| flyte-binary.configuration.inline.plugins.k8s.default-env-vars[1].FLYTE_AWS_ACCESS_KEY_ID | string | `"minio"` | |
| flyte-binary.configuration.inline.plugins.k8s.default-env-vars[2].FLYTE_AWS_SECRET_ACCESS_KEY | string | `"miniostorage"` | |
| flyte-binary.configuration.inline.storage.signedURL.stowConfigOverride.endpoint | string | `"http://localhost:30002"` | |
| flyte-binary.configuration.inline.task_resources.defaults.cpu | string | `"500m"` | |
| flyte-binary.configuration.inline.task_resources.defaults.ephemeralStorage | int | `0` | |
| flyte-binary.configuration.inline.task_resources.defaults.gpu | int | `0` | |
| flyte-binary.configuration.inline.task_resources.defaults.memory | string | `"1Gi"` | |
| flyte-binary.configuration.inline.task_resources.limits.cpu | int | `0` | |
| flyte-binary.configuration.inline.task_resources.limits.ephemeralStorage | int | `0` | |
| flyte-binary.configuration.inline.task_resources.limits.gpu | int | `0` | |
| flyte-binary.configuration.inline.task_resources.limits.memory | int | `0` | |
| flyte-binary.configuration.inlineConfigMap | string | `"{{ include \"flyte-sandbox.configuration.inlineConfigMap\" . }}"` | |
| flyte-binary.configuration.logging.level | int | `6` | |
| flyte-binary.configuration.logging.plugins.kubernetes.enabled | bool | `true` | |
Expand Down Expand Up @@ -101,3 +109,4 @@ A Helm chart for the Flyte local sandbox
| sandbox.proxy.image.pullPolicy | string | `"Never"` | |
| sandbox.proxy.image.repository | string | `"envoyproxy/envoy"` | |
| sandbox.proxy.image.tag | string | `"sandbox"` | |

11 changes: 11 additions & 0 deletions charts/flyte-sandbox/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,17 @@ flyte-binary:
templateUri: |-
http://localhost:30080/kubernetes-dashboard/#/log/{{.namespace }}/{{ .podName }}/pod?namespace={{ .namespace }}
inline:
task_resources:
defaults:
cpu: 500m
ephemeralStorage: 0
gpu: 0
memory: 1Gi
limits:
cpu: 0
ephemeralStorage: 0
gpu: 0
memory: 0
storage:
signedURL:
stowConfigOverride:
Expand Down
2 changes: 1 addition & 1 deletion charts/flyte/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,4 +249,4 @@ helm upgrade -f values-sandbox.yaml flyte .
| redoc.service | object | `{"type":"ClusterIP"}` | Service settings for Minio |
| redoc.tolerations | list | `[]` | tolerations for Minio deployment |
| sparkoperator | object | `{"enabled":false}` | Optional: Spark Plugin using the Spark Operator |
| sparkoperator.enabled | bool | `false` | - enable or disable Sparkoperator deployment installation |
| sparkoperator.enabled | bool | `false` | - enable or disable Sparkoperator deployment installation |
1 change: 1 addition & 0 deletions charts/flyteagent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ A Helm chart for Flyte agent
| serviceAccount.create | bool | `true` | Should a service account be created for flyteagent |
| serviceAccount.imagePullSecrets | list | `[]` | ImagePullSecrets to automatically assign to the service account |
| tolerations | list | `[]` | tolerations for flyteagent deployment |

17 changes: 14 additions & 3 deletions docker/sandbox-bundled/manifests/complete.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,17 @@ data:
signedURL:
stowConfigOverride:
endpoint: http://localhost:30002
task_resources:
defaults:
cpu: 500m
ephemeralStorage: 0
gpu: 0
memory: 1Gi
limits:
cpu: 0
ephemeralStorage: 0
gpu: 0
memory: 0
kind: ConfigMap
metadata:
labels:
Expand Down Expand Up @@ -784,7 +795,7 @@ type: Opaque
---
apiVersion: v1
data:
haSharedSecret: eG45SEN5TVVWa0x6T1JWag==
haSharedSecret: TGdrZ2VYQmlCclY1RExvUw==
proxyPassword: ""
proxyUsername: ""
kind: Secret
Expand Down Expand Up @@ -1182,7 +1193,7 @@ spec:
metadata:
annotations:
checksum/cluster-resource-templates: 6fd9b172465e3089fcc59f738b92b8dc4d8939360c19de8ee65f68b0e7422035
checksum/configuration: d8b1a21ee36b95a27cb4311ea41bd4bb660b4306ce89a99ed66f4f0425c35084
checksum/configuration: 2bc4d1f1b07e67182a10a59b5eeb2c8dda57d8f0d98d3869fa6e773518690cac
checksum/configuration-secret: 09216ffaa3d29e14f88b1f30af580d02a2a5e014de4d750b7f275cc07ed4e914
labels:
app.kubernetes.io/component: flyte-binary
Expand Down Expand Up @@ -1345,7 +1356,7 @@ spec:
metadata:
annotations:
checksum/config: 8f50e768255a87f078ba8b9879a0c174c3e045ffb46ac8723d2eedbe293c8d81
checksum/secret: d88b59ccf4d3a3d572d09451cda92c24362f858e9d4a18db02c5e3ac00fa39bf
checksum/secret: 34825f00a546f73cde04e45e718db7db8a29791c6ef58537f56f9270ee81dc01
labels:
app: docker-registry
release: flyte-sandbox
Expand Down
4 changes: 2 additions & 2 deletions docker/sandbox-bundled/manifests/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ metadata:
---
apiVersion: v1
data:
haSharedSecret: ajZKUE5Ddm5HRHhmcVpIYg==
haSharedSecret: Z2ZnWkdRNVI0VFBBd3JPQg==
proxyPassword: ""
proxyUsername: ""
kind: Secret
Expand Down Expand Up @@ -933,7 +933,7 @@ spec:
metadata:
annotations:
checksum/config: 8f50e768255a87f078ba8b9879a0c174c3e045ffb46ac8723d2eedbe293c8d81
checksum/secret: 989c2369d62af38b41b73878e06ff95b0d60ed64d38c055bae4c5abd47e40dae
checksum/secret: 12ce3d2a71b191032acdc8fc14085540cf192208f4bb213ec39a2ff2b3862d88
labels:
app: docker-registry
release: flyte-sandbox
Expand Down

0 comments on commit bf6d6df

Please sign in to comment.