apiVersion: v1 kind: ConfigMap metadata: name: bakery-config namespace: bakery-ia data: # Development specific overrides ENVIRONMENT: "development" DEBUG: "true" LOG_LEVEL: "DEBUG" AUTO_RELOAD: "true" PROFILING_ENABLED: "true" MOCK_EXTERNAL_APIS: "true" # CORS Configuration for Development CORS_ORIGINS: "http://frontend-service:3000,http://localhost:3000,http://localhost:3001,http://localhost,http://127.0.0.1:3000,http://127.0.0.1:3001,http://bakery-ia.local,https://localhost,https://127.0.0.1" # Frontend Development Configuration VITE_ENVIRONMENT: "development" VITE_API_URL: "/api" --- apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: bakery-ingress namespace: bakery-ia annotations: nginx.ingress.kubernetes.io/ssl-redirect: "false" nginx.ingress.kubernetes.io/force-ssl-redirect: "false" nginx.ingress.kubernetes.io/cors-allow-origin: "*" nginx.ingress.kubernetes.io/cors-allow-methods: "GET, POST, PUT, DELETE, OPTIONS" nginx.ingress.kubernetes.io/cors-allow-headers: "Content-Type, Authorization" nginx.ingress.kubernetes.io/cors-allow-credentials: "true" nginx.ingress.kubernetes.io/enable-cors: "true" # Development specific annotations nginx.ingress.kubernetes.io/proxy-read-timeout: "300" nginx.ingress.kubernetes.io/proxy-connect-timeout: "300" nginx.ingress.kubernetes.io/proxy-body-size: "10m" nginx.ingress.kubernetes.io/proxy-send-timeout: "600" spec: ingressClassName: nginx rules: - host: localhost http: paths: - path: / pathType: Prefix backend: service: name: frontend-service port: number: 3000 - path: /api pathType: Prefix backend: service: name: gateway-service port: number: 8000