- hub/ 신규 추가: cyanburu.com/ 허브 홈페이지 (에디토리얼+사이버펑크 디자인) - hub/index.html: /portal/api/homepage/cards 동적 카드 로딩 - k8s/00-hub.yaml: hub 네임스페이스 + Deployment + Service - k8s/13-ingress-hub.yaml: cyanburu.com/ → hub 라우팅 - k8s/08-ingress.yaml: cyanburu.com/ → cyanburu.com/portal 경로 변경 - backend/main.py: homepage_cards CRUD API 추가, root_path=/portal 설정 - frontend/index.html: API 경로 /portal/api 수정, 홈 카드 관리 탭 추가 - README.md: 2026-05 변경 이력 추가
62 lines
1.2 KiB
YAML
Executable File
62 lines
1.2 KiB
YAML
Executable File
---
|
|
# hub 네임스페이스
|
|
apiVersion: v1
|
|
kind: Namespace
|
|
metadata:
|
|
name: hub
|
|
|
|
---
|
|
# 허브 홈페이지 Deployment
|
|
# index.html을 정적으로 서빙하는 nginx 파드
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: hub
|
|
namespace: hub
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: hub
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: hub
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: gitea-registry-secret
|
|
containers:
|
|
- name: hub
|
|
image: 192.168.10.101:30000/qorgh529/hub:latest
|
|
ports:
|
|
- containerPort: 80
|
|
resources:
|
|
requests:
|
|
memory: "32Mi"
|
|
cpu: "50m"
|
|
limits:
|
|
memory: "64Mi"
|
|
cpu: "100m"
|
|
|
|
---
|
|
# hub Service (ClusterIP)
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: hub-service
|
|
namespace: hub
|
|
spec:
|
|
selector:
|
|
app: hub
|
|
ports:
|
|
- port: 80
|
|
targetPort: 80
|
|
|
|
---
|
|
# hub용 Gitea Registry Secret
|
|
# kubectl create secret docker-registry gitea-registry-secret \
|
|
# --namespace=hub \
|
|
# --docker-server=192.168.10.101:30000 \
|
|
# --docker-username=<계정> \
|
|
# --docker-password=<패스워드>
|