Expose a deployment on port 80 at port 6379 For this target-port is mandatory ? . . .

Rahul:
expose a deployment on port 80 at port 6379

For this target-port is mandatory ? --port=6379 --target-port=6379
I see it at some places in solution it only gives --port=6379

Madhan Kumar:
If you do not specify --target-port, then the create command will use the port specified in the --port as --target-port . We should specify both in the create command if they are different .