- Created 5-node KIND cluster (1 control-plane + 4 workers) - Configured NodePort mappings for console access (30080, 30081) - Created namespace separation (site11-console, site11-pipeline) - Deployed MongoDB and Redis in KIND cluster - Deployed Console backend and frontend with NodePort services - All 4 pods running successfully and verified with browser test Infrastructure: - k8s/kind-dev-cluster.yaml: 5-node cluster configuration - k8s/kind/console-mongodb-redis.yaml: Database deployments - k8s/kind/console-backend.yaml: Backend with NodePort - k8s/kind/console-frontend.yaml: Frontend with NodePort Management Tools: - scripts/kind-setup.sh: Comprehensive cluster management script - docker-compose.kubernetes.yml: Monitoring helper services Documentation: - KUBERNETES.md: Complete usage guide for developers - docs/KIND_SETUP.md: Detailed KIND setup documentation - docs/PROGRESS.md: Updated with KIND cluster completion Console Services Access: - Frontend: http://localhost:3000 (NodePort 30080) - Backend: http://localhost:8000 (NodePort 30081) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
80 lines
1.8 KiB
YAML
80 lines
1.8 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: console-backend
|
|
namespace: site11-console
|
|
labels:
|
|
app: console-backend
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: console-backend
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: console-backend
|
|
spec:
|
|
nodeSelector:
|
|
workload: console
|
|
containers:
|
|
- name: console-backend
|
|
image: yakenator/site11-console-backend:latest
|
|
imagePullPolicy: IfNotPresent
|
|
ports:
|
|
- containerPort: 8000
|
|
protocol: TCP
|
|
env:
|
|
- name: ENV
|
|
value: "development"
|
|
- name: DEBUG
|
|
value: "true"
|
|
- name: MONGODB_URL
|
|
value: "mongodb://mongodb:27017"
|
|
- name: DB_NAME
|
|
value: "console_db"
|
|
- name: REDIS_URL
|
|
value: "redis://redis:6379"
|
|
- name: JWT_SECRET_KEY
|
|
value: "dev-secret-key-please-change-in-production"
|
|
- name: JWT_ALGORITHM
|
|
value: "HS256"
|
|
- name: ACCESS_TOKEN_EXPIRE_MINUTES
|
|
value: "30"
|
|
resources:
|
|
requests:
|
|
memory: "256Mi"
|
|
cpu: "100m"
|
|
limits:
|
|
memory: "512Mi"
|
|
cpu: "500m"
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 8000
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 5
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 8000
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 10
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: console-backend
|
|
namespace: site11-console
|
|
labels:
|
|
app: console-backend
|
|
spec:
|
|
type: NodePort
|
|
selector:
|
|
app: console-backend
|
|
ports:
|
|
- port: 8000
|
|
targetPort: 8000
|
|
nodePort: 30081
|
|
protocol: TCP
|