CHORE(api): add ArgoCD API integration
- Add ArgoCD API endpoint - Enable ArgoCD connectivity
This commit is contained in:
21
deploy/k8s/base/argocd-secret.yaml
Normal file
21
deploy/k8s/base/argocd-secret.yaml
Normal 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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -13,7 +13,7 @@ commonLabels:
|
||||
# 이미지 태그 설정
|
||||
images:
|
||||
- name: ghcr.io/mayne0213/portfolio
|
||||
newTag: main-sha-2a186af4b273549fa5a3b06c6eedfec2fd8ecce6
|
||||
newTag: main-sha-db21ed85671bdb8b6153d06250e41821772003dc
|
||||
|
||||
patchesStrategicMerge:
|
||||
- deployment-patch.yaml
|
||||
|
||||
Reference in New Issue
Block a user