Initial commit: OAuth 2.0 인증 시스템 with APISIX API Gateway
- FastAPI 백엔드 + MongoDB + Redis 구성 - React + Vite + TypeScript + shadcn/ui 프론트엔드 - Apache APISIX API Gateway 통합 - Docker Compose 기반 개발 환경 - 3단계 권한 체계 (System Admin, Group Admin, User) - 동적 테마 지원 - 환경별 설정 (dev/vei/prod) 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
88
.k8s/oauth-deployment.yaml
Normal file
88
.k8s/oauth-deployment.yaml
Normal file
@ -0,0 +1,88 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: oauth-backend
|
||||
namespace: oauth-system
|
||||
spec:
|
||||
replicas: 3
|
||||
selector:
|
||||
matchLabels:
|
||||
app: oauth-backend
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: oauth-backend
|
||||
spec:
|
||||
containers:
|
||||
- name: backend
|
||||
image: ${NEXUS_URL}/oauth-backend:${VERSION}
|
||||
ports:
|
||||
- containerPort: 8000
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: oauth-config
|
||||
- secretRef:
|
||||
name: oauth-secret
|
||||
resources:
|
||||
requests:
|
||||
memory: "256Mi"
|
||||
cpu: "250m"
|
||||
limits:
|
||||
memory: "512Mi"
|
||||
cpu: "500m"
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: oauth-frontend
|
||||
namespace: oauth-system
|
||||
spec:
|
||||
replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app: oauth-frontend
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: oauth-frontend
|
||||
spec:
|
||||
containers:
|
||||
- name: frontend
|
||||
image: ${NEXUS_URL}/oauth-frontend:${VERSION}
|
||||
ports:
|
||||
- containerPort: 80
|
||||
resources:
|
||||
requests:
|
||||
memory: "128Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "256Mi"
|
||||
cpu: "200m"
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: oauth-backend-service
|
||||
namespace: oauth-system
|
||||
spec:
|
||||
selector:
|
||||
app: oauth-backend
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 8000
|
||||
targetPort: 8000
|
||||
type: ClusterIP
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: oauth-frontend-service
|
||||
namespace: oauth-system
|
||||
spec:
|
||||
selector:
|
||||
app: oauth-frontend
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 80
|
||||
targetPort: 80
|
||||
type: ClusterIP
|
||||
4
.k8s/oauth-namespace.yaml
Normal file
4
.k8s/oauth-namespace.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: oauth-system
|
||||
Reference in New Issue
Block a user