clean up for ontime specific

This commit is contained in:
2025-10-26 13:53:13 -05:00
parent 16a1fb2280
commit 9b13d43a6c
4 changed files with 17 additions and 22 deletions

View File

@@ -32,20 +32,15 @@ spec:
securityContext:
{{- toYaml . | nindent 12 }}
{{- end }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
image: "{{ .Values.image.repository }}:{{ .Values.ontime.version | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
- name: ROUTER_PREFIX
value: {{ .Values.ontime.prefix}}
ports:
- name: http
containerPort: {{ .Values.service.port }}
protocol: TCP
{{- with .Values.livenessProbe }}
livenessProbe:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.readinessProbe }}
readinessProbe:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.resources }}
resources:
{{- toYaml . | nindent 12 }}

View File

@@ -24,22 +24,16 @@ spec:
{{- end }}
{{- end }}
rules:
{{- range .Values.ingress.hosts }}
- http:
paths:
{{- range .paths }}
- path: {{ .path }}
{{- with .pathType }}
pathType: {{ . }}
{{- end }}
- path: /{{ .Values.ontime.prefix}}
pathType: ImplementationSpecific
backend:
service:
name: {{ include "stage.fullname" $ }}
port:
number: {{ $.Values.service.port }}
{{- end }}
{{- if .host }}
{{- if .Values.host }}
host: {{ .host | quote }}
{{- end }}
{{- end }}
{{- end }}

View File

@@ -3,6 +3,10 @@
# This will set the replicaset count more information can be found here: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/
replicaCount: 1
ontime:
version: 4.0.2
prefix: ""
# This sets the container image more information can be found here: https://kubernetes.io/docs/concepts/containers/images/
image:
repository: getontime/ontime
@@ -51,10 +55,6 @@ ingress:
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
hosts:
- paths:
- path: /
pathType: ImplementationSpecific
tls: []
# - secretName: chart-example-tls
# hosts: