Allow more configuration of celery liveness probe
This commit is contained in:
		
							parent
							
								
									466648631f
								
							
						
					
					
						commit
						3099e678fc
					
				
					 2 changed files with 11 additions and 13 deletions
				
			
		| 
						 | 
					@ -41,13 +41,9 @@ spec:
 | 
				
			||||||
            {{- toYaml .Values.securityContext | nindent 12 }}
 | 
					            {{- toYaml .Values.securityContext | nindent 12 }}
 | 
				
			||||||
          image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
 | 
					          image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
 | 
				
			||||||
          imagePullPolicy: {{ .Values.image.pullPolicy }}
 | 
					          imagePullPolicy: {{ .Values.image.pullPolicy }}
 | 
				
			||||||
          {{- if .Values.worker.livenessProbe.enabled }}
 | 
					          {{- if .Values.worker.livenessProbe }}
 | 
				
			||||||
          livenessProbe:
 | 
					          livenessProbe:
 | 
				
			||||||
            initialDelaySeconds: {{ .Values.worker.livenessProbe.initialDelaySeconds }}
 | 
					            {{- .Values.worker.livenessProbe | toYaml | nindent 12 }}
 | 
				
			||||||
            periodSeconds: {{ .Values.worker.livenessProbe.periodSeconds }}
 | 
					 | 
				
			||||||
            timeoutSeconds: {{ .Values.worker.livenessProbe.timeoutSeconds }}
 | 
					 | 
				
			||||||
            exec:
 | 
					 | 
				
			||||||
              command: {{- toYaml .Values.worker.livenessProbe.command | nindent 14 }}
 | 
					 | 
				
			||||||
          {{- end }}
 | 
					          {{- end }}
 | 
				
			||||||
          resources:
 | 
					          resources:
 | 
				
			||||||
            {{- toYaml .Values.worker.resources | nindent 12 }}
 | 
					            {{- toYaml .Values.worker.resources | nindent 12 }}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										16
									
								
								values.yaml
									
										
									
									
									
								
							
							
						
						
									
										16
									
								
								values.yaml
									
										
									
									
									
								
							| 
						 | 
					@ -97,13 +97,15 @@ worker:
 | 
				
			||||||
    maxReplicas: 100
 | 
					    maxReplicas: 100
 | 
				
			||||||
    targetCPUUtilizationPercentage: 90
 | 
					    targetCPUUtilizationPercentage: 90
 | 
				
			||||||
    # targetMemoryUtilizationPercentage: 80
 | 
					    # targetMemoryUtilizationPercentage: 80
 | 
				
			||||||
  livenessProbe:
 | 
					  livenessProbe: {}
 | 
				
			||||||
    enabled: false
 | 
					    # initialDelaySeconds: 10
 | 
				
			||||||
    initialDelaySeconds: 30
 | 
					    # periodSeconds: 60
 | 
				
			||||||
    periodSeconds: 300
 | 
					    # timeoutSeconds: 30
 | 
				
			||||||
    timeoutSeconds: 30
 | 
					    # exec:
 | 
				
			||||||
    command: 
 | 
					    #   command:
 | 
				
			||||||
      - "celery -A django inspect ping -d celery@$HOSTNAME"
 | 
					    #     - "bash"
 | 
				
			||||||
 | 
					    #     - "-c"
 | 
				
			||||||
 | 
					    #     - "celery -A django inspect ping -d celery@$HOSTNAME | grep -q OK"
 | 
				
			||||||
  resources:
 | 
					  resources:
 | 
				
			||||||
    limits:
 | 
					    limits:
 | 
				
			||||||
      cpu: 900m
 | 
					      cpu: 900m
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue