Files
2026-01-25 09:54:53 -08:00

62 lines
2.0 KiB
YAML

# Example Helm values.yaml configuration for ComfyUI with MQTT Node
# Add these sections to your existing ComfyUI Helm chart values
# If your chart doesn't have initContainers defined, add this section
initContainers:
- name: install-mqtt-node
image: busybox:latest # Lightweight image for file operations
command:
- sh
- -c
- |
echo "Installing ComfyUI MQTT Node..."
mkdir -p /comfyui/custom_nodes/comfyui-mqtt-node
cp -v /mqtt-node-source/* /comfyui/custom_nodes/comfyui-mqtt-node/
echo "MQTT Node files copied successfully"
ls -la /comfyui/custom_nodes/comfyui-mqtt-node/
volumeMounts:
- name: mqtt-node-config
mountPath: /mqtt-node-source
- name: custom-nodes
mountPath: /comfyui/custom_nodes
- name: install-mqtt-dependencies
# Use the same Python image as your main ComfyUI container
image: your-comfyui-image:tag # Replace with your actual image
command:
- sh
- -c
- |
echo "Installing MQTT node Python dependencies..."
pip install --no-cache-dir paho-mqtt>=1.6.1
echo "Dependencies installed successfully"
# If your dependencies persist, you might not need this on every restart
# Volume definitions
volumes:
- name: mqtt-node-config
configMap:
name: comfyui-mqtt-node
- name: custom-nodes
emptyDir: {} # Or use persistentVolumeClaim if you want persistence
# Main container volumeMounts (add to existing volumeMounts)
volumeMounts:
- name: custom-nodes
mountPath: /app/custom_nodes # Adjust path to your ComfyUI custom_nodes directory
# Common paths:
# - /app/custom_nodes
# - /comfyui/custom_nodes
# - /workspace/ComfyUI/custom_nodes
# Alternative: If using a persistent volume for custom nodes
# persistentVolumeClaim:
# - name: custom-nodes-pvc
# spec:
# accessModes:
# - ReadWriteOnce
# resources:
# requests:
# storage: 1Gi
# storageClassName: standard # or your storage class