Initial Phoenix Sankofa Cloud setup
- Complete project structure with Next.js frontend - GraphQL API backend with Apollo Server - Portal application with NextAuth - Crossplane Proxmox provider - GitOps configurations - CI/CD pipelines - Testing infrastructure (Vitest, Jest, Go tests) - Error handling and monitoring - Security hardening - UI component library - Documentation
This commit is contained in:
22
gitops/overlays/dev/kustomization.yaml
Normal file
22
gitops/overlays/dev/kustomization.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
namespace: default
|
||||
|
||||
resources:
|
||||
- ../../base
|
||||
|
||||
patchesStrategicMerge:
|
||||
- patches/namespace-patch.yaml
|
||||
- patches/resource-limits-patch.yaml
|
||||
|
||||
configMapGenerator:
|
||||
- name: environment-config
|
||||
literals:
|
||||
- ENV=development
|
||||
- LOG_LEVEL=debug
|
||||
- REPLICAS=1
|
||||
|
||||
commonLabels:
|
||||
environment: development
|
||||
|
||||
7
gitops/overlays/dev/patches/namespace-patch.yaml
Normal file
7
gitops/overlays/dev/patches/namespace-patch.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: portal
|
||||
labels:
|
||||
environment: development
|
||||
|
||||
19
gitops/overlays/dev/patches/resource-limits-patch.yaml
Normal file
19
gitops/overlays/dev/patches/resource-limits-patch.yaml
Normal file
@@ -0,0 +1,19 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: portal
|
||||
namespace: portal
|
||||
spec:
|
||||
replicas: 1
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: portal
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 256Mi
|
||||
limits:
|
||||
cpu: 500m
|
||||
memory: 1Gi
|
||||
|
||||
23
gitops/overlays/prod/kustomization.yaml
Normal file
23
gitops/overlays/prod/kustomization.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
namespace: default
|
||||
|
||||
resources:
|
||||
- ../../base
|
||||
|
||||
patchesStrategicMerge:
|
||||
- patches/namespace-patch.yaml
|
||||
- patches/resource-limits-patch.yaml
|
||||
- patches/high-availability-patch.yaml
|
||||
|
||||
configMapGenerator:
|
||||
- name: environment-config
|
||||
literals:
|
||||
- ENV=production
|
||||
- LOG_LEVEL=info
|
||||
- REPLICAS=3
|
||||
|
||||
commonLabels:
|
||||
environment: production
|
||||
|
||||
27
gitops/overlays/prod/patches/high-availability-patch.yaml
Normal file
27
gitops/overlays/prod/patches/high-availability-patch.yaml
Normal file
@@ -0,0 +1,27 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: portal
|
||||
namespace: portal
|
||||
spec:
|
||||
replicas: 3
|
||||
strategy:
|
||||
type: RollingUpdate
|
||||
rollingUpdate:
|
||||
maxSurge: 1
|
||||
maxUnavailable: 0
|
||||
template:
|
||||
spec:
|
||||
affinity:
|
||||
podAntiAffinity:
|
||||
preferredDuringSchedulingIgnoredDuringExecution:
|
||||
- weight: 100
|
||||
podAffinityTerm:
|
||||
labelSelector:
|
||||
matchExpressions:
|
||||
- key: app
|
||||
operator: In
|
||||
values:
|
||||
- portal
|
||||
topologyKey: kubernetes.io/hostname
|
||||
|
||||
7
gitops/overlays/prod/patches/namespace-patch.yaml
Normal file
7
gitops/overlays/prod/patches/namespace-patch.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: portal
|
||||
labels:
|
||||
environment: production
|
||||
|
||||
19
gitops/overlays/prod/patches/resource-limits-patch.yaml
Normal file
19
gitops/overlays/prod/patches/resource-limits-patch.yaml
Normal file
@@ -0,0 +1,19 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: portal
|
||||
namespace: portal
|
||||
spec:
|
||||
replicas: 3
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: portal
|
||||
resources:
|
||||
requests:
|
||||
cpu: 500m
|
||||
memory: 1Gi
|
||||
limits:
|
||||
cpu: 2000m
|
||||
memory: 4Gi
|
||||
|
||||
Reference in New Issue
Block a user