美文网首页
argo-cd 国内安装

argo-cd 国内安装

作者: 王宣成 | 来源:发表于2025-04-14 16:50 被阅读0次

下载 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:暴露的端口访问

相关文章

网友评论

      本文标题:argo-cd 国内安装

      本文链接:https://www.haomeiwen.com/subject/vrudbjtx.html