Hi everyone! I'm trying to install Flyte in Kubern...
# ask-the-community
d
Hi everyone! I'm trying to install Flyte in Kubernetes. I have s3 bucket and postgres database, how to install Flyte correctly in this case? I use helm flyte-core, but it seems that there are not enough settings in the values.yaml. Please tell me how to install Flyte?
b
d
oh, I just used values.yaml because there i can specify my proxy for docker registry.
d
@Danil Sizintsev where are you tryin to setup Flyte? is it EKS or on-prem?
d
on-prem
d
@Danil Sizintsev this guide helps you deploy either
flyte-core
or
flyte-binary
to an on-prem environment: https://github.com/davidmirror-ops/flyte-the-hard-way/blob/main/docs/on-premises/single-node/002-single-node-onprem-install.md It uses microk8s as the distro (but the process is applicable to other K8s distros) and
minio
as S3 provider It includes the manifests and values file. Any question/issue please let us know
d
Thank you! I'm already using this guide. I was able to deploy the flyte by changing onprem-flyte-core-values.yaml to suit my needs
d
excellent! Just for the sake of improving these guides, could you share the stack you're using? (if you feel comfortable doing so) K8s distro: S3 provider: Single/multi-node?
d
I use our enterprise cloud, which is provided by another team. To be honest, I don’t fully know what they use, maybe openstack. For me it's just a service. Kubernetes, s3 and the rest are there too. The guide as a whole is sufficient, I just didn’t find it right away.
r
Hi @David Espejo (he/him) I followed this doc https://github.com/davidmirror-ops/flyte-the-hard-way/blob/main/docs/on-premises/single-node/002-single-node-onprem-install.md , but got this error:
Copy code
2024/03/17 12:54:34 /go/pkg/mod/gorm.io/gorm@v1.24.1-0.20221019064659-5dd2bb482755/finisher_api.go:509
[0.071ms] [rows:1] SELECT count(*) FROM pg_indexes WHERE tablename = 'artifacts' AND indexname = 'artifacts_dataset_uuid_idx' AND schemaname = CURRENT_SCHEMA()
{"json":{"src":"start.go:195"},"level":"panic","msg":"Failed to start Propeller, err: failed to create FlyteWorkflow CRD: <http://customresourcedefinitions.apiextensions.k8s.io|customresourcedefinitions.apiextensions.k8s.io> is forbidden: User \"system:serviceaccount:flyte:default\" cannot create resource \"customresourcedefinitions\" in API group \"<http://apiextensions.k8s.io|apiextensions.k8s.io>\" at the cluster scope","ts":"2024-03-17T12:54:39Z"}
panic: (*logrus.Entry) 0x40001bc620

goroutine 16 [running]:
<http://github.com/sirupsen/logrus.(*Entry).log(0x40001bc5b0|github.com/sirupsen/logrus.(*Entry).log(0x40001bc5b0>, 0x0, {0x4005467b00, 0x117})
	/go/pkg/mod/github.com/sirupsen/logrus@v1.8.1/entry.go:259 +0x470
<http://github.com/sirupsen/logrus.(*Entry).Log(0x40001bc5b0|github.com/sirupsen/logrus.(*Entry).Log(0x40001bc5b0>, 0x0, {0x4000d91e48?, 0x1?, 0x1?})
	/go/pkg/mod/github.com/sirupsen/logrus@v1.8.1/entry.go:293 +0x60
<http://github.com/sirupsen/logrus.(*Entry).Logf(0x40001bc5b0|github.com/sirupsen/logrus.(*Entry).Logf(0x40001bc5b0>, 0x0, {0x29f9c72?, 0x0?}, {0x40040f8810?, 0x0?, 0x0?})
	/go/pkg/mod/github.com/sirupsen/logrus@v1.8.1/entry.go:338 +0x88
<http://github.com/sirupsen/logrus.(*Entry).Panicf(0x3b276a8|github.com/sirupsen/logrus.(*Entry).Panicf(0x3b276a8>?, {0x29f9c72?, 0x10?}, {0x40040f8810?, 0x1?, 0x0?})
	/go/pkg/mod/github.com/sirupsen/logrus@v1.8.1/entry.go:376 +0x3c
<http://github.com/flyteorg/flyte/flytestdlib/logger.Panicf(|github.com/flyteorg/flyte/flytestdlib/logger.Panicf(>{0x3b276a8?, 0x40009b4fc0?}, {0x29f9c72, 0x22}, {0x40040f8810, 0x1, 0x1})
	/flyteorg/build/flytestdlib/logger/logger.go:188 +0x5c
<http://github.com/flyteorg/flyte/cmd/single.glob..func4.2()|github.com/flyteorg/flyte/cmd/single.glob..func4.2()>
	/flyteorg/build/cmd/single/start.go:195 +0xb4
<http://golang.org/x/sync/errgroup.(*Group).Go.func1()|golang.org/x/sync/errgroup.(*Group).Go.func1()>
	/go/pkg/mod/golang.org/x/sync@v0.3.0/errgroup/errgroup.go:75 +0x5c
created by <http://golang.org/x/sync/errgroup.(*Group).Go|golang.org/x/sync/errgroup.(*Group).Go>
	/go/pkg/mod/golang.org/x/sync@v0.3.0/errgroup/errgroup.go:72 +0xa4
d
@Ryan Lo was this with flyte-binary?
r
@David Espejo (he/him) I found out that the reason is that serviceAccout is not enabled and resulted to propeller can’t create crds. no problem for me now.🙏 https://github.com/davidmirror-ops/flyte-the-hard-way/blob/main/docs/on-premises/single-node/manifests/onprem-flyte-binary-values.yaml#L39
d
Hey @Ryan Lo thanks and sorry. I just fixed it