安装 ArgoCD

发布时间: 更新时间: 总字数:153 阅读时间:1m 作者: 分享 复制网址

安装 ArgoCD 介绍

安装

安装server

kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml

安装client

brew install argocd

端口转发

kubectl port-forward svc/argocd-server -n argocd 8080:80

访问:http://127.0.0.1:8080

获取密码

默认用户admin

kubectl get pods -n argocd -l app.kubernetes.io/name=argocd-server -o name | cut -d'/' -f 2

cli登录

# argocd login localhost:8080
WARNING: server certificate had error: x509: certificate signed by unknown authority. Proceed insecurely (y/n)? y
Username: admin
Password:
'admin' logged in successfully
Context 'localhost:8080' updated

示例

name: guestbook
PROJECT: default
CLUSTER in-cluster (https://kubernetes.default.svc)
NAMESPACE default
REPO URL https://github.com/xiexianbin/argocd-example-apps.git
PATH kustomize-guestbook
kubectl port-forward svc/kustomize-guestbook-ui -n default 8081:80

参考

  1. https://argo-cd.readthedocs.io/en/stable/
最新评论
加载中...
Home Archives Categories Tags Statistics