omrikiei / ktunnel

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

feat(expose): Add --pod-tolerations argument to expose #135

Closed idsulik closed 2 months ago

idsulik commented 2 months ago

Fixes https://github.com/omrikiei/ktunnel/issues/132.

Added new argument to specify pod tolerations. example:
ktunnel expose --pod-tolerations myKey=myValue:NoSchedule

gms1 commented 2 months ago

It's worth noting that this only supports the "equal" operator, although the "exists" operator wouldn't be too hard to implement ( e.g by using "exists" if len(valueAndEffect) < 2 )