Skip to content

Commit

Permalink
Make livenessprobe configurable (#10)
Browse files Browse the repository at this point in the history
* Make livenessprobe configurable

* Fixup mistake in README.md
  • Loading branch information
Dutchy- authored Dec 9, 2021
1 parent 89c98ed commit 38960b2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
6 changes: 6 additions & 0 deletions charts/ecr-exporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,9 @@ helm install ecr-exporter aws-exporters/ecr-exporter
| serviceAccount.create | bool | `true` | |
| serviceAccount.name | string | `""` | |
| tolerations | list | `[]` | |
| livenessProbe.httpGet.path | string | `"/metrics"` | |
| livenessProbe.httpGet.port | string | `"http"` | |
| livenessProbe.initialDelaySecond | int | `30` | |
| livenessProbe.periodSeconds | int | `10` | |
| livenessProbe.timeoutSeconds | int | `5` | |

6 changes: 1 addition & 5 deletions charts/ecr-exporter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,7 @@ spec:
containerPort: 9000
protocol: TCP
livenessProbe:
httpGet:
path: /metrics
port: http
periodSeconds: 10
timeoutSeconds: 5
{{- toYaml .Values.livenessProbe | nindent 12 }}
readinessProbe:
httpGet:
path: /metrics
Expand Down
8 changes: 8 additions & 0 deletions charts/ecr-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,11 @@ env: []
# value: "112233445566"
# - name: CACHE_REFRESH_INTERVAL
# value: "3600"

livenessProbe:
httpGet:
path: /metrics
port: http
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 5

0 comments on commit 38960b2

Please sign in to comment.