Skip to content

Commit

Permalink
Explicitly specify liveness and readiness probe ports
Browse files Browse the repository at this point in the history
  • Loading branch information
ubergesundheit committed Oct 22, 2024
1 parent a6e83ae commit 55aa40d
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 12 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project's packages adheres to [Semantic Versioning](http://semver.org/s

## [Unreleased]

### Changed

- Explicitly expose liveness and readiness probe ports in deployments.

## [1.22.0] - 2024-09-10

### Changed
Expand Down
12 changes: 6 additions & 6 deletions helm/coredns-app/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ data:
template ANY AAAA {
rcode NOERROR
}
health {
health :8080 {
lameduck 5s
}
ready
ready :8181
log . {
{{- range (.Values.configmap.log | trimAll "\n " | split "\n") }}
class {{ . }}
Expand Down Expand Up @@ -56,10 +56,10 @@ data:
rcode NOERROR
}
cache
health {
health :8080 {
lameduck 5s
}
ready
ready :8181
kubernetes {{ $domain }} {{- if (regexMatch ".local$" $domain ) }} {{ $clusterIPRange }} {{ $calicoCIDR }} {{- end }} {
pods verified
}
Expand All @@ -84,10 +84,10 @@ data:
rcode NOERROR
}
cache
health {
health :8080 {
lameduck 5s
}
ready
ready :8181
kubernetes {{ $domain }} {
pods verified
}
Expand Down
12 changes: 9 additions & 3 deletions helm/coredns-app/templates/deployment-masters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,20 @@ spec:
- containerPort: {{ .Values.ports.prometheus }}
name: http-metrics
protocol: TCP
- containerPort: 8080
name: health
protocol: TCP
- containerPort: 8181
name: ready
protocol: TCP
{{- with .Values.resources }}
resources:
resources:
{{- toYaml . | nindent 10 }}
{{- end }}
livenessProbe:
httpGet:
path: /health
port: 8080
port: health
scheme: HTTP
initialDelaySeconds: 60
timeoutSeconds: 5
Expand All @@ -107,7 +113,7 @@ spec:
readinessProbe:
httpGet:
path: /ready
port: 8181
port: ready
scheme: HTTP
initialDelaySeconds: 10
timeoutSeconds: 5
Expand Down
12 changes: 9 additions & 3 deletions helm/coredns-app/templates/deployment-workers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,20 @@ spec:
- containerPort: {{ .Values.ports.prometheus }}
name: http-metrics
protocol: TCP
- containerPort: 8080
name: health
protocol: TCP
- containerPort: 8181
name: ready
protocol: TCP
{{- with .Values.resources }}
resources:
resources:
{{- toYaml . | nindent 10 }}
{{- end }}
livenessProbe:
httpGet:
path: /health
port: 8080
port: health
scheme: HTTP
initialDelaySeconds: 60
timeoutSeconds: 5
Expand All @@ -91,7 +97,7 @@ spec:
readinessProbe:
httpGet:
path: /ready
port: 8181
port: ready
scheme: HTTP
initialDelaySeconds: 10
timeoutSeconds: 5
Expand Down

0 comments on commit 55aa40d

Please sign in to comment.