dumpnet-argo/charts/forgejo-mcp/templates/forgejo-mcp.yaml

98 lines
2.1 KiB
YAML
Raw Normal View History

2026-08-22 12:36:58 -04:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: forgejo-mcp
namespace: mcp
spec:
replicas: 1
selector:
matchLabels:
app: forgejo-mcp
template:
metadata:
labels:
app: forgejo-mcp
spec:
securityContext:
runAsNonRoot: true
runAsUser: 1000
seccompProfile:
type: RuntimeDefault
containers:
- name: forgejo-mcp
image: richarvey/forgejo-mcp:latest
ports:
- containerPort: 3000
env:
- name: FORGEJO_URL
value: https://forge.keane.sh
- name: PORT
value: "3000"
- name: RATE_LIMIT_MAX
value: "100"
- name: RATE_LIMIT_WINDOW_MS
value: "60000"
envFrom:
- secretRef:
name: forgejo-mcp-secrets
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop: ["ALL"]
readOnlyRootFilesystem: true
volumeMounts:
- name: tmp
mountPath: /tmp
readinessProbe:
httpGet:
path: /health
port: 3000
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
httpGet:
path: /health
port: 3000
initialDelaySeconds: 15
periodSeconds: 30
volumes:
- name: tmp
emptyDir: {}
---
apiVersion: v1
kind: Service
metadata:
name: forgejo-mcp
namespace: mcp
spec:
selector:
app: forgejo-mcp
ports:
- port: 80
targetPort: 3000
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: forgejo-mcp
namespace: mcp
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
spec:
ingressClassName: nginx
tls:
- hosts:
- git-mcp.dumpnet.chat
secretName: forgejo-mcp-tls
rules:
- host: git-mcp.dumpnet.chat
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: forgejo-mcp
port:
number: 80