Add the OS Type Label into the Node

This commit is contained in:
robbiezhang
2017-12-05 23:27:56 +00:00
committed by Erik St. Martin
parent 37ed82e82c
commit 1353838bf4
2 changed files with 5 additions and 2 deletions

View File

@@ -115,8 +115,9 @@ func (s *Server) registerNode() error {
ObjectMeta: metav1.ObjectMeta{
Name: s.nodeName,
Labels: map[string]string{
"type": "virtual-kubelet",
"kubernetes.io/role": "agent",
"type": "virtual-kubelet",
"kubernetes.io/role": "agent",
"beta.kubernetes.io/os": strings.ToLower(s.provider.OperatingSystem()),
},
Annotations: map[string]string{
"alpha.service-controller.kubernetes.io/exclude-balancer": "true",