Skip to content

Commit d36d6bf

Browse files
committed
Allow health check URLs to be customized
1 parent d433ce9 commit d36d6bf

File tree

4 files changed

+28
-1
lines changed

4 files changed

+28
-1
lines changed

charts/single-container/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.2.3
18+
version: 0.2.4
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

charts/single-container/templates/deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,24 @@ spec:
3636
{{- toYaml .Values.securityContext | nindent 12 }}
3737
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
3838
imagePullPolicy: {{ .Values.image.pullPolicy }}
39+
{{- if not .Values.podspec.ports }}
3940
ports:
4041
- name: http
4142
containerPort: 80
4243
protocol: TCP
44+
{{- end }}
45+
{{- if not .Values.podspec.livenessProbe }}
4346
livenessProbe:
4447
httpGet:
4548
path: /
4649
port: http
50+
{{- end }}
51+
{{- if not .Values.podspec.readinessProbe }}
4752
readinessProbe:
4853
httpGet:
4954
path: /
5055
port: http
56+
{{- end }}
5157
resources:
5258
{{- toYaml .Values.resources | nindent 12 }}
5359
{{- if .Values.podspec }}

charts/single-container/values.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ podspec: {}
3030
# secretKeyRef:
3131
# key: BlobStorage
3232
# name: environment-settings
33+
# livenessProbe:
34+
# httpGet:
35+
# path: /health
36+
# port: http
37+
# readinessProbe:
38+
# httpGet:
39+
# path: /health
40+
# port: http
3341

3442
podAnnotations: {}
3543

samples/staging-cert.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
apiVersion: cert-manager.io/v1
2+
kind: Certificate
3+
metadata:
4+
name: wildcard-cert-stage
5+
namespace: default
6+
spec:
7+
secretName: wildcard-cert-stage
8+
commonName: "*.example.com"
9+
issuerRef:
10+
kind: ClusterIssuer
11+
name: letsencrypt-stage
12+
dnsNames:
13+
- "*.example.com"

0 commit comments

Comments
 (0)