How to require one pod per minion/kublet when configuring a replication controller?

后端 未结 3 755
情深已故
情深已故 2021-01-06 11:59

I have 4 nodes (kubelets) configured with a label role=nginx

master ~ # kubectl get node
NAME          LABELS                               


        
3条回答
  •  说谎
    说谎 (楼主)
    2021-01-06 12:31

    Prior to DaemonSet being available, you can also specify that you pod uses a host port and set the number of replicas in your replication controller to something greater than your number of nodes. The host port constraint will allow only one pod per host.

提交回复
热议问题