K8s原生租户专享节点功能:修订间差异

来自三线的随记
(创建页面,内容为“=== Prerequisites === api-server 参数 --admission-control PodNodeSelector ==== Example ==== --admission-control=NamespaceLifecycle,LimitRanger,ServiceAccount,Per…”)
 
无编辑摘要
 
(未显示同一用户的1个中间版本)
第1行: 第1行:
=== Prerequisites ===
===Prerequisites===
api-server 参数 --admission-control PodNodeSelector
api-server 参数 --admission-control PodNodeSelector


==== Example ====
====Example====
  --admission-control=NamespaceLifecycle,LimitRanger,ServiceAccount,PersistentVolumeLabel,DefaultStorageClass,ResourceQuota,DefaultTolerationSeconds,PodNodeSelector
  --admission-control=NamespaceLifecycle,LimitRanger,ServiceAccount,PersistentVolumeLabel,DefaultStorageClass,ResourceQuota,DefaultTolerationSeconds,PodNodeSelector
<br />
<br />


=== Operating ===
===Operating===
  [root@mast01 ~]# kubectl get namespaces dmp-system -oyaml
  [root@mast01 ~]# kubectl get namespaces dmp-system -oyaml
  apiVersion: v1
  apiVersion: v1
第26行: 第26行:
annotations -> scheduler.alpha.kubernetes.io/node-selector
annotations -> scheduler.alpha.kubernetes.io/node-selector


a
[[分类:K8s]]
[[分类:K8s]]
{{DEFAULTSORT:Schedule}}
{{DEFAULTSORT:Schedule}}
[[分类:K8s-Dynamic Admission Control]]

2020年6月4日 (四) 23:02的最新版本

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