https://flyte.org logo
#ask-the-community
Title
# ask-the-community
m

Muhammad Haritsah Mukhlis

12/12/2023, 5:26 PM
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

Ketan (kumare3)

12/12/2023, 5:30 PM
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

Muhammad Haritsah Mukhlis

12/12/2023, 5:31 PM
How can I enable this in the flyte demo cluster?
k

Kevin Su

12/12/2023, 7:01 PM
you just need to create a k8s service by yourself. change the external name to your ip of application.
m

Muhammad Haritsah Mukhlis

12/12/2023, 7:02 PM
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

Kevin Su

12/12/2023, 7:08 PM
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

Muhammad Haritsah Mukhlis

12/12/2023, 7:13 PM
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