🔖 Checkpoint: Edit /home/eric/IdeaProjects/claude-flow/docs/DEPLOYMENT.md

This commit is contained in:
Eric Vogt committed 2025-08-13 20:51:42 +02:00
1 parent 6bff748cd2
commit 3edcd48683
4 files changed
+74 -16

No files matched your search

+1
View File
@@ -0,0 +1 @@
{"branch": "checkpoint/pre-edit-20250813-205120", "file": "/home/eric/IdeaProjects/claude-flow/docs/DEPLOYMENT.md", "timestamp": "2025-08-13T18:51:20Z", "type": "pre-edit", "original_branch": "fix_readme-and-documentation"}
+1
View File
@@ -0,0 +1 @@
{"tag": "checkpoint-20250813-205125", "file": "/home/eric/IdeaProjects/claude-flow/docs/DEPLOYMENT.md", "timestamp": "2025-08-13T18:51:25Z", "type": "post-edit", "branch": "fix_readme-and-documentation", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/task-metrics.json | 6 +- .claude/checkpoints/1755111032.json | 1 + docs/DEPLOYMENT.md | 159 ++++++++++++++++++--------------- 4 files changed, 94 insertions(+), 74 deletions(-) "}
+1
View File
@@ -0,0 +1 @@
{"branch": "checkpoint/pre-edit-20250813-205137", "file": "/home/eric/IdeaProjects/claude-flow/docs/DEPLOYMENT.md", "timestamp": "2025-08-13T18:51:37Z", "type": "pre-edit", "original_branch": "fix_readme-and-documentation"}
+71 -16
View File
@@ -795,27 +795,82 @@ spec:
number: 8080
```
### Service Manifest
#### Persistent Volumes and HPA
```yaml
# k8s/pvc.yaml
apiVersion: v1
kind: Service
kind: PersistentVolumeClaim
metadata:
name: claude-flow-service
namespace: default
name: claude-flow-data-pvc
namespace: claude-flow
spec:
type: LoadBalancer
selector:
app: claude-flow
ports:
- port: 80
targetPort: 3000
protocol: TCP
name: http
- port: 8080
targetPort: 8080
protocol: TCP
name: mcp
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 20Gi
storageClassName: gp3
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: claude-flow-memory-pvc
namespace: claude-flow
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
storageClassName: gp3
---
# k8s/hpa.yaml
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: claude-flow-hpa
namespace: claude-flow
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: claude-flow
minReplicas: 3
maxReplicas: 20
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 70
- type: Resource
resource:
name: memory
target:
type: Utilization
averageUtilization: 80
- type: Pods
pods:
metric:
name: custom_metric_requests_per_second
target:
type: AverageValue
averageValue: "50"
behavior:
scaleUp:
stabilizationWindowSeconds: 60
policies:
- type: Percent
value: 50
periodSeconds: 60
scaleDown:
stabilizationWindowSeconds: 300
policies:
- type: Percent
value: 10
periodSeconds: 60
```
### ConfigMap