Kubernetes

True or False? the target port, in the case of running the following command, will be exposed only on one of the Kubernetes cluster nodes but it will routed to all the pods

kubectl expose rs some-replicaset --name=replicaset-svc --target-port=2017 --type=NodePort

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

False. It will be exposed on every node of the cluster and will be routed to one of the Pods (which belong to the ReplicaSet)