Initial commit
This commit is contained in:
24
deploy/helm/mcp-server/templates/route.yaml
Normal file
24
deploy/helm/mcp-server/templates/route.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
{{- include "mcp-server.validate" . }}
|
||||
{{- $deployment := index .Values.deployments .Values.deploymentKey }}
|
||||
apiVersion: route.openshift.io/v1
|
||||
kind: Route
|
||||
metadata:
|
||||
name: {{ include "mcp-server.name" . }}
|
||||
labels:
|
||||
{{- include "mcp-server.labels" . | nindent 4 }}
|
||||
annotations:
|
||||
haproxy.router.openshift.io/timeout: {{ .Values.route.timeout }}
|
||||
haproxy.router.openshift.io/ip_allowlist: {{ .Values.route.sourceAllowlist | quote }}
|
||||
spec:
|
||||
host: {{ .Values.global.mcpHost | quote }}
|
||||
path: {{ $deployment.publicPath | quote }}
|
||||
to:
|
||||
kind: Service
|
||||
name: {{ include "mcp-server.name" . }}
|
||||
weight: 100
|
||||
port:
|
||||
targetPort: http
|
||||
tls:
|
||||
termination: edge
|
||||
insecureEdgeTerminationPolicy: Redirect
|
||||
wildcardPolicy: None
|
||||
Reference in New Issue
Block a user