mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-10-31 05:40:42 +00:00 
			
		
		
		
	Automatic merge from submit-queue (batch tested with PRs 59767, 56454, 59237, 59730, 55479). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Change critical pods’ template to use priority **What this PR does / why we need it**: Change critical pods’ template to use priority Thanks. **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: ref #57471 **Special notes for your reviewer**: **Release note**: ```release-note ```
		
			
				
	
	
		
			39 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
| kind: Deployment
 | |
| apiVersion: extensions/v1beta1
 | |
| metadata:
 | |
|   name: calico-node-vertical-autoscaler
 | |
|   namespace: kube-system
 | |
|   labels:
 | |
|     k8s-app: calico-node-autoscaler
 | |
|     kubernetes.io/cluster-service: "true"
 | |
|     addonmanager.kubernetes.io/mode: Reconcile
 | |
| spec:
 | |
|   replicas: 1
 | |
|   template:
 | |
|     metadata:
 | |
|       labels:
 | |
|         k8s-app: calico-node-autoscaler
 | |
|       annotations:
 | |
|         scheduler.alpha.kubernetes.io/critical-pod: ''
 | |
|     spec:
 | |
|       priorityClassName: system-cluster-critical
 | |
|       containers:
 | |
|         - image: k8s.gcr.io/cpvpa-amd64:v0.6.0
 | |
|           name: autoscaler
 | |
|           command:
 | |
|             - /cpvpa
 | |
|             - --target=daemonset/calico-node
 | |
|             - --namespace=kube-system
 | |
|             - --logtostderr=true
 | |
|             - --poll-period-seconds=30
 | |
|             - --v=2
 | |
|             - --config-file=/etc/config/node-autoscaler
 | |
|           volumeMounts:
 | |
|             - name: config
 | |
|               mountPath: /etc/config
 | |
|       volumes:
 | |
|         - name: config
 | |
|           configMap:
 | |
|             name: calico-node-vertical-autoscaler
 | |
|       serviceAccountName: calico-cpva
 |