CHORE(api): add ArgoCD API integration

- Add ArgoCD API endpoint
- Enable ArgoCD connectivity
This commit is contained in:
2025-11-25 12:18:59 +09:00
parent d6039585d9
commit 124c7723db
7 changed files with 425 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
apiVersion: v1
kind: Secret
metadata:
name: argocd-token
namespace: portfolio
type: Opaque
stringData:
token: "" # ArgoCD 토큰을 여기에 설정하거나, kubectl create secret로 생성
---
# 사용 방법:
# 1. ArgoCD 토큰 생성:
# argocd account generate-token
#
# 2. Secret 생성:
# kubectl create secret generic argocd-token \
# --from-literal=token='YOUR_TOKEN_HERE' \
# -n portfolio
#
# 또는 이 파일을 수정하고:
# kubectl apply -f argocd-secret.yaml

View File

@@ -29,6 +29,14 @@ spec:
env:
- name: NODE_ENV
value: production
- name: ARGOCD_SERVER_URL
value: "https://argocd-server.argocd.svc.cluster.local"
- name: ARGOCD_TOKEN
valueFrom:
secretKeyRef:
name: argocd-token
key: token
optional: false
resources:
requests:
memory: "100Mi"

View File

@@ -13,7 +13,7 @@ commonLabels:
# 이미지 태그 설정
images:
- name: ghcr.io/mayne0213/portfolio
newTag: main-sha-2a186af4b273549fa5a3b06c6eedfec2fd8ecce6
newTag: main-sha-db21ed85671bdb8b6153d06250e41821772003dc
patchesStrategicMerge:
- deployment-patch.yaml