I wanted to expose my application on all the ports between 3000-14000. For this, I have changed the default nodePort range 30k - 32767 by updating kubeapi-server manifest file field "--service-node-port-range=3000-14000". For me, it is almost impossible to expose by specifying all the port numbers manually following the below template.
apiVersion: v1
kind: Service
metadata:
name: myapp-service
spec:
type: nodePort
selector:
app: myapp
ports:
- targetPort: 3000
port: 3000
nodePort: 3000
...................
...................
- targetPort: 14000
port: 14000
nodePort: 14000
Do we have any other alternative solution/plugins to this, so as to open all ports between the range 3k - 14k.