Files
dap-was-dapms/deploy/helm/mcp-server/templates/route.yaml
koseokmin 4f60f4f01b GitOps 이전까지 쓸 배포 파이프라인과 Portal 모드 Chart를 추가한다
GitOps 저장소도 ArgoCD Application도 아직 없어, 그때까지 이 저장소가
push 방식 파이프라인(.gitea/workflows/)을 임시로 소유한다. 무엇을
포기하는지와 넘길 때 할 일은 deploy/README.md에 적었다.

Chart는 portal과 bundles 두 배포 모델을 모두 렌더링한다. ADR-0013이
ADR-0007을 대체했으므로 운영은 portal이 기준이지만, bundles 경로를
언제 삭제할지는 아직 정하지 않았다.

- .gitea/workflows/ci.yaml, deploy-openshift.yaml
- deploy/ci/render-manifests.sh, deploy/examples/
- Chart: mode 분기, selectedDeployment/tier helper, imagePullSecrets,
  toolService.apiKeySecret 참조
- extension-points.md에 미결 항목 9~12 추가

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 11:03:04 +09:00

27 lines
957 B
YAML

{{- include "mcp-server.validate" . }}
{{- $deployment := include "mcp-server.selectedDeployment" . | fromYaml }}
# OpenShift Route의 path는 prefix 매칭이다. portal 모드에서 path가 "/mcp"이면
# /mcp/{routeKey} 전체가 이 Route 하나로 들어오고, route 구분은 컨테이너가 한다(ADR-0013).
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