Hướng dẫn cài đặt add-on ArgoCD
Cập nhật lần cuối: 21/04/2026 17:00
1.Cài đặt add-on
Bước 1: Chọn 1 dịch vụ muốn cài addon ArgoCD

Bước 2: Chọn Tab Add-ons, chọn button Thêm add-on


Tham khảo chi tiết tại tài liệu hướng dẫn cài đặt add-on: tại đây
2. Cấu hình values
Trong phần cấu hình YAML của addon ArgoCD trong màn thông tin chi tiết addon sửa các trường cấu hình dưới đây tùy theo use case.
Ingress configuration
Argo CD API server chạy đồng thời gRPC server (được CLI sử dụng) và HTTP/HTTPS server (được UI sử dụng). Cả hai giao thức đều được expose thông qua argocd-server trên các port sau:
- 443 - gRPC/HTTPS
- 80 - HTTP (chuyển hướng đến HTTPS
Tham khảo một số cách cấu hình Ingress dưới đây.
SSL-Passthrough
Tùy chọn tls: true yêu cầu phải tồn tại secret argocd-server-tls, vì Argo CD server load chứng chỉ TLS từ secret này.
global:
domain: argocd.example.com
certificate:
enabled: true
server:
ingress:
enabled: true
ingressClassName: nginx
annotations:
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
nginx.ingress.kubernetes.io/ssl-passthrough: "true"
tls: true
SSL Termination at Ingress Controller
global:
domain: argocd.example.com
configs:
params:
server.insecure: true
server:
ingress:
enabled: true
ingressClassName: nginx
annotations:
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
extraTls:
- hosts:
- argocd.example.com
# Based on the ingress controller used secret might be optional
secretName: wildcard-tls
Multiple ingress resources for gRPC protocol support
global:
domain: argocd.example.com
configs:
params:
server.insecure: true
server:
ingress:
enabled: true
ingressClassName: contour-internal
extraTls:
- hosts:
- argocd.example.com
secretName: wildcard-tls
ingressGrpc:
enabled: true
ingressClassName: contour-internal
extraTls:
- hosts:
- grpc.argocd.example.com
secretName: wildcard-tls
Multiple ingress domains
global:
domain: argocd.example.com
server:
ingress:
enabled: true
ingressClassName: nginx
annotations:
cert-manager.io/cluster-issuer: "<my-issuer>"
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
tls: true
extraHosts:
- name: argocd-alias.example.com
path: /
Gateway API HTTPRoute
Gateway API cung cấp mô hình khai báo tài nguyên để định tuyến traffic vào cluster, và Argo CD hỗ trợ sử dụng HTTPRoute như một resource thay thế Ingress trong cấu hình routing.
global:
domain: argocd.example.com
server:
httproute:
enabled: true
parentRefs:
- name: example-gateway
namespace: gateway-system
sectionName: https
Gateway API with gRPC support
server:
httproute:
enabled: true
parentRefs:
- name: example-gateway
namespace: gateway-system
sectionName: https
grpcroute:
enabled: true
parentRefs:
- name: example-gateway
namespace: gateway-system
sectionName: grpc
Gateway API with TLS backend
configs:
params:
server.insecure: false # HTTPS backend
server:
httproute:
enabled: true
parentRefs:
- name: example-gateway
namespace: gateway-system
backendTLSPolicy:
enabled: true
hostname: argocd-server.argocd.svc.cluster.local
wellKnownCACertificates: System
Tham khảo thêm các trường cấu hình của add-on ArgoCD tại đây: https://github.com/argoproj/argo-helm/tree/main/charts/argo-cd#installing-the-chart
3. Cách kết nối sử dụng add-on Argo CD
Thực hiện truy cập vào dịch vụ Kubernetes thông qua kubeconfig để lấy thông tin credential đăng nhập vào ArgoCD nếu không cấu hình bootstrap password
# Get initial admin password
kubectl get secret argocd-initial-admin-secret -n argocd -o jsonpath="{.data.password}" | base64 --decode
- Để truy cập vào giao diện ArgoCD người dùng thực hiện truy cập vào giao diện web:
- Sau đó kết nối thông qua URL đã cấu hình trong Ingress hoặc ip LoadBalancer
- Thông tin đăng nhập username mặc định là admin và password là thông tin secret đã lấy ở trên.

Ngoài ra có thể kết nối Web UI nhanh thông qua port forward:
kubectl port-forward svc/<argocd_server_service> -n argocd 8080:443


