Add PodDisruptionBudget
This commit is contained in:
		
							parent
							
								
									fe4006e693
								
							
						
					
					
						commit
						6ea93893cf
					
				
					 2 changed files with 16 additions and 0 deletions
				
			
		
							
								
								
									
										14
									
								
								templates/pdb.yaml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								templates/pdb.yaml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,14 @@
 | 
				
			||||||
 | 
					{{- if .Values.web.budget.minAvailable -}}
 | 
				
			||||||
 | 
					apiVersion: policy/v1beta1
 | 
				
			||||||
 | 
					kind: PodDisruptionBudget
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: {{ include "glitchtip.fullname" . }}
 | 
				
			||||||
 | 
					  labels:
 | 
				
			||||||
 | 
					    {{- include "glitchtip.labels" . | nindent 4 }}
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  minAvailable: {{ .Values.web.budget.minAvailable }}
 | 
				
			||||||
 | 
					  selector:
 | 
				
			||||||
 | 
					    matchLabels:
 | 
				
			||||||
 | 
					      {{- include "glitchtip.selectorLabels" . | nindent 6 }}
 | 
				
			||||||
 | 
					      role: web
 | 
				
			||||||
 | 
					{{- end -}}
 | 
				
			||||||
| 
						 | 
					@ -28,6 +28,8 @@ web:
 | 
				
			||||||
    cputhreshold: 70
 | 
					    cputhreshold: 70
 | 
				
			||||||
    minpods: 2
 | 
					    minpods: 2
 | 
				
			||||||
    maxpods: 4
 | 
					    maxpods: 4
 | 
				
			||||||
 | 
					  budget:
 | 
				
			||||||
 | 
					    minAvailable: 1
 | 
				
			||||||
  resources:
 | 
					  resources:
 | 
				
			||||||
    {}
 | 
					    {}
 | 
				
			||||||
    # limits:
 | 
					    # limits:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue