apiVersion: apps/v1
kind: Deployment
metadata:
  name: mcp-filesystem
  namespace: tools-mcp
  labels:
    app.kubernetes.io/name: mcp-filesystem
spec:
  replicas: 1
  selector:
    matchLabels:
      app.kubernetes.io/name: mcp-filesystem
  template:
    metadata:
      labels:
        app.kubernetes.io/name: mcp-filesystem
    spec:
      containers:
        - name: mcp
          image: 192.168.8.250:5000/agentic-os/mcp-filesystem:latest
          imagePullPolicy: IfNotPresent
          env:
            - name: MCP_FS_BUCKET
              value: agent-workspaces
            - name: AWS_ENDPOINT_URL
              value: http://minio.platform-data.svc.cluster.local:9000
            - name: AWS_REGION
              value: us-east-1
            - name: AWS_ACCESS_KEY_ID
              valueFrom:
                secretKeyRef:
                  name: mcp-filesystem-minio
                  key: access_key
            - name: AWS_SECRET_ACCESS_KEY
              valueFrom:
                secretKeyRef:
                  name: mcp-filesystem-minio
                  key: secret_key
            - name: HOST
              value: "0.0.0.0"
            - name: PORT
              value: "8080"
          ports:
            - containerPort: 8080
              name: mcp
          readinessProbe:
            tcpSocket:
              port: 8080
            initialDelaySeconds: 3
            periodSeconds: 10
          resources:
            requests:
              cpu: 100m
              memory: 256Mi
            limits:
              cpu: "1"
              memory: 512Mi
