mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 03:38:15 +00:00 
			
		
		
		
	Merge pull request #84007 from wojtek-t/reduce_node_update_frequency
Reduce node update frequency
This commit is contained in:
		@@ -26,28 +26,28 @@ subjects:
 | 
			
		||||
apiVersion: apps/v1
 | 
			
		||||
kind: DaemonSet
 | 
			
		||||
metadata:
 | 
			
		||||
  name: npd-v0.7.1
 | 
			
		||||
  name: npd-v0.8.0
 | 
			
		||||
  namespace: kube-system
 | 
			
		||||
  labels:
 | 
			
		||||
    k8s-app: node-problem-detector
 | 
			
		||||
    version: v0.7.1
 | 
			
		||||
    version: v0.8.0
 | 
			
		||||
    kubernetes.io/cluster-service: "true"
 | 
			
		||||
    addonmanager.kubernetes.io/mode: Reconcile
 | 
			
		||||
spec:
 | 
			
		||||
  selector:
 | 
			
		||||
    matchLabels:
 | 
			
		||||
      k8s-app: node-problem-detector
 | 
			
		||||
      version: v0.7.1
 | 
			
		||||
      version: v0.8.0
 | 
			
		||||
  template:
 | 
			
		||||
    metadata:
 | 
			
		||||
      labels:
 | 
			
		||||
        k8s-app: node-problem-detector
 | 
			
		||||
        version: v0.7.1
 | 
			
		||||
        version: v0.8.0
 | 
			
		||||
        kubernetes.io/cluster-service: "true"
 | 
			
		||||
    spec:
 | 
			
		||||
      containers:
 | 
			
		||||
      - name: node-problem-detector
 | 
			
		||||
        image: k8s.gcr.io/node-problem-detector:v0.7.1
 | 
			
		||||
        image: k8s.gcr.io/node-problem-detector:v0.8.0
 | 
			
		||||
        command:
 | 
			
		||||
        - "/bin/sh"
 | 
			
		||||
        - "-c"
 | 
			
		||||
 
 | 
			
		||||
@@ -26,8 +26,8 @@ set -o pipefail
 | 
			
		||||
### Hardcoded constants
 | 
			
		||||
DEFAULT_CNI_VERSION="v0.7.5"
 | 
			
		||||
DEFAULT_CNI_SHA1="52e9d2de8a5f927307d9397308735658ee44ab8d"
 | 
			
		||||
DEFAULT_NPD_VERSION="v0.7.1"
 | 
			
		||||
DEFAULT_NPD_SHA1="a9cae965973d586bf5206ad4fe5aae07e6bfd154"
 | 
			
		||||
DEFAULT_NPD_VERSION="v0.8.0"
 | 
			
		||||
DEFAULT_NPD_SHA1="9406c975b1b035995a137029a004622b905b4e7f"
 | 
			
		||||
DEFAULT_CRICTL_VERSION="v1.16.1"
 | 
			
		||||
DEFAULT_CRICTL_SHA1="8d7b788bf0a52bd3248407c6ebf779ffead27c99"
 | 
			
		||||
DEFAULT_MOUNTER_TAR_SHA="8003b798cf33c7f91320cd6ee5cec4fa22244571"
 | 
			
		||||
 
 | 
			
		||||
@@ -112,7 +112,7 @@ func SetDefaults_KubeletConfiguration(obj *kubeletconfigv1beta1.KubeletConfigura
 | 
			
		||||
		// set to NodeStatusUpdateFrequency if NodeStatusUpdateFrequency is set
 | 
			
		||||
		// explicitly.
 | 
			
		||||
		if obj.NodeStatusUpdateFrequency == zeroDuration {
 | 
			
		||||
			obj.NodeStatusReportFrequency = metav1.Duration{Duration: time.Minute}
 | 
			
		||||
			obj.NodeStatusReportFrequency = metav1.Duration{Duration: 5 * time.Minute}
 | 
			
		||||
		} else {
 | 
			
		||||
			obj.NodeStatusReportFrequency = obj.NodeStatusUpdateFrequency
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
@@ -177,7 +177,7 @@ func GetHollowKubeletConfig(opt *HollowKubletOptions) (*options.KubeletFlags, *k
 | 
			
		||||
	c.FileCheckFrequency.Duration = 20 * time.Second
 | 
			
		||||
	c.HTTPCheckFrequency.Duration = 20 * time.Second
 | 
			
		||||
	c.NodeStatusUpdateFrequency.Duration = 10 * time.Second
 | 
			
		||||
	c.NodeStatusReportFrequency.Duration = time.Minute
 | 
			
		||||
	c.NodeStatusReportFrequency.Duration = 5 * time.Minute
 | 
			
		||||
	c.SyncFrequency.Duration = 10 * time.Second
 | 
			
		||||
	c.EvictionPressureTransitionPeriod.Duration = 5 * time.Minute
 | 
			
		||||
	c.MaxPods = int32(opt.MaxPods)
 | 
			
		||||
 
 | 
			
		||||
@@ -93,7 +93,7 @@ spec:
 | 
			
		||||
            cpu: {{HOLLOW_PROXY_CPU}}m
 | 
			
		||||
            memory: {{HOLLOW_PROXY_MEM}}Ki
 | 
			
		||||
      - name: hollow-node-problem-detector
 | 
			
		||||
        image: k8s.gcr.io/node-problem-detector:v0.4.1
 | 
			
		||||
        image: k8s.gcr.io/node-problem-detector:v0.8.0
 | 
			
		||||
        env:
 | 
			
		||||
        - name: NODE_NAME
 | 
			
		||||
          valueFrom:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user