mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 12:18:16 +00:00 
			
		
		
		
	make fluentd a critical pod
Signed-off-by: Vishnu kannan <vishnuk@google.com>
This commit is contained in:
		@@ -14,6 +14,11 @@ spec:
 | 
				
			|||||||
        k8s-app: fluentd-es
 | 
					        k8s-app: fluentd-es
 | 
				
			||||||
        kubernetes.io/cluster-service: "true"
 | 
					        kubernetes.io/cluster-service: "true"
 | 
				
			||||||
        version: v1.22
 | 
					        version: v1.22
 | 
				
			||||||
 | 
					  # This annotation ensures that fluentd does not get evicted if the node
 | 
				
			||||||
 | 
					  # supports critical pod annotation based priority scheme.
 | 
				
			||||||
 | 
					  # Note that this does not guarantee admission on the nodes (#40573).
 | 
				
			||||||
 | 
					      annotations:
 | 
				
			||||||
 | 
					        scheduler.alpha.kubernetes.io/critical-pod: ''
 | 
				
			||||||
    spec:
 | 
					    spec:
 | 
				
			||||||
      containers:
 | 
					      containers:
 | 
				
			||||||
      - name: fluentd-es
 | 
					      - name: fluentd-es
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -15,6 +15,11 @@ spec:
 | 
				
			|||||||
        k8s-app: fluentd-gcp
 | 
					        k8s-app: fluentd-gcp
 | 
				
			||||||
        kubernetes.io/cluster-service: "true"
 | 
					        kubernetes.io/cluster-service: "true"
 | 
				
			||||||
        version: v1.35
 | 
					        version: v1.35
 | 
				
			||||||
 | 
					  # This annotation ensures that fluentd does not get evicted if the node
 | 
				
			||||||
 | 
					  # supports critical pod annotation based priority scheme.
 | 
				
			||||||
 | 
					  # Note that this does not guarantee admission on the nodes (#40573).
 | 
				
			||||||
 | 
					      annotations:
 | 
				
			||||||
 | 
					        scheduler.alpha.kubernetes.io/critical-pod: ''
 | 
				
			||||||
    spec:
 | 
					    spec:
 | 
				
			||||||
      containers:
 | 
					      containers:
 | 
				
			||||||
      - name: fluentd-gcp
 | 
					      - name: fluentd-gcp
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -6,6 +6,11 @@ metadata:
 | 
				
			|||||||
  namespace: kube-system
 | 
					  namespace: kube-system
 | 
				
			||||||
  labels:
 | 
					  labels:
 | 
				
			||||||
    k8s-app: fluentd-logging
 | 
					    k8s-app: fluentd-logging
 | 
				
			||||||
 | 
					  # This annotation ensures that fluentd does not get evicted if the node
 | 
				
			||||||
 | 
					  # supports critical pod annotation based priority scheme.
 | 
				
			||||||
 | 
					  # Note that this does not guarantee admission on the nodes (#40573).
 | 
				
			||||||
 | 
					  annotations:
 | 
				
			||||||
 | 
					    scheduler.alpha.kubernetes.io/critical-pod: ''
 | 
				
			||||||
spec:
 | 
					spec:
 | 
				
			||||||
  dnsPolicy: Default
 | 
					  dnsPolicy: Default
 | 
				
			||||||
  containers:
 | 
					  containers:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user