I was trying to run Kubectl and create a Pod directly at the worker node (i.e. node03) which, I think is not allowed. Only master node is allowed to execute Kubectl command.
If the above assumption is correct - can you guide how to solve this question?
Can I create a Pod from master node with (nodeName: node03 or with a nodeaffinity for node03) and then open the Pod(describe Pod) and check the IP address of the Pod?
But by checking the IP address of Pod, can I know the IP range of node03? I dont think so. Please suggest.
Hello, @debu3645
Have you tried nodeName or nodeSelector? After specifying one of the field. You can schedule your pod on the desire nodes. nodeName nodeSelector
Hope it will help you.
Hi @Tej-Singh-Rana
Yes, I have tried with nodeName and nodeSelector to place the pod on a specific node.
However here my intention was to check the IP range (that each node can use to assign IP to pods) of each node.