下载 https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
编辑替换原来镜像地址
registry.cn-hangzhou.aliyuncs.com/xuancheng/redis:7.0.15-alpine
registry.cn-hangzhou.aliyuncs.com/xuancheng/argocd:v2.14.6
registry.cn-hangzhou.aliyuncs.com/xuancheng/dex:v2.41.1
# 创建空间
kubectl create namespace argocd
# kubectl create secret generic argocd-redis --from-literal=auth=123456 -n argocd
kubectl create secret generic argocd-redis --from-literal=auth=你的redis密码 -n argocd
kubectl apply -n argocd -f install.yaml
# 暴露端口
kubectl patch svc argocd-server -n argocd -p '{"spec": {"type": "NodePort"}}'
# 查看端口
kubectl get svc -n argocd -l app.kubernetes.io/name=argocd-server |grep argocd-server
# 查看密码,账号是admin
kubectl -n argocd get secret \
argocd-initial-admin-secret \
-o jsonpath="{.data.password}" | base64 -d
ip:暴露的端口访问