flyte-deps

by EngHabu

Helm chartv1.16.8

A Helm chart for Flyte dependency

About this chart

flyte-deps

A Helm chart for Flyte dependency

Requirements

RepositoryNameVersion
https://charts.bitnami.com/bitnamicontour7.10.1
https://helm.dask.orgdaskoperator(dask-kubernetes-operator)2022.12.0
https://kubeflow.github.io/spark-operatorsparkoperator(spark-operator)2.1.1
https://kubernetes-retired.github.io/dashboard/kubernetes-dashboard4.0.2

SANDBOX INSTALLATION:

helm repo add flyte https://flyteorg.github.io/flyte
helm install -n flyte --create-namespace flyte flyte/flyte-deps

Customize your installation by changing settings in a new file values-sandbox.yaml. You can use the helm diff plugin to review any value changes you've made to your values:

helm plugin install https://github.com/databus23/helm-diff
helm diff upgrade -f values-sandbox.yaml flyte .

Then apply your changes:

helm upgrade -f values.yaml flyte .

Alternative: Generate raw kubernetes yaml with helm template

  • helm template --name-template=flyte-deps . -n flyte > flyte_generated_sandbox.yaml

  • Deploy the manifest kubectl apply -f flyte_generated_sandbox.yaml

  • When all pods are running - run end2end tests: kubectl apply -f ../end2end/tests/endtoend.yaml

  • If running on minikube, get flyte host using minikube service contour -n heptio-contour --url. And then visit http://<HOST>/console

CONFIGURATION NOTES:

  • The docker images, their tags and other default parameters are configured in values.yaml file.
  • Each Flyte installation type should have separate values-*.yaml file: for sandbox, EKS and etc. The configuration in values.yaml and the chosen config values-*.yaml are merged when generating the deployment manifest.

Values

KeyTypeDefaultDescription
contour.affinityobject{}affinity for Contour deployment
contour.contour.resourcesobject{"limits":{"cpu":"100m","memory":"100Mi"},"requests":{"cpu":"10m","memory":"50Mi"}}Default resources requests and limits for Contour
contour.contour.resources.limitsobject{"cpu":"100m","memory":"100Mi"}Limits are the maximum set of resources needed for this pod
contour.contour.resources.requestsobject{"cpu":"10m","memory":"50Mi"}Requests are the minimum set of resources needed for this pod
contour.enabledboolfalse- enable or disable Contour deployment installation
contour.envoy.resourcesobject{"limits":{"cpu":"100m","memory":"100Mi"},"requests":{"cpu":"10m","memory":"50Mi"}}Default resources requests and limits for Envoy
contour.envoy.resources.limitsobject{"cpu":"100m","memory":"100Mi"}Limits are the maximum set of resources needed for this pod
contour.envoy.resources.requestsobject{"cpu":"10m","memory":"50Mi"}Requests are the minimum set of resources needed for this pod
contour.envoy.service.nodePorts.httpint30081
contour.envoy.service.ports.httpint80
contour.envoy.service.typestring"NodePort"
contour.nodeSelectorobject{}nodeSelector for Contour deployment
contour.podAnnotationsobject{}Annotations for Contour pods
contour.replicaCountint1Replicas count for Contour deployment
contour.serviceAccountAnnotationsobject{}Annotations for ServiceAccount attached to Contour pods
contour.tolerationslist[]tolerations for Contour deployment
daskoperatorobject{"enabled":false}Optional: Dask Plugin using the Dask Operator
daskoperator.enabledboolfalse- enable or disable the dask operator deployment installation
kubernetes-dashboard.enabledbooltrue
kubernetes-dashboard.extraArgs[0]string"--enable-skip-login"
kubernetes-dashboard.extraArgs[1]string"--enable-insecure-login"
kubernetes-dashboard.extraArgs[2]string"--disable-settings-authorizer"
kubernetes-dashboard.protocolHttpbooltrue
kubernetes-dashboard.rbac.clusterReadOnlyRolebooltrue
kubernetes-dashboard.service.externalPortint30082
kubernetes-dashboard.service.nodePortint30082
kubernetes-dashboard.service.typestring"NodePort"
minio.affinityobject{}affinity for Minio deployment
minio.enabledbooltrue- enable or disable Minio deployment installation
minio.image.pullPolicystring"IfNotPresent"Docker image pull policy
minio.image.repositorystring"ecr.flyte.org/bitnami/minio"Docker image for Minio deployment
minio.image.tagstring"2021.10.13-debian-10-r0"Docker image tag
minio.nodeSelectorobject{}nodeSelector for Minio deployment
minio.podAnnotationsobject{}Annotations for Minio pods
minio.replicaCountint1Replicas count for Minio deployment
minio.resourcesobject{"limits":{"cpu":"200m","memory":"512Mi"},"requests":{"cpu":"10m","memory":"128Mi"}}Default resources requests and limits for Minio deployment
minio.resources.limitsobject{"cpu":"200m","memory":"512Mi"}Limits are the maximum set of resources needed for this pod
minio.resources.requestsobject{"cpu":"10m","memory":"128Mi"}Requests are the minimum set of resources needed for this pod
minio.serviceobject{"annotations":{},"type":"NodePort"}Service settings for Minio
minio.tolerationslist[]tolerations for Minio deployment
postgres.affinityobject{}affinity for Postgres deployment
postgres.dbnamestring"flyteadmin"
postgres.enabledbooltrue- enable or disable Postgres deployment installation
postgres.image.pullPolicystring"IfNotPresent"Docker image pull policy
postgres.image.repositorystring"ecr.flyte.org/ubuntu/postgres"Docker image for Postgres deployment
postgres.image.tagstring"13-21.04_beta"Docker image tag
postgres.nodeSelectorobject{}nodeSelector for Postgres deployment
postgres.podAnnotationsobject{}Annotations for Postgres pods
postgres.replicaCountint1Replicas count for Postgres deployment
postgres.resourcesobject{"limits":{"cpu":"1000m","memory":"512Mi"},"requests":{"cpu":"10m","memory":"128Mi"}}Default resources requests and limits for Postgres deployment
postgres.serviceobject{"annotations":{},"type":"NodePort"}Service settings for Postgres
postgres.tolerationslist[]tolerations for Postgres deployment
redis.enabledboolfalse- enable or disable Redis Statefulset installation
redoc.affinityobject{}affinity for redoc deployment
redoc.enabledboolfalse- enable or disable redoc deployment installation
redoc.image.pullPolicystring"IfNotPresent"Docker image pull policy
redoc.image.repositorystring"docker.io/redocly/redoc"Docker image for redoc deployment
redoc.image.tagstring"latest"Docker image tag
redoc.nodeSelectorobject{}nodeSelector for redoc deployment
redoc.podAnnotationsobject{}Annotations for redoc pods
redoc.replicaCountint1Replicas count for redoc deployment
redoc.resourcesobject{"limits":{"cpu":"200m","memory":"512Mi"},"requests":{"cpu":"10m","memory":"128Mi"}}Default resources requests and limits for redoc deployment
redoc.resources.limitsobject{"cpu":"200m","memory":"512Mi"}Limits are the maximum set of resources needed for this pod
redoc.resources.requestsobject{"cpu":"10m","memory":"128Mi"}Requests are the minimum set of resources needed for this pod
redoc.serviceobject{"type":"ClusterIP"}Service settings for redoc
redoc.tolerationslist[]tolerations for redoc deployment
sparkoperatorobject{"enabled":false}Optional: Spark Plugin using the Spark Operator
sparkoperator.enabledboolfalse- enable or disable Sparkoperator deployment installation
webhook.enabledbooltrue
webhook.serviceobject{"annotations":{"projectcontour.io/upstream-protocol.h2c":"grpc"},"type":"ClusterIP"}Service settings for the webhook

Deploy flyte-deps with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has flyte-deps on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartflyte-deps is pinned at v1.16.8 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply