-
Notifications
You must be signed in to change notification settings - Fork 3.4k
fix(docs): add RBAC and user to executor plugins example #13019
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,6 +30,15 @@ controller: | |
| value: "true" | ||
| ``` | ||
|
|
||
| In case you want to modify a running `workflow-controller`: | ||
|
|
||
| ```bash | ||
| kubectl patch deployment \ | ||
| workflow-controller \ | ||
| --namespace argo \ | ||
| -p '{"spec":{"template":{"spec":{"containers":[{"name":"workflow-controller","env":[{"name":"ARGO_EXECUTOR_PLUGINS","value":"true"}]}]}}}}' | ||
| ``` | ||
|
|
||
| ## Template Executor | ||
|
|
||
| This is a plugin that runs custom "plugin" templates, e.g. for non-pod tasks such as Tekton builds, Spark jobs, sending | ||
|
|
@@ -162,7 +171,7 @@ spec: | |
| - containerPort: 4355 | ||
| securityContext: | ||
| runAsNonRoot: true | ||
| runAsUser: 65534 # nobody | ||
| runAsUser: 1000 | ||
agilgur5 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| resources: | ||
| requests: | ||
| memory: "64Mi" | ||
|
|
@@ -202,6 +211,30 @@ spec: | |
|
|
||
| You'll see the workflow complete successfully. | ||
|
|
||
| **Note**: The service account running the workflow needs at least the following permissions. If <= v3.2 you must replace `workflowtasksets/status` with `workflowtasksets`. | ||
|
||
|
|
||
| ```yaml | ||
| --- | ||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| kind: Role | ||
| metadata: | ||
| name: agent | ||
| rules: | ||
| - apiGroups: | ||
| - argoproj.io | ||
| resources: | ||
| - workflowtasksets | ||
| verbs: | ||
| - list | ||
| - watch | ||
| - apiGroups: | ||
| - argoproj.io | ||
| resources: | ||
| - workflowtasksets/status | ||
| verbs: | ||
| - patch | ||
| ``` | ||
|
|
||
| ### Discovery | ||
|
|
||
| When a workflow is run, plugins are loaded from: | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.