Skip to content

Commit

Permalink
fix: oathkeeper probe endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
Demonsthere committed Dec 11, 2024
1 parent b8c46ce commit cd55eef
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 30 deletions.
1 change: 0 additions & 1 deletion helm/charts/oathkeeper/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ A Helm chart for deploying ORY Oathkeeper in Kubernetes
| deployment.extraVolumes | list | `[]` | Extra volumes you can attach to the pod. |
| deployment.labels | object | `{}` | |
| deployment.lifecycle | object | `{}` | |
| deployment.livenessProbe | object | `{"failureThreshold":5,"initialDelaySeconds":5,"periodSeconds":10}` | Configure the livenessProbe parameters |
| deployment.nodeSelector | object | `{}` | Node labels for pod assignment. |
| deployment.podMetadata | object | `{"annotations":{},"labels":{}}` | Specify pod metadata, this metadata is added directly to the pod, and not higher objects |
| deployment.podMetadata.annotations | object | `{}` | Extra pod level annotations |
Expand Down
16 changes: 4 additions & 12 deletions helm/charts/oathkeeper/templates/deployment-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,24 +146,16 @@ spec:
containerPort: {{ .Values.oathkeeper.config.serve.prometheus.port }}
lifecycle:
{{- toYaml .Values.deployment.lifecycle | nindent 12 }}
{{- if .Values.deployment.customLivenessProbe }}
livenessProbe:
{{- if .Values.deployment.customLivenessProbe }}
{{- toYaml .Values.deployment.customLivenessProbe | nindent 12 }}
{{- else }}
httpGet:
path: /health/alive
port: http-api
httpHeaders:
- name: Host
value: '127.0.0.1'
{{- toYaml .Values.deployment.livenessProbe | nindent 12 }}
{{- end }}
{{- toYaml .Values.deployment.customLivenessProbe | nindent 12 }}
{{- end }}
readinessProbe:
{{- if .Values.deployment.customReadinessProbe }}
{{- toYaml .Values.deployment.customReadinessProbe | nindent 12 }}
{{- else }}
httpGet:
path: /health/ready
path: /health/alive
port: http-api
httpHeaders:
- name: Host
Expand Down
16 changes: 4 additions & 12 deletions helm/charts/oathkeeper/templates/deployment-sidecar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,24 +124,16 @@ spec:
- name: http-metrics
protocol: TCP
containerPort: {{ .Values.oathkeeper.config.serve.prometheus.port }}
{{- if .Values.deployment.customLivenessProbe }}
livenessProbe:
{{- if .Values.deployment.customLivenessProbe }}
{{- toYaml .Values.deployment.customLivenessProbe | nindent 12 }}
{{- else }}
httpGet:
path: /health/alive
port: http-api
httpHeaders:
- name: Host
value: '127.0.0.1'
{{- toYaml .Values.deployment.livenessProbe | nindent 12 }}
{{- end }}
{{- toYaml .Values.deployment.customLivenessProbe | nindent 12 }}
{{- end }}
readinessProbe:
{{- if .Values.deployment.customReadinessProbe }}
{{- toYaml .Values.deployment.customReadinessProbe | nindent 12 }}
{{- else }}
httpGet:
path: /health/ready
path: /health/alive
port: http-api
httpHeaders:
- name: Host
Expand Down
5 changes: 0 additions & 5 deletions helm/charts/oathkeeper/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -250,11 +250,6 @@ deployment:
# memory: 128Mi

lifecycle: {}
# -- Configure the livenessProbe parameters
livenessProbe:
initialDelaySeconds: 5
periodSeconds: 10
failureThreshold: 5
# -- Configure the readinessProbe parameters
readinessProbe:
initialDelaySeconds: 5
Expand Down

0 comments on commit cd55eef

Please sign in to comment.