Quellcode durchsuchen

documentation: set priorityClassName to system-node-critical

flannel pods are not considered critical by the scheduler, which may
cause issues. In case of multiple pods are fighting for resources
there is the possibility of flannel pods be in pending mode indefinitely
Frederiko Costa vor 4 Jahren
Ursprung
Commit
75fe1e0f6e
3 geänderte Dateien mit 8 neuen und 2 gelöschten Zeilen
  1. 1 0
      Documentation/kube-flannel-aliyun.yml
  2. 5 0
      Documentation/kube-flannel.yml
  3. 2 2
      backend/vxlan/device.go

+ 1 - 0
Documentation/kube-flannel-aliyun.yml

@@ -86,6 +86,7 @@ spec:
         app: flannel
         app: flannel
     spec:
     spec:
       hostNetwork: true
       hostNetwork: true
+      priorityClassName: system-node-critical
       nodeSelector:
       nodeSelector:
         beta.kubernetes.io/arch: amd64
         beta.kubernetes.io/arch: amd64
       tolerations:
       tolerations:

+ 5 - 0
Documentation/kube-flannel.yml

@@ -163,6 +163,7 @@ spec:
                     values:
                     values:
                       - amd64
                       - amd64
       hostNetwork: true
       hostNetwork: true
+      priorityClassName: system-node-critical
       tolerations:
       tolerations:
       - operator: Exists
       - operator: Exists
         effect: NoSchedule
         effect: NoSchedule
@@ -257,6 +258,7 @@ spec:
                     values:
                     values:
                       - arm64
                       - arm64
       hostNetwork: true
       hostNetwork: true
+      priorityClassName: system-node-critical
       tolerations:
       tolerations:
       - operator: Exists
       - operator: Exists
         effect: NoSchedule
         effect: NoSchedule
@@ -351,6 +353,7 @@ spec:
                     values:
                     values:
                       - arm
                       - arm
       hostNetwork: true
       hostNetwork: true
+      priorityClassName: system-node-critical
       tolerations:
       tolerations:
       - operator: Exists
       - operator: Exists
         effect: NoSchedule
         effect: NoSchedule
@@ -445,6 +448,7 @@ spec:
                     values:
                     values:
                       - ppc64le
                       - ppc64le
       hostNetwork: true
       hostNetwork: true
+      priorityClassName: system-node-critical
       tolerations:
       tolerations:
       - operator: Exists
       - operator: Exists
         effect: NoSchedule
         effect: NoSchedule
@@ -539,6 +543,7 @@ spec:
                     values:
                     values:
                       - s390x
                       - s390x
       hostNetwork: true
       hostNetwork: true
+      priorityClassName: system-node-critical
       tolerations:
       tolerations:
       - operator: Exists
       - operator: Exists
         effect: NoSchedule
         effect: NoSchedule

+ 2 - 2
backend/vxlan/device.go

@@ -25,8 +25,8 @@ import (
 	log "github.com/golang/glog"
 	log "github.com/golang/glog"
 	"github.com/vishvananda/netlink"
 	"github.com/vishvananda/netlink"
 
 
+	"github.com/containernetworking/plugins/pkg/utils/sysctl"
 	"github.com/coreos/flannel/pkg/ip"
 	"github.com/coreos/flannel/pkg/ip"
-        "github.com/containernetworking/plugins/pkg/utils/sysctl"
 )
 )
 
 
 type vxlanDeviceAttrs struct {
 type vxlanDeviceAttrs struct {
@@ -62,7 +62,7 @@ func newVXLANDevice(devAttrs *vxlanDeviceAttrs) (*vxlanDevice, error) {
 		return nil, err
 		return nil, err
 	}
 	}
 
 
-        _, _ = sysctl.Sysctl(fmt.Sprintf("net/ipv6/conf/%s/accept_ra", devAttrs.name), "0")
+	_, _ = sysctl.Sysctl(fmt.Sprintf("net/ipv6/conf/%s/accept_ra", devAttrs.name), "0")
 
 
 	return &vxlanDevice{
 	return &vxlanDevice{
 		link: link,
 		link: link,