Is it possible to expose the flyte cluster demo to...
# ask-the-community
m
Is it possible to expose the flyte cluster demo to hostnetwork? I'm trying to send a simple post/get to my application from flyte task running in the cluster but I always get a connection error
k
yes cc @Kevin Su you can deploy this type of network service that will forward to the external host https://github.com/flyteorg/flyte/blob/42a24678efe301e837e8f643f0b45c857b63f621/deployment/sandbox/flyte_sandbox_deps_helm_generated.yaml#L553-L562
m
How can I enable this in the flyte demo cluster?
k
you just need to create a k8s service by yourself. change the external name to your ip of application.
m
I don't have a k8s running in cloud, I only develop and test locally. Do you have a guide to setup the k8s locally using minikube?
k
there is a k8s cluster already running in the flytectl demo cluster
run
kubectl get pods -n flyte
, you will see the flyte cluster is running in the k8s
m
thank you, I'll check that first
This is the result from pods flyte
Copy code
NAME                                                  READY   STATUS    RESTARTS   AGE
flyte-sandbox-kubernetes-dashboard-6757db879c-49k6l   1/1     Running   0          111s
flyte-sandbox-docker-registry-6488dbddd-rdqhd         1/1     Running   0          111s
flyte-sandbox-buildkit-7d7d55dbb-l4rrk                1/1     Running   0          111s
flyte-sandbox-minio-645c8ddf7c-j56zv                  1/1     Running   0          111s
flyte-sandbox-postgresql-0                            1/1     Running   0          111s
flyte-sandbox-proxy-8f4f7fd9b-92s5w                   1/1     Running   0          111s
flyte-sandbox-6547fb44fd-pf5gf                        1/1     Running   0          111s
flyteagent-86748cd469-n6hpq                           1/1     Running   0          111s