mirror of
https://github.com/shadoll/helm-charts.git
synced 2026-08-28 03:27:08 +00:00
chore: Add initial Helm chart for mcp-server-qdrant with deployment, service, ingress, and values configuration
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
apiVersion: v2
|
||||
name: mcp-server-qdrant
|
||||
description: MCP server exposing a Qdrant collection as agent-memory tools (store/find)
|
||||
type: application
|
||||
version: 0.1.0
|
||||
appVersion: "0.8.1"
|
||||
annotations:
|
||||
version-source: github-release:qdrant/mcp-server-qdrant
|
||||
version-pattern: "s|^v||"
|
||||
@@ -0,0 +1,76 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ .Release.Name }}
|
||||
labels:
|
||||
app.kubernetes.io/name: {{ .Chart.Name }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
||||
app.kubernetes.io/component: mcp
|
||||
app.kubernetes.io/part-of: ai-memory
|
||||
annotations:
|
||||
version-source: {{ index .Chart.Annotations "version-source" }}
|
||||
version-pattern: {{ index .Chart.Annotations "version-pattern" | quote }}
|
||||
spec:
|
||||
replicas: 1
|
||||
strategy:
|
||||
type: Recreate
|
||||
selector:
|
||||
matchLabels:
|
||||
app: {{ .Release.Name }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: {{ .Release.Name }}
|
||||
spec:
|
||||
{{- with .Values.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with .Values.tolerations }}
|
||||
tolerations:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: {{ .Chart.Name }}
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.pythonTag }}"
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
pip install --quiet --no-cache-dir "mcp-server-qdrant=={{ .Chart.AppVersion }}"
|
||||
exec mcp-server-qdrant --transport {{ .Values.transport }}
|
||||
ports:
|
||||
- containerPort: {{ .Values.port }}
|
||||
name: http
|
||||
protocol: TCP
|
||||
env:
|
||||
- name: FASTMCP_SERVER_PORT
|
||||
value: {{ .Values.port | quote }}
|
||||
{{- range $key, $value := .Values.env }}
|
||||
- name: {{ $key }}
|
||||
value: {{ $value | quote }}
|
||||
{{- end }}
|
||||
{{- range .Values.secretEnvKeys }}
|
||||
- name: {{ .envName }}
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ $.Values.existingSecret }}
|
||||
key: {{ .secretKey }}
|
||||
{{- end }}
|
||||
# No /health endpoint is exposed by mcp-server-qdrant; use a plain
|
||||
# TCP check against the listening port instead.
|
||||
livenessProbe:
|
||||
tcpSocket:
|
||||
port: http
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 15
|
||||
failureThreshold: 3
|
||||
readinessProbe:
|
||||
tcpSocket:
|
||||
port: http
|
||||
initialDelaySeconds: 15
|
||||
periodSeconds: 10
|
||||
resources:
|
||||
{{- toYaml .Values.resources | nindent 12 }}
|
||||
@@ -0,0 +1,28 @@
|
||||
{{- range $name, $config := .Values.ingresses }}
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: {{ $.Release.Name }}-{{ $name }}
|
||||
{{- with $config.annotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
ingressClassName: traefik
|
||||
rules:
|
||||
- host: {{ $config.host }}
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: {{ $.Release.Name }}
|
||||
port:
|
||||
number: {{ $.Values.port }}
|
||||
{{- with $config.tls }}
|
||||
tls:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
@@ -0,0 +1,16 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ .Release.Name }}
|
||||
labels:
|
||||
app.kubernetes.io/name: {{ .Chart.Name }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: {{ .Release.Name }}
|
||||
ports:
|
||||
- name: http
|
||||
port: {{ .Values.port }}
|
||||
targetPort: http
|
||||
protocol: TCP
|
||||
@@ -0,0 +1,46 @@
|
||||
image:
|
||||
# Uses python:3.12-slim as base; mcp-server-qdrant is installed from PyPI
|
||||
# at container startup, pinned to Chart.appVersion (no official prebuilt
|
||||
# image is published upstream).
|
||||
repository: python
|
||||
pythonTag: "3.12-slim"
|
||||
pullPolicy: IfNotPresent
|
||||
|
||||
port: 8000
|
||||
|
||||
# stdio | sse | streamable-http (see upstream --transport flag)
|
||||
transport: sse
|
||||
|
||||
existingSecret: ""
|
||||
secretEnvKeys: []
|
||||
# - envName: QDRANT_API_KEY
|
||||
# secretKey: QDRANT_API_KEY
|
||||
|
||||
# Additional environment variables (non-secret)
|
||||
env:
|
||||
QDRANT_URL: "http://qdrant:6333"
|
||||
COLLECTION_NAME: "ai-memory"
|
||||
EMBEDDING_PROVIDER: "fastembed"
|
||||
FASTMCP_SERVER_HOST: "0.0.0.0"
|
||||
|
||||
resources:
|
||||
requests:
|
||||
cpu: "100m"
|
||||
memory: "512Mi"
|
||||
limits:
|
||||
cpu: "1"
|
||||
memory: "2Gi"
|
||||
|
||||
nodeSelector: {}
|
||||
|
||||
tolerations: []
|
||||
|
||||
ingresses: {}
|
||||
# https:
|
||||
# host: qdrant-mcp.mcp.example.com
|
||||
# annotations:
|
||||
# traefik.ingress.kubernetes.io/router.tls.certresolver: letsencrypt
|
||||
# traefik.ingress.kubernetes.io/router.tls: "true"
|
||||
# tls:
|
||||
# - hosts:
|
||||
# - qdrant-mcp.mcp.example.com
|
||||
Reference in New Issue
Block a user