如何快速安装与使用Argo

发布时间:2021-11-12 14:48:59 作者:小新
来源:亿速云 阅读:165

小编给大家分享一下如何快速安装与使用Argo,希望大家阅读完这篇文章之后都有所收获,下面让我们一起去探讨吧!

Argo 项目是一组 Kubernetes 原生工具集合,用于运行和管理 Kubernetes 上的作业和应用程序。Argo 提供了一种在 Kubernetes 上创建工作和应用程序的三种计算模式 – 服务模式、工作流模式和基于事件的模式 – 的简单组合方式。所有的 Argo 工具都实现为控制器和自定义资源。

快速安装

Linux

下载客户端,通过 curl,如下:

# Download the binarycurl -LO https://github.com/argoproj/argo/releases/download/v3.0.0-rc3/argo-linux-amd64.gz# Unzipgunzip argo-linux-amd64.gz# Make binary executablechmod +x argo-linux-amd64# Move binary to pathmv ./argo-linux-amd64 /usr/local/bin/argo# Test installationargo version
Argo Controller服务安装
kubectl create namespace argo
kubectl apply -n argo -f https://raw.githubusercontent.com/argoproj/argo/v3.0.0-rc3/manifests/install.yaml

开启节点部署pod:

安装完后,使用 kubectl get pod -n argo发现始终处于pending状态,需要开启master节点的任务部署。

kubectl taint nodes --all node-role.kubernetes.io/master-

运行测试

运行示例的workflow:

argo submit -n argo --watch https://raw.githubusercontent.com/argoproj/argo-workflows/master/examples/hello-world.yaml
argo list -n argo
argo get -n argo @latest
argo logs -n argo @latest

 查看UI:

kubectl -n argo port-forward deployment/argo-server 2746:2746

用户界面可访问 http://localhost:2746

使用kubectl edit deployment/argo-server -n argo,参照如下nginx-service.yaml,将type改为NodePort,并添加nodePort端口。

apiVersion: v1kind: Servicemetadata:
  name: nginx-servicespec:
  type: NodePort
  sessionAffinity: ClientIP
  selector:app: nginx
  ports:- port: 80  nodePort: 30080

在相应节点上使用http://<NodeIP>:<nodeport>就可以访问服务了。

如何快速安装与使用Argo

看完了这篇文章,相信你对“如何快速安装与使用Argo”有了一定的了解,如果想了解更多相关知识,欢迎关注亿速云行业资讯频道,感谢各位的阅读!

推荐阅读:
  1. Debian下Subversion(SVN)的快速安装与配置
  2. 快速安装使用ZABBIX PROXY

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

argo

上一篇:Pingdom网站速度测试好吗

下一篇:Django中的unittest应用是什么

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》