argo-cd 国内安装

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

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容