Skip to content

Commit

Permalink
Allow override probe configuration for policy-reporter (#67)
Browse files Browse the repository at this point in the history
* allow override probe configuration for policy-reporter

Signed-off-by: windowsrefund <mac>
  • Loading branch information
windowsrefund authored Sep 8, 2021
1 parent 9a20f1c commit b9224fa
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
8 changes: 2 additions & 6 deletions charts/policy-reporter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,9 @@ spec:
containerPort: 8080
protocol: TCP
livenessProbe:
httpGet:
path: /ready
port: rest
{{- toYaml .Values.livenessProbe | nindent 12 }}
readinessProbe:
httpGet:
path: /healthz
port: rest
{{- toYaml .Values.readinessProbe | nindent 12 }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
Expand Down
12 changes: 12 additions & 0 deletions charts/policy-reporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -185,3 +185,15 @@ tolerations: []

# Anti-affinity to disallow deploying client and master nodes on the same worker node
affinity: {}

# livenessProbe for policy-reporter
livenessProbe:
httpGet:
path: /ready
port: rest

# readinessProbe for policy-reporter
readinessProbe:
httpGet:
path: /healthz
port: rest

0 comments on commit b9224fa

Please sign in to comment.