omrikiei / ktunnel

A cli that exposes your local resources to kubernetes
GNU General Public License v3.0
958 stars 75 forks source link

Add service type option to expose command #92

Closed takatea closed 1 year ago

takatea commented 1 year ago

Hi!

This PR allows the ktunnel to support any service type when using expose command.

Specifically, the ALB only supports NodePort or LoadBalancer if it uses. Now I deal with the above problem by updating the service resource using kubectl edit command.

Therefore, I would like to optionally set the service type option when using the expose command.

Example

ktunnel expose myapp 80:8000 --service-type=NodePort

Ref: