hardkubectl
Expose a deployment as a NodePort service accessible on every cluster node
command
kubectl expose deployment DEPLOYMENT --port PORT --target-port TARGET_PORT --type NodePortalso accepted
kubectl expose deploymentkubectl expose deployment DEPLOYMENT --type NodePort