Files

60 lines
1.7 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "redmine-mcp.name" . }}
labels:
{{- include "redmine-mcp.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
{{- include "redmine-mcp.selectorLabels" . | nindent 6 }}
template:
metadata:
labels:
{{- include "redmine-mcp.labels" . | nindent 8 }}
spec:
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
containerPort: 8000
protocol: TCP
envFrom:
- secretRef:
name: {{ include "redmine-mcp.secretName" . }}
env:
- name: MCP_TRANSPORT
value: http
- name: MCP_HOST
value: "0.0.0.0"
- name: MCP_PORT
value: "8000"
livenessProbe:
tcpSocket:
port: http
initialDelaySeconds: 20
periodSeconds: 10
failureThreshold: 5
readinessProbe:
tcpSocket:
port: http
initialDelaySeconds: 3
periodSeconds: 5
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}