简体   繁体   English

可以在没有集群管理员角色的情况下使用 argo 吗?

[英]Can argo be used without cluster-admin role?

We are users of a distributed multi-institution cluster who want to use Argo to facilitate workflows.我们是分布式多机构集群的用户,他们希望使用 Argo 来促进工作流程。 We have a namespace in that cluster under which we create our jobs, which we currently do through kubectl .我们在该集群中有一个命名空间,我们在该命名空间下创建我们的工作,目前我们通过kubectlkubectl We do not have cluster-admin role, as the cluster is not even owned by our institution.我们没有cluster-admin角色,因为集群甚至不属于我们的机构。

Is there a way we can use Argo workflows under our own namespace without cluster-admin ?有没有办法在没有cluster-admin情况下在我们自己的命名空间下使用 Argo 工作流?

If the answer is no, is there a way that the cluster admins can install Argo such that each namespace (namespaces = different institutions) don't have dependencies/conflicts with each other?如果答案是否定的,集群管理员是否可以安装 Argo,使每个命名空间(命名空间 = 不同机构)彼此之间没有依赖关系/冲突?

The getting started guide doesn't seem to mention this.入门指南似乎没有提到这一点。 I just see a cluster-admin assumption and that makes me think Argo isn't suited for our use case.我只是看到一个cluster-admin假设,这让我认为 Argo 不适合我们的用例。 But it's best to ask.不过最好问问。

kubectl create clusterrolebinding YOURNAME-cluster-admin-binding --clusterrole=cluster-admin --user=YOUREMAIL@gmail.com

Argo has two ways of installing, one with cluster-admin privileges and one with namespace-level privileges. Argo 有两种安装方式,一种具有集群管理员权限,另一种具有命名空间级权限。

Checkout the install guide here and the docs .此处查看安装指南文档

If you can create Roles and RoleBindings in the namespace where you want to deploy Argo you should be fine, but you will be limited to that namespace.如果您可以在要部署 Argo 的命名空间中创建角色和角色绑定,则应该没问题,但您将被限制在该命名空间内。

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

Argo-CD 允许安装命名空间,但它仍然需要安装 CRD,我不知道有任何提供者在没有集群管理员权限的情况下打开 CRD 安装。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM