mcp
This commit is contained in:
50
tasks/mcp.yaml
Normal file
50
tasks/mcp.yaml
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
- name: deploy mcp
|
||||||
|
k8s:
|
||||||
|
definition:
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: mcp
|
||||||
|
namespace: gitea
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: mcp
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: mcp
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: mcp
|
||||||
|
image: gitea/gitea-mcp-server
|
||||||
|
env:
|
||||||
|
- name: GITEA_HOST
|
||||||
|
value: https://gitea.eom.dev
|
||||||
|
- name: GITEA_INSECURE
|
||||||
|
value: false
|
||||||
|
- name: GITEA_ACCESS_TOKEN
|
||||||
|
value: "{{ localai_gitea_access_token }}"
|
||||||
|
- name: MCP_MODE
|
||||||
|
value: http
|
||||||
|
ports:
|
||||||
|
- containerPort: 8080
|
||||||
|
|
||||||
|
- name: service for mcp
|
||||||
|
k8s:
|
||||||
|
definition:
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: mcp
|
||||||
|
namespace: gitea
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: mcp
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
name: http
|
||||||
|
targetPort: 8080
|
||||||
|
type: ClusterIP
|
||||||
|
|
||||||
Reference in New Issue
Block a user