gcp-hockey-results/motm_app/helm-chart/motm-app/values-development.yaml

144 lines
3.1 KiB
YAML

# Development values for MOTM App
# Use this file for development/staging environments
# Application Configuration
app:
name: motm-app-dev
version: "dev"
# Image Configuration
image:
repository: your-registry/motm-app
tag: "dev" # Use dev tag for development
pullPolicy: Always # Always pull latest dev image
# Resource Limits for Development (lighter)
resources:
limits:
cpu: 200m
memory: 256Mi
requests:
cpu: 50m
memory: 128Mi
# No autoscaling for development
autoscaling:
enabled: false
# Pod Disruption Budget
podDisruptionBudget:
enabled: false
# Security Context (more permissive for development)
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
readOnlyRootFilesystem: false # Allow writing for development
runAsNonRoot: true
runAsUser: 1000
# Service Configuration
service:
type: ClusterIP
port: 80
targetPort: 5000
# Ingress Configuration for Development
ingress:
enabled: true
className: "nginx"
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
nginx.ingress.kubernetes.io/ssl-redirect: "false" # No SSL for dev
cert-manager.io/cluster-issuer: "letsencrypt-staging"
hosts:
- host: motm-dev.yourdomain.com
paths:
- path: /
pathType: Prefix
tls:
- secretName: motm-app-dev-tls
hosts:
- motm-dev.yourdomain.com
# Database Configuration for Development
database:
type: "postgresql"
host: "postgresql-dev-service"
port: 5432
name: "motm_dev"
username: "motm_user"
# S3/MinIO Configuration for Development
# Example: Using MinIO for local development
s3:
enabled: true
storageProvider: "minio" # Use MinIO for development
endpoint: "http://minio.default.svc.cluster.local:9000" # Internal MinIO service
region: "us-east-1" # MinIO ignores this but required for boto3
bucket: "motm-assets-dev"
bucketPrefix: "assets/"
useSignedUrls: false # Use public URLs in development
signedUrlExpiry: 3600
fallbackToStatic: true
useSSL: false # HTTP for local MinIO
# Alternative AWS S3 configuration for development:
# storageProvider: "aws"
# endpoint: ""
# region: "us-east-1"
# bucket: "motm-assets-dev"
# useSSL: true
# Environment Variables for Development
env:
FLASK_ENV: "development"
FLASK_APP: "main.py"
FLASK_RUN_HOST: "0.0.0.0"
FLASK_RUN_PORT: "5000"
PYTHONUNBUFFERED: "1"
PYTHONDONTWRITEBYTECODE: "1"
FLASK_DEBUG: "1" # Enable debug mode for development
# Health Checks
healthCheck:
enabled: true
path: "/"
initialDelaySeconds: 10
periodSeconds: 30
timeoutSeconds: 5
failureThreshold: 5
# Persistence for Development
persistence:
enabled: true
storageClass: "standard" # Use standard storage class
accessMode: ReadWriteOnce
size: 1Gi
# Monitoring (disabled for development)
monitoring:
enabled: false
# Logging
logging:
level: "DEBUG"
format: "text"
# Labels and Annotations
labels:
environment: "development"
team: "development"
annotations:
deployment.kubernetes.io/revision: "dev"
podLabels:
environment: "development"
podAnnotations:
debug: "true"