# =============================================================================
# ArgoCD Metrics NodePort Services
# =============================================================================
# 建立者: Claude Code (首席架構師)
# 日期: 2026-03-29 (台北時間)
# 用途: 暴露 ArgoCD Metrics 供外部 Prometheus (188) 抓取
# =============================================================================

---
# ArgoCD Application Controller Metrics
apiVersion: v1
kind: Service
metadata:
  name: argocd-metrics-nodeport
  namespace: argocd
  labels:
    app.kubernetes.io/component: metrics
    app.kubernetes.io/name: argocd-application-controller
spec:
  type: NodePort
  selector:
    app.kubernetes.io/name: argocd-application-controller
  ports:
    - name: metrics
      port: 8082
      targetPort: 8082
      nodePort: 30882

---
# ArgoCD Server Metrics
apiVersion: v1
kind: Service
metadata:
  name: argocd-server-metrics-nodeport
  namespace: argocd
  labels:
    app.kubernetes.io/component: metrics
    app.kubernetes.io/name: argocd-server
spec:
  type: NodePort
  selector:
    app.kubernetes.io/name: argocd-server
  ports:
    - name: metrics
      port: 8083
      targetPort: 8083
      nodePort: 30883
