Is there a way to control k8s service with type Loadbalancer to control exposed ports on external LB.
While you creating a service in k8s with type LB, this is how the network connection looks like
Basically, I want to define k8s service, with type load balancer, and it should open SSL terminated lb endpoint with port 443, while internally on the same k8s service it should accept the HTTP calls.
Note: I can get it done using two service definition, but checking if I can handle this using single service using any annotation or some other configs.
This issue depends on the type of LB you intend on using. If you're running your cluster on AWS, you can use this solution to achieve what you're after.