K8s原生租户专享节点功能
来自三线的随记
Prerequisites
api-server 参数 --admission-control PodNodeSelector
Example
--admission-control=NamespaceLifecycle,LimitRanger,ServiceAccount,PersistentVolumeLabel,DefaultStorageClass,ResourceQuota,DefaultTolerationSeconds,PodNodeSelector
Operating
[root@mast01 ~]# kubectl get namespaces dmp-system -oyaml apiVersion: v1 kind: Namespace metadata: annotations: scheduler.alpha.kubernetes.io/node-selector: daocloud.io/app=dmp creationTimestamp: "2020-04-01T08:50:07Z" name: dmp-system resourceVersion: "36937" selfLink: /api/v1/namespaces/dmp-system uid: 4aa9b813-ae80-4f83-acb6-7549acc9dbf5 spec: finalizers: - kubernetes status: phase: Active [root@mast01 ~]#
annotations -> scheduler.alpha.kubernetes.io/node-selector