argo-cd 安装

1、argo-cd 安装

kubectl create namespace argo-cd
# raw.githubusercontent.com 需要翻墙
kubectl apply -n argo-cd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
安装完成后,在k8s看下情况
image.png
访问argo,两种方式:
  • ingress

  • NodePort

我采用的nodeprot
image.png
修改svc为NodePort
# 编辑svc,把ClusterIP改成NodePort
kubectl edit svc argocd-server -n argo-cd
查看admin默认密码
kubectl -n argo-cd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d
image.png

2、下载argo命令行工具

https://github.com/argoproj/argo-cd/releases/latest

image.png

3、使用argo命令工具登录argo

argocd login <ARGOCD_SERVER>

4、查看上下文列表

kubectl config get-contexts -o name

5、将得到的上下文加入到argocd

argocd cluster add default

完成以上部分后,就可以使用argo了

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

友情链接更多精彩内容