skupperproject / skupper

Skupper is an implementation of a Virtual Application Network, enabling rich hybrid cloud communication.
http://skupper.io
Apache License 2.0
579 stars 70 forks source link

Error skupper expose gateway #998

Open MonicaGarridoCamacho opened 1 year ago

MonicaGarridoCamacho commented 1 year ago

I'm doing this demo (https://github.com/bryonbaker/nearest-prime). When running skupper gateway expose db 127.0.0.1 5432 --type podman on my OCP, this command fail due to the following error but the service is created:

error1

If the nearest prime deployment is created: oc apply -f nearestprime.yaml I get the following error:

error3

Versions • Skupper: client version: 1.2.2 transport version: quay.io/skupper/skupper-router:2.2.1 (sha256:85439893e776) controller version: quay.io/skupper/service-controller:1.2.2 (sha256:9e927e52d120) config-sync version: quay.io/skupper/config-sync:1.2.2 (sha256:21925187d4bc)
• Oc: oc version Client Version: 4.9.54 Server Version: 4.10.36 Kubernetes Version: v1.23.5+8471591 • local OS: macOS Monterey 12.6.3

ted-ross commented 1 year ago

Hi Monica,

The second error is caused by the first. The nearestprime pod will fail if it cannot establish a connection to the database.

The first error is something I've seen before but I believed had been fixed in the version you are using. What do you see when you type "skupper gateway status" ?

-Ted

On Wed, Jan 25, 2023 at 7:36 AM MonicaGarridoCamacho < @.***> wrote:

I'm doing this demo (https://github.com/bryonbaker/nearest-prime). When running skupper gateway expose db 127.0.0.1 5432 --type podman on my OCP, this command fail due to the following error but the service is created: [image: error1] https://user-images.githubusercontent.com/91462545/214564548-62f11a2d-f1a6-45b5-a1b8-77988b0a0793.png If the nearest prime deployment is created: oc apply -f nearestprime.yaml I get the following error: [image: error3] https://user-images.githubusercontent.com/91462545/214564810-c284e8ff-f106-4686-be6c-b99b92d7428a.png

Versions • Skupper: client version: 1.2.2 transport version: quay.io/skupper/skupper-router:2.2.1 (sha256:85439893e776) controller version: quay.io/skupper/service-controller:1.2.2 (sha256:9e927e52d120) config-sync version: quay.io/skupper/config-sync:1.2.2 (sha256:21925187d4bc) • Oc: oc version Client Version: 4.9.54 Server Version: 4.10.36 Kubernetes Version: v1.23.5+8471591 • local OS: macOS Monterey 12.6.3

— Reply to this email directly, view it on GitHub https://github.com/skupperproject/skupper/issues/998, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFEKJSKZFQNWSSIKNQKVZ3WUEM37ANCNFSM6AAAAAAUGIOJHU . You are receiving this because you are subscribed to this thread.Message ID: @.***>

MonicaGarridoCamacho commented 1 year ago

Hi Ted,

image

Thanks!!!!

MonicaGarridoCamacho commented 1 year ago

Now it's this error:

image

If I access to OCP:

image
ajssmith commented 1 year ago

Hi Monica,

I apologize for the delay in commenting. It looks like you are trying to run the gateway on a Mac. Can you confirm?

The gateway is supported on linux and as the network on a Mac works differently is not supported just yet. There have been users who have used the gateway by exposing port manually instead of using network=host.

Andy

MonicaGarridoCamacho commented 1 year ago

Thank Andy,

Yes, it's on a Mac. How should I expose the port manually?

Thanks

hguerrero commented 1 year ago

@MonicaGarridoCamacho, you can init the skupper gateway in your Mac using the --config <config_file> flag to configure the bindings for your gateway. It will create and configure the gateway using the definition you passed in the config file.

This won't work for forward as it requires mapping the exposed ports when starting the container.