Hi
I have a pod with cluster IP already. I want to expose this as load balacner or nodeport service and take one of the private IP from the subnet. However none seem to be working. I just want to know if there is some annotations or additional settings that we need to do to achieve this or exposing pods as service via standard yaml or kubectl commands should work?
for example this - kubectl expose deployment sandbox-airflow-web --type=LoadBalancer --name=sandbox-airflow-web-service --namespace=sandbox-airflow
didnt generate any external IP or errors. was stuck in pending. I later patched it to get an IP but there IP didnt return the website.
Kubectl patch svc sandbox-airflow-web-service -n sandbox-airflow -p'{"spec": {"type": "LoadBalancer", "externalIPs"::"172.20.8.50"]}}'
thanks.