apiVersion: v1
kind: Service
metadata:
  name: fs-tidb-mgmt-portal
  namespace: tidb-management-service
  labels:
    app: fs-tidb-mgmt-portal
  annotations:
    konghq.com/path: /fs
spec:
  ports:
    - name: service
      port: 80
      targetPort: 8080
  selector:
    app: tidb-mgmt-portal
  type: NodePort
---
# The UI service has no konghq.com/path prefix: console UI requests
# (/api/v2025/fs/v1beta2/...) are forwarded to the portal as-is.
apiVersion: v1
kind: Service
metadata:
  name: fs-tidb-mgmt-portal-ui
  namespace: tidb-management-service
  labels:
    app: fs-tidb-mgmt-portal-ui
spec:
  ports:
    - name: service
      port: 80
      targetPort: 8080
  selector:
    app: tidb-mgmt-portal
  type: NodePort
