I have been following this https://github.com/dagger/dagger/issues/5292 to run a kubernetes cluster inside dagger, containing an instance of minio.
From a mino client container I am now trying to set an alias pointing to that minio by port forwarding its service
// creating the port forward
vaultPF := setKubectl(client.Container().From("bitnami/kubectl"), *k8s).
WithExposedPort(4222).
WithExec([]string{"kubectl port-forward --namespace=minio-operator service/operator 4222:4222 &"})
mc = setKubectl(client.Container().From("bitnami/minio-client"), *k8s).
WithEnvVariable("CLUSTER_ACCESSKEY", clusterAccessKey).
WithEnvVariable("CLUSTER_SECRETKEY", clusterSecretKey).
WithServiceBinding("minio.k3s.lan", vaultPF).
WithExec([]string{"mc --insecure alias set cluster https://minio.k3s.lan:4222 $CLUSTER_ACCESSKEY $CLUSTER_SECRETKEY"})
The issue is that the execution get stuck while forwarding the port
241: [0.33s] Forwarding from 127.0.0.1:4222 -> 4222
241: [0.33s] Forwarding from [::1]:4222 -> 4222
I've tried using nohup, the & at the end of the command as well a creating a thread for the vaultPF container but nothing seems to do it,
Thank you for your help !
GitHub
What is the issue? Some users in discord (https://discord.com/channels/707636530424053791/1114570469958484008) have requested the ability to test kubernetes pipelines in Dagger. With the help of @v...