Apply Composer changes: comprehensive API updates, migrations, middleware, and infrastructure improvements
- Add comprehensive database migrations (001-024) for schema evolution - Enhance API schema with expanded type definitions and resolvers - Add new middleware: audit logging, rate limiting, MFA enforcement, security, tenant auth - Implement new services: AI optimization, billing, blockchain, compliance, marketplace - Add adapter layer for cloud integrations (Cloudflare, Kubernetes, Proxmox, storage) - Update Crossplane provider with enhanced VM management capabilities - Add comprehensive test suite for API endpoints and services - Update frontend components with improved GraphQL subscriptions and real-time updates - Enhance security configurations and headers (CSP, CORS, etc.) - Update documentation and configuration files - Add new CI/CD workflows and validation scripts - Implement design system improvements and UI enhancements
This commit is contained in:
21
gitops/apps/frontend/application.yaml
Normal file
21
gitops/apps/frontend/application.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: sankofa-frontend
|
||||
namespace: argocd
|
||||
spec:
|
||||
project: default
|
||||
source:
|
||||
repoURL: https://github.com/sankofa/phoenix-sankofa-cloud
|
||||
targetRevision: main
|
||||
path: gitops/apps/frontend
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: sankofa
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
|
||||
10
gitops/apps/frontend/manifests/configmap.yaml
Normal file
10
gitops/apps/frontend/manifests/configmap.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: sankofa-frontend-config
|
||||
namespace: sankofa
|
||||
data:
|
||||
NEXT_PUBLIC_GRAPHQL_ENDPOINT: "http://sankofa-api:4000/graphql"
|
||||
NEXT_PUBLIC_APP_URL: "https://sankofa.nexus"
|
||||
NODE_ENV: "production"
|
||||
|
||||
86
gitops/apps/frontend/manifests/deployment.yaml
Normal file
86
gitops/apps/frontend/manifests/deployment.yaml
Normal file
@@ -0,0 +1,86 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: sankofa-frontend
|
||||
namespace: sankofa
|
||||
labels:
|
||||
app: sankofa-frontend
|
||||
spec:
|
||||
replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app: sankofa-frontend
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: sankofa-frontend
|
||||
spec:
|
||||
containers:
|
||||
- name: frontend
|
||||
image: sankofa-frontend:latest
|
||||
ports:
|
||||
- containerPort: 3000
|
||||
name: http
|
||||
env:
|
||||
- name: NEXT_PUBLIC_GRAPHQL_ENDPOINT
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
name: sankofa-frontend-config
|
||||
key: graphql-endpoint
|
||||
- name: NODE_ENV
|
||||
value: "production"
|
||||
resources:
|
||||
requests:
|
||||
cpu: 250m
|
||||
memory: 256Mi
|
||||
limits:
|
||||
cpu: 1000m
|
||||
memory: 1Gi
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /api/health
|
||||
port: 3000
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /api/health
|
||||
port: 3000
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 5
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: sankofa-frontend
|
||||
namespace: sankofa
|
||||
labels:
|
||||
app: sankofa-frontend
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- port: 3000
|
||||
targetPort: 3000
|
||||
protocol: TCP
|
||||
name: http
|
||||
selector:
|
||||
app: sankofa-frontend
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: sankofa-frontend
|
||||
namespace: sankofa
|
||||
spec:
|
||||
rules:
|
||||
- host: sankofa.local
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: sankofa-frontend
|
||||
port:
|
||||
number: 3000
|
||||
|
||||
Reference in New Issue
Block a user