Need help to run nginx on particular node using kubectl command

We have three nodes and want to run nginx on particular node say VM1. If you have any command to implement this, kindly provide the same.It would be great help if you provide the info

Use kubectl describe node to see the node labels, it probably already has some that identifies it (like hostname, etc.). If not, add one.

Then see the documentation and examples for nodeSelector. That lets you select a node.

I think that should be it :slight_smile:

1 Like