Damien Querbes
10/22/2024, 9:06 PMuser
10/22/2024, 9:06 PMbash kubectl port-forward svc/airbyte-webapp-svc 8000:80 --namespace yournamespace
(Source: [Forum Post: Airbyte port forwarding in Kubernetes namespace](https://discuss.airbyte.io/t/259)) 2. Ingress Configuration: If you're trying to access Airbyte outside of localhost
, you might need to set up an ingress configuration. This allows external access to services in a cluster. You can use NGINX or Amazon ALB for this. Here's a skimmed down definition of an ingress resource you could use: yaml apiVersion: <http://networking.k8s.io/v1|networking.k8s.io/v1> kind: Ingress metadata: name: # ingress name, example: enterprise-demo annotations: <http://ingress.kubernetes.io/ssl-redirect|ingress.kubernetes.io/ssl-redirect>: "false" spec: ingressClassName: nginx rules: - host: # host, example: <http://enterprise-demo.airbyte.com|enterprise-demo.airbyte.com> http: paths: - backend: service: # format is ${RELEASE_NAME}-airbyte-webapp-svc name: airbyte-enterprise-airbyte-webapp-svc port: number: 80 # service port, example: 8080 path: / pathType: Prefix - backend: service: # format is ${RELEASE_NAME}-airbyte-keycloak-svc name: airbyte-enterprise-airbyte-keycloak-svc port: number: 8180 path: /auth pathType: Prefix
(Source: [Configuring Ingress](https://docs.airbyte.com/enterprise-setup/implementation-guide#configuring-ingress)) 3. Check Connectivity: You can check if all the services are started correctly on your host before figuring out external networking concerns. You can do this by SSHing into your VM and reaching <http://localhost:8000>
with curl
. bash curl <http://localhost:8000>
(Source: [Forum Post: Localhost refused to connect > Answers Part 1](https://discuss.airbyte.io/t/385)) If you're still having trouble, it might be helpful to provide more information or error messages you're encountering.user
10/22/2024, 9:07 PMDamien Querbes
10/22/2024, 10:06 PMAllowTcpForwarding
= no in /etc/ssh/sshd_config
@kapa.ai.
Now, I can access the localhost in my browser.
How can I do the ssh command from my local machine and do the port-forward at the same time?user
10/22/2024, 10:08 PMuser
10/22/2024, 10:08 PM-L
option in the SSH command. The -L
option specifies that the given port on the local (client) host is to be forwarded to the given host and port on the remote side. Here is the general format of the command: bash ssh -L local_port:remote_host:remote_port username@server
In the context of Airbyte and Kubernetes, you would use the kubectl port-forward
command to forward a local port to a port on the Pod. The command should look something like this: bash kubectl --namespace airbyte port-forward $POD_NAME 8080:$CONTAINER_PORT
This command forwards the local port 8080 to the CONTAINER_PORT
on the Pod with the name POD_NAME
in the airbyte
namespace [^1^]. Please replace $POD_NAME
and $CONTAINER_PORT
with your actual Pod name and container port. [^1^]: (https://docs.airbyte.com/deploying-airbyte/#6-set-up-port-forward-for-ui-access)