mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Bind coredns containers to linux nodes to avoid Windows scheduling
This commit is contained in:
		@@ -112,6 +112,8 @@ spec:
 | 
				
			|||||||
          effect: NoSchedule
 | 
					          effect: NoSchedule
 | 
				
			||||||
        - key: "CriticalAddonsOnly"
 | 
					        - key: "CriticalAddonsOnly"
 | 
				
			||||||
          operator: "Exists"
 | 
					          operator: "Exists"
 | 
				
			||||||
 | 
					      nodeSelector:
 | 
				
			||||||
 | 
					        beta.kubernetes.io/os: linux
 | 
				
			||||||
      containers:
 | 
					      containers:
 | 
				
			||||||
      - name: coredns
 | 
					      - name: coredns
 | 
				
			||||||
        image: k8s.gcr.io/coredns:1.2.4
 | 
					        image: k8s.gcr.io/coredns:1.2.4
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -112,6 +112,8 @@ spec:
 | 
				
			|||||||
          effect: NoSchedule
 | 
					          effect: NoSchedule
 | 
				
			||||||
        - key: "CriticalAddonsOnly"
 | 
					        - key: "CriticalAddonsOnly"
 | 
				
			||||||
          operator: "Exists"
 | 
					          operator: "Exists"
 | 
				
			||||||
 | 
					      nodeSelector:
 | 
				
			||||||
 | 
					        beta.kubernetes.io/os: linux
 | 
				
			||||||
      containers:
 | 
					      containers:
 | 
				
			||||||
      - name: coredns
 | 
					      - name: coredns
 | 
				
			||||||
        image: k8s.gcr.io/coredns:1.2.4
 | 
					        image: k8s.gcr.io/coredns:1.2.4
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -112,6 +112,8 @@ spec:
 | 
				
			|||||||
          effect: NoSchedule
 | 
					          effect: NoSchedule
 | 
				
			||||||
        - key: "CriticalAddonsOnly"
 | 
					        - key: "CriticalAddonsOnly"
 | 
				
			||||||
          operator: "Exists"
 | 
					          operator: "Exists"
 | 
				
			||||||
 | 
					      nodeSelector:
 | 
				
			||||||
 | 
					        beta.kubernetes.io/os: linux
 | 
				
			||||||
      containers:
 | 
					      containers:
 | 
				
			||||||
      - name: coredns
 | 
					      - name: coredns
 | 
				
			||||||
        image: k8s.gcr.io/coredns:1.2.4
 | 
					        image: k8s.gcr.io/coredns:1.2.4
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -237,6 +237,8 @@ spec:
 | 
				
			|||||||
        operator: Exists
 | 
					        operator: Exists
 | 
				
			||||||
      - key: {{ .MasterTaintKey }}
 | 
					      - key: {{ .MasterTaintKey }}
 | 
				
			||||||
        effect: NoSchedule
 | 
					        effect: NoSchedule
 | 
				
			||||||
 | 
					      nodeSelector:
 | 
				
			||||||
 | 
					        beta.kubernetes.io/os: linux
 | 
				
			||||||
      containers:
 | 
					      containers:
 | 
				
			||||||
      - name: coredns
 | 
					      - name: coredns
 | 
				
			||||||
        image: {{ .ImageRepository }}/coredns:{{ .Version }}
 | 
					        image: {{ .ImageRepository }}/coredns:{{ .Version }}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user