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 ```
		
			
				
	
	
		
			70 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			70 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
| apiVersion: extensions/v1beta1
 | |
| kind: Deployment
 | |
| metadata:
 | |
|   name: calico-typha
 | |
|   namespace: kube-system
 | |
|   labels:
 | |
|     kubernetes.io/cluster-service: "true"
 | |
|     addonmanager.kubernetes.io/mode: Reconcile
 | |
|     k8s-app: calico-typha
 | |
| spec:
 | |
|   revisionHistoryLimit: 2
 | |
|   template:
 | |
|     metadata:
 | |
|       labels:
 | |
|         k8s-app: calico-typha
 | |
|       annotations:
 | |
|         scheduler.alpha.kubernetes.io/critical-pod: ''
 | |
|     spec:
 | |
|       priorityClassName: system-cluster-critical
 | |
|       tolerations:
 | |
|       - key: CriticalAddonsOnly
 | |
|         operator: Exists
 | |
|       hostNetwork: true
 | |
|       serviceAccountName: calico
 | |
|       containers:
 | |
|       - image: gcr.io/projectcalico-org/typha:v0.5.6
 | |
|         name: calico-typha
 | |
|         ports:
 | |
|         - containerPort: 5473
 | |
|           name: calico-typha
 | |
|           protocol: TCP
 | |
|         env:
 | |
|           - name: TYPHA_LOGFILEPATH
 | |
|             value: "none"
 | |
|           - name: TYPHA_LOGSEVERITYSYS
 | |
|             value: "none"
 | |
|           - name: TYPHA_LOGSEVERITYSCREEN
 | |
|             value: "info"
 | |
|           - name: TYPHA_PROMETHEUSMETRICSENABLED
 | |
|             value: "true"
 | |
|           - name: TYPHA_CONNECTIONREBALANCINGMODE
 | |
|             value: "kubernetes"
 | |
|           - name: TYPHA_PROMETHEUSMETRICSPORT
 | |
|             value: "9093"
 | |
|           - name: TYPHA_DATASTORETYPE
 | |
|             value: "kubernetes"
 | |
|           - name: TYPHA_MAXCONNECTIONSLOWERLIMIT
 | |
|             value: "1"
 | |
|           - name: TYPHA_HEALTHENABLED
 | |
|             value: "true"
 | |
|         volumeMounts:
 | |
|         - mountPath: /etc/calico
 | |
|           name: etc-calico
 | |
|           readOnly: true
 | |
|         livenessProbe:
 | |
|           httpGet:
 | |
|             path: /liveness
 | |
|             port: 9098
 | |
|           periodSeconds: 30
 | |
|           initialDelaySeconds: 30
 | |
|         readinessProbe:
 | |
|           httpGet:
 | |
|             path: /readiness
 | |
|             port: 9098
 | |
|           periodSeconds: 10
 | |
|       volumes:
 | |
|       - name: etc-calico
 | |
|         hostPath:
 | |
|           path: /etc/calico
 |