nginx removed
This commit is contained in:
parent
d9186f80cc
commit
96efc1f62a
50
hades/templates/httproute.yaml
Normal file
50
hades/templates/httproute.yaml
Normal file
@ -0,0 +1,50 @@
|
||||
{{- if .Values.httpRoute.enabled -}}
|
||||
{{- $fullName := include "hades.fullname" . -}}
|
||||
{{- $svcPort := .Values.service.port -}}
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: HTTPRoute
|
||||
metadata:
|
||||
name: {{ $fullName }}
|
||||
labels:
|
||||
{{- include "hades.labels" . | nindent 4 }}
|
||||
{{- with .Values.httpRoute.annotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
parentRefs:
|
||||
{{- with .Values.httpRoute.parentRefs }}
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- with .Values.httpRoute.hostnames }}
|
||||
hostnames:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
rules:
|
||||
{{- if .Values.httpRoute.rules }}
|
||||
{{- range .Values.httpRoute.rules }}
|
||||
- matches:
|
||||
{{- with .matches }}
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with .filters }}
|
||||
filters:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
backendRefs:
|
||||
- name: {{ $fullName }}
|
||||
port: {{ $svcPort }}
|
||||
weight: 1
|
||||
{{- end }}
|
||||
{{- else }}
|
||||
# Default rule if no custom rules provided
|
||||
- matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: /
|
||||
backendRefs:
|
||||
- name: {{ $fullName }}
|
||||
port: {{ $svcPort }}
|
||||
weight: 1
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
@ -45,11 +45,11 @@ service:
|
||||
targetPort: 8080
|
||||
annotations: {}
|
||||
|
||||
# Ingress configuration (DEPRECATED - use httpRoute below instead)
|
||||
ingress:
|
||||
enabled: false
|
||||
className: ""
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
||||
annotations: {}
|
||||
hosts:
|
||||
- host: hades.local
|
||||
paths:
|
||||
@ -57,6 +57,24 @@ ingress:
|
||||
pathType: Prefix
|
||||
tls: []
|
||||
|
||||
# Gateway API HTTPRoute configuration (modern replacement for Ingress)
|
||||
httpRoute:
|
||||
enabled: false
|
||||
annotations: {}
|
||||
# Reference to the Gateway that will handle this route
|
||||
parentRefs:
|
||||
- name: main-gateway
|
||||
namespace: traefik
|
||||
sectionName: https
|
||||
# Hostnames for this route
|
||||
hostnames: []
|
||||
# Optional: Custom routing rules (if not specified, defaults to PathPrefix /)
|
||||
# rules:
|
||||
# - matches:
|
||||
# - path:
|
||||
# type: PathPrefix
|
||||
# value: /
|
||||
|
||||
resources:
|
||||
limits:
|
||||
cpu: 2000m
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user