You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run sudo -E kubefwd svc -n default -l "app=reactioncommerce" I see:
INFO[11:56:33] _ _ __ _
INFO[11:56:33] | | ___ _| |__ ___ / _|_ ____| |
INFO[11:56:33] | |/ / | | | '_ \ / _ \ |_\ \ /\ / / _ |
INFO[11:56:33] | <| |_| | |_) | __/ _|\ V V / (_| |
INFO[11:56:33] |_|\_\\__,_|_.__/ \___|_| \_/\_/ \__,_|
INFO[11:56:33]
INFO[11:56:33] Version 1.17.3
INFO[11:56:33] https://github.com/txn2/kubefwd
INFO[11:56:33]
INFO[11:56:33] Press [Ctrl-C] to stop forwarding.
INFO[11:56:33] 'cat /etc/hosts' to see all host entries.
INFO[11:56:33] Loaded hosts file /etc/hosts
INFO[11:56:33] HostFile management: Original hosts backup already exists at /Users/jos/hosts.original
INFO[11:56:33] Successfully connected context: k3d-k3s-demandcluster
INFO[11:56:33] Port-Forward: 127.1.27.1 reactioncommerce-admin:4080 to pod reactioncommerce-admin-645878f657-jz2v9:4080
INFO[11:56:33] Port-Forward: 127.1.27.2 reactioncommerce-hydra:4444 to pod reactioncommerce-hydra-7fb869c745-9xgkv:4444
INFO[11:56:33] Port-Forward: 127.1.27.2 reactioncommerce-hydra:4445 to pod reactioncommerce-hydra-7fb869c745-9xgkv:4445
INFO[11:56:33] Port-Forward: 127.1.27.2 reactioncommerce-hydra:5555 to pod reactioncommerce-hydra-7fb869c745-9xgkv:5555
INFO[11:56:33] Port-Forward: 127.1.27.3 reactioncommerce-api:3000 to pod reactioncommerce-api-7688b68f95-9kvzn:3000
INFO[11:56:33] Port-Forward: 127.1.27.4 reactioncommerce-identity:4100 to pod reactioncommerce-identity-66dc8778f4-vnddz:4100
INFO[11:56:33] Port-Forward: 127.1.27.5 reactioncommerce-web:4000 to pod reactioncommerce-web-788c9dbd4-sv5jg:4000
Accessing the admin or website front-end causes issues because all user-facing services (e.g. identity, api) expect to be running on port 80 on their own subdomains, i.e. wss://api.reaction.test/graphql for the API.
Which leads me to my questions:
Is is possible to use kubefwd to handle web socket connections (with or without TLS)
What's the suggested way to go about mapping each of the public-facing services to a specific port (i.e. port 80)?
Thanks in advance for your help.
The text was updated successfully, but these errors were encountered:
I think @balibebas is correct that you might need to use some kind of reverse proxy.
kubefwd forwards Pods backing a service, if the service is mapping on port 80 then it will be forwarded as 80. But I assume you would like to replicate Ingress, which is typically a reverse proxy like nginx. You can run nginx on your local workstation and point it to the hostnames/ports kubefwd is forwarding, just like you do in Kubernetes.
Given the following Helm chart for the OSS e-commerce application Reaction Commerce:
https://github.com/slingshotlabs/reaction-oss-helm-chart
Installing the Chart eventually gives me the following services:
When I run
sudo -E kubefwd svc -n default -l "app=reactioncommerce"
I see:Accessing the admin or website front-end causes issues because all user-facing services (e.g. identity, api) expect to be running on port 80 on their own subdomains, i.e.
wss://api.reaction.test/graphql
for the API.Which leads me to my questions:
kubefwd
to handle web socket connections (with or without TLS)Thanks in advance for your help.
The text was updated successfully, but these errors were encountered: