I have flux, nginx, gitlab pod running in my kubernetes cluster on AWS. Nginx runs as a load balancer/reverse proxy,while gitlab runs a node port( and only gitlab is behing nginx).Gitlab and flux are in different namespaces.
Now i want to ssh from the flux pod into gitlab.
Flux is installed via helm charts.
Prior to installing flux i run - ssh-keyscan {{ git_host }} > flux_known_hosts
and refer to this in the installer command.
since my git_host is a loadbalancer url, ssh-keyscan does not work as it cannot resolve the ELB url.
However on the other hand - git clone ssh://[email protected]:222/root/automation.git
works when i run this command from the flux pod.
Is there any way to get the below command to work from the flux pod(using the elb url and not the gitlab service name) -
ssh://git@aa82ee1b284b0464bb1353bd2fbccdd2-1957457895.ca-central-1.elb.amazonaws.com:root/automation.git
I have tried opening ports on the Elb but that does not seem to work.