chore(deploy): add resource limits and pod disruption budget
this is useful for HPA Signed-off-by: SphericalKat <amolele@gmail.com>
This commit is contained in:
		
							parent
							
								
									81e2b36330
								
							
						
					
					
						commit
						5c9c40aada
					
				@ -43,4 +43,9 @@ spec:
 | 
			
		||||
          ports:
 | 
			
		||||
            - containerPort: 5000
 | 
			
		||||
              name: katbin-service
 | 
			
		||||
          resources:
 | 
			
		||||
            limits:
 | 
			
		||||
              cpu: 500m
 | 
			
		||||
            requests:
 | 
			
		||||
              cpu: 200m
 | 
			
		||||
          imagePullPolicy: Always
 | 
			
		||||
							
								
								
									
										9
									
								
								deployment/pod-disruption-budget.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								deployment/pod-disruption-budget.yml
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,9 @@
 | 
			
		||||
apiVersion: policy/v1
 | 
			
		||||
kind: PodDisruptionBudget
 | 
			
		||||
metadata:
 | 
			
		||||
  name: katbin-service-podbudget
 | 
			
		||||
spec:
 | 
			
		||||
  maxUnavailable: 0
 | 
			
		||||
  selector:
 | 
			
		||||
    matchLabels:
 | 
			
		||||
      app.kubernetes.io/name: katbin-service
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user