refactor: simplify k8s deployment to pure kubectl
- Remove kustomization.yaml and all kustomize references - Remove deploy-pi.sh and vpa-pi-helper.sh helper scripts - Remove redundant ConfigMap from vpa.yaml - Update README.md to focus on standard kubectl commands - Keep deployment simple with just YAML files and kubectl - Maintain Pi 5 optimizations and VPA functionality - No complex tooling required for deployment
This commit is contained in:
58
k8s/configmap.yaml
Normal file
58
k8s/configmap.yaml
Normal file
@@ -0,0 +1,58 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: unitforge-config
|
||||
labels:
|
||||
app: unitforge
|
||||
component: config
|
||||
data:
|
||||
# Application Information
|
||||
APP_NAME: "UnitForge"
|
||||
APP_VERSION: "1.0.0"
|
||||
APP_DESCRIPTION: "Create, validate, and manage systemd unit files"
|
||||
|
||||
# Server Configuration
|
||||
HOST: "0.0.0.0"
|
||||
PORT: "8000"
|
||||
DEBUG: "false"
|
||||
ENVIRONMENT: "production"
|
||||
LOG_LEVEL: "info"
|
||||
RELOAD: "false"
|
||||
WORKERS: "2"
|
||||
|
||||
# API Configuration
|
||||
DOCS_URL: "/api/docs"
|
||||
REDOC_URL: "/api/redoc"
|
||||
|
||||
# CORS Configuration
|
||||
CORS_ORIGINS: "*"
|
||||
|
||||
# File Upload Settings
|
||||
MAX_UPLOAD_SIZE: "2097152"
|
||||
ALLOWED_EXTENSIONS: "['.service', '.timer', '.socket', '.mount', '.target', '.path']"
|
||||
|
||||
# Feature Flags
|
||||
ENABLE_API_METRICS: "false"
|
||||
ENABLE_REQUEST_LOGGING: "true"
|
||||
ENABLE_TEMPLATE_CACHING: "true"
|
||||
ENABLE_VALIDATION_CACHING: "true"
|
||||
|
||||
# Performance Settings (optimized for Pi)
|
||||
REQUEST_TIMEOUT: "60"
|
||||
KEEPALIVE_TIMEOUT: "10"
|
||||
MAX_CONNECTIONS: "50"
|
||||
|
||||
# Monitoring
|
||||
HEALTH_CHECK_ENABLED: "true"
|
||||
METRICS_ENABLED: "false"
|
||||
|
||||
# Asset Optimization
|
||||
MINIFY_ASSETS: "true"
|
||||
COMPRESS_RESPONSES: "true"
|
||||
HOT_RELOAD: "false"
|
||||
SOURCE_MAPS: "false"
|
||||
|
||||
# Documentation
|
||||
API_DOCS_ENABLED: "true"
|
||||
SWAGGER_UI_ENABLED: "true"
|
||||
REDOC_ENABLED: "true"
|
||||
Reference in New Issue
Block a user