- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我安装了 Argo Workflow 的默认 Helm chart ,仅将 init.serviceAccount 配置为我创建的 argo-sa。 (具有足够授权的ServiceAccount)
但是,运行每个工作流都作为 serviceaccount Default 运行,我无法弄清楚设置的配置位置。
根据 Argo Helm Chart 提供的 README,将 init.serviceAccount
指定为我创建的 serviceaccount 应该可以解决问题。
解决方法是修改默认服务帐户,但似乎不是一个很好的解决方案。
有什么我理解错误的吗?提前致谢。
最佳答案
Argo 安装不控制使用哪个 ServiceAccount 工作流。根据 Argo docs ,
When no ServiceAccount is provided [when the Workflow is submitted], Argo will use the defaultServiceAccount from the namespace from which it is run, which willalmost always have insufficient privileges by default.
--serviceaccount
指定 ServiceAccount。
kubectl apply
或其他一些工具来安装 Workflows,则可以
set the ServiceAccount name in the yaml definition 。请参阅
example from the documentation ,或此缩写示例:
apiVersion: argoproj.io/v1alpha1
kind: Workflow
spec:
serviceAccountName: some-serviceaccount
为方便起见,Argo Helm 图表
provides a way to create a ServiceAccount 用于运行您的工作流。但它实际上并不会导致您的工作流使用该 ServiceAccount。您必须在提交工作流时指定它。
serviceAccount:
create: false # Specifies whether a service account should be created
annotations: {}
name: "argo-workflow" # Service account which is used to run workflows
rbac:
create: false # adds Role and RoleBinding for the above specified service account to be able to run workflows
关于kubernetes - Argo 工作流始终使用默认服务帐户,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64924481/
我遵循 Argo 工作流程的 Getting Started文档。一切都很顺利,直到我运行第一个示例工作流程,如 4. Run Sample Workflows 中所述.工作流只是停留在挂起状态: v
我正在尝试删除(并重新创建)Argo 命名空间,但它不会完全删除,因为我尝试在那里启动事件源和事件总线。现在这些不会删除。 我试图通过 yaml 和单独删除它们 - 还没有成功。 令人沮丧的结果是我无
当我使用 argo cron delete 删除 Argo cron 工作流时,根据我的观察,所有以前的工作流(已完成以及仍在运行的)似乎也将被删除。不过我不太确定,而且我还没有找到比 https:/
我正在尝试从 argo/argo-events 中的发布请求触发预先存在的 ClusterWorkflowTemplate。 我一直在关注示例 here ,但我不想在传感器中定义工作流程-我想将其分开
我有下面提到的示例 Argo DAG。如下所示,我对每个任务的参数值进行了硬编码。每个任务使用不同的参数值。我知道 Argo 提供了一种以 JSON 或 YAML 格式提交参数文件以动态传递参数值的方
我正在关注 Argo GitHub 上的示例,但是当我将模板移动到步骤中时,我无法更改消息的参数。 apiVersion: argoproj.io/v1alpha1 kind: Workflow me
我安装了 Argo Workflow 的默认 Helm chart ,仅将 init.serviceAccount 配置为我创建的 argo-sa。 (具有足够授权的ServiceAccount) 但
我的 Argo 工作流程有两个步骤,第一个在 Linux 上运行,第二个在 Windows 上运行 apiVersion: argoproj.io/v1alpha1 kind: WorkflowTem
我尝试掌握 Argo 进行 json 解码。在文档中有解码功能的例子 extension User: Decodable { static func decode(j: JSON) -> Deco
本文整理了Java中com.argo.yaml.YamlTemplate类的一些代码示例,展示了YamlTemplate类的具体用法。这些代码示例主要来源于Github/Stackoverflow/M
本文整理了Java中com.argo.yaml.YamlMap类的一些代码示例,展示了YamlMap类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从
我正在尝试访问作为输入工件传递给脚本模板的文件的内容(json 数据)。它失败并出现以下错误 NameError: name 'inputs' is not defined。您是说:“输入”吗? 我的
我创建了一个集群工作流模板,它将执行一些任务。我将使用最后一步的输出作为当前的工作流程参数。当我引用此模板时,我不知道如何从集群工作流任务/步骤中获取 output。 集群工作流模板 apiVersi
我正在尝试 Argo 工作流程并想了解如何卡住步骤。假设我有 3 步工作流程,而工作流程在第 2 步失败。所以我想使用成功的第 1 步工件重新提交第 2 步中的工作流。我怎样才能做到这一点?我在文档的
我正在使用 Argo 并且对工作流示例的工作流程有疑问。 ( https://github.com/argoproj/argo-workflows/blob/master/examples/workf
我有一个遍历 JSON 数组的 Argo 工作流。当列表变得太大时,我会收到如下错误: time="some-time" level=fatal msg="Pod \"some-pod-name\"
如果字符串以特定子字符串开头,我想在 Argo 工作流中执行任务。例如,我的字符串是 tests/dev-or.yaml 如果我的字符串以 tasks/ 开头,我想执行任务 这是我的工作流程,但条件未
Argo 允许基于先前步骤的输出动态生成并行工作流步骤。 此处提供了此动态工作流生成的示例:https://github.com/argoproj/argo-workflows/blob/master
如果字符串以特定子字符串开头,我想在 Argo 工作流中执行任务。例如,我的字符串是 tests/dev-or.yaml 如果我的字符串以 tasks/ 开头,我想执行任务 这是我的工作流程,但条件未
我正在尝试使用 Argo ( https://github.com/thoughtbot/Argo ) 将 JSON 中的数据解码为非常通用的结构: struct ValueBox { let
我是一名优秀的程序员,十分优秀!