Compare commits
9 Commits
8f0c68b24a
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 641ee6a8b6 | |||
| 1f8780481f | |||
| 37fa20c1ec | |||
| 512d36c7b4 | |||
| 791e6ca324 | |||
| b9fcd8cf96 | |||
| 3fc3765da6 | |||
| 55e174783d | |||
| 88dd25ed86 |
@@ -5,4 +5,4 @@ kind: Kustomization
|
||||
images:
|
||||
- name: controller
|
||||
newName: git.jwetzell.com/jwetzell/ontime-operator
|
||||
newTag: v1.4.0
|
||||
newTag: v1.6.2
|
||||
|
||||
@@ -61,8 +61,8 @@ rules:
|
||||
- verbs:
|
||||
- "*"
|
||||
apiGroups:
|
||||
- "networking.k8s.io"
|
||||
- "gateway.networking.k8s.io"
|
||||
resources:
|
||||
- "ingresses"
|
||||
- "httproutes"
|
||||
|
||||
# +kubebuilder:scaffold:rules
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
apiVersion: v2
|
||||
appVersion: v4.0.1
|
||||
description: A Helm chart for Kubernetes
|
||||
appVersion: v4.1.0
|
||||
description: A Helm chart for Ontime
|
||||
name: stage
|
||||
type: application
|
||||
version: 1.4.0
|
||||
version: 1.6.2
|
||||
|
||||
@@ -53,6 +53,10 @@ spec:
|
||||
- name: http
|
||||
containerPort: {{ .Values.service.port }}
|
||||
protocol: TCP
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /{{ .Values.ontime.prefix }}/health
|
||||
port: 4001
|
||||
{{- with .Values.resources }}
|
||||
resources:
|
||||
{{- toYaml . | nindent 12 }}
|
||||
|
||||
18
helm-charts/stage/templates/http-route.yaml
Normal file
18
helm-charts/stage/templates/http-route.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: HTTPRoute
|
||||
metadata:
|
||||
name: {{ include "stage.fullname" . }}
|
||||
spec:
|
||||
parentRefs:
|
||||
- name: {{ .Values.gateway.name }}
|
||||
namespace: {{ .Values.gateway.namespace }}
|
||||
sectionName: {{ .Values.gateway.sectionName }}
|
||||
rules:
|
||||
- backendRefs:
|
||||
- name: {{ include "stage.fullname" $ }}
|
||||
port: {{ $.Values.service.port }}
|
||||
matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: /{{ .Values.ontime.prefix}}
|
||||
@@ -1,33 +0,0 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: {{ include "stage.fullname" . }}
|
||||
labels:
|
||||
{{- include "stage.labels" . | nindent 4 }}
|
||||
annotations:
|
||||
{{- if .Values.ingress.tls.issuer }}
|
||||
cert-manager.io/cluster-issuer: {{ .Values.ingress.tls.issuer}}
|
||||
{{- end}}
|
||||
spec:
|
||||
{{- with .Values.ingress.className }}
|
||||
ingressClassName: {{ . }}
|
||||
{{- end }}
|
||||
rules:
|
||||
- http:
|
||||
paths:
|
||||
- path: /{{ .Values.ontime.prefix}}
|
||||
pathType: ImplementationSpecific
|
||||
backend:
|
||||
service:
|
||||
name: {{ include "stage.fullname" $ }}
|
||||
port:
|
||||
number: {{ $.Values.service.port }}
|
||||
{{- if .Values.ingress.hostname }}
|
||||
host: {{ .Values.ingress.hostname | quote }}
|
||||
{{- if .Values.ingress.tls.enabled }}
|
||||
tls:
|
||||
- hosts:
|
||||
- {{ .Values.ingress.hostname | quote }}
|
||||
secretName: {{ include "stage.fullname" . }}-cert
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
@@ -5,7 +5,7 @@ replicaCount: 1
|
||||
|
||||
|
||||
ontime:
|
||||
version: 4.0.2
|
||||
version: v4.1.0
|
||||
# prefix: ""
|
||||
# timezone: "UTC"
|
||||
# password: "password"
|
||||
@@ -42,13 +42,10 @@ service:
|
||||
type: ClusterIP
|
||||
port: 4001
|
||||
|
||||
# This block is for setting up the ingress for more information can be found here: https://kubernetes.io/docs/concepts/services-networking/ingress/
|
||||
ingress:
|
||||
className: ""
|
||||
# hostname: "ontime.example.com"
|
||||
tls:
|
||||
enabled: false
|
||||
issuer: ''
|
||||
gateway:
|
||||
name: "ontime"
|
||||
namespace: "kube-system"
|
||||
sectionName: "https"
|
||||
|
||||
resources: {}
|
||||
# We usually recommend not to specify default resources and to leave this as a conscious
|
||||
|
||||
Reference in New Issue
Block a user