我有一个包含21个节点的Google容器引擎集群,我需要确保一个特定的Pod始终运行在一个具有静态IP地址的节点上(以便用于出站目的)。
Kubernetes支持DaemonSets。
这是一种通过将标签与DaemonSet中的nodeSelector匹配来将Pod部署到特定节点(或节点集合)的方法。您可以为带有标签的节点分配静态IP。但是,GKE似乎不支持DaemonSet类型。
$ kubectl create -f go-daemonset.json
error validating "go-daemonset.json": error validating data: the server could not find the requested resource; if you choose to ignore these errors, turn validation off with --validate=false
$ kubectl create -f go-daemonset.json --validate=false
unable to recognize "go-daemonset.json": no kind named "DaemonSet" is registered in versions ["" "v1"]
这个功能什么时候得到支持,有什么解决方法吗?