Skip to content

Commit

Permalink
Set critical pod annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
julianvmodesto committed Sep 30, 2017
1 parent ea31478 commit b367709
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions nodeup/pkg/model/kube_apiserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ func (b *KubeAPIServerBuilder) buildAnnotations() map[string]string {
if b.Cluster.Spec.API != nil && b.Cluster.Spec.API.DNS != nil {
annotations["dns.alpha.kubernetes.io/external"] = b.Cluster.Spec.MasterPublicName
}
annotations["scheduler.alpha.kubernetes.io/critical-pod"] = ""

return annotations
}
3 changes: 3 additions & 0 deletions nodeup/pkg/model/kube_controller_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ func (b *KubeControllerManagerBuilder) buildPod() (*v1.Pod, error) {
ObjectMeta: metav1.ObjectMeta{
Name: "kube-controller-manager",
Namespace: "kube-system",
Annotations: map[string]string{
"scheduler.alpha.kubernetes.io/critical-pod": "",
},
Labels: map[string]string{
"k8s-app": "kube-controller-manager",
},
Expand Down

0 comments on commit b367709

Please sign in to comment.