-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplugin.yaml
39 lines (36 loc) · 1 KB
/
plugin.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
kind: ExecutorPlugin
apiVersion: argoproj.io/v1alpha1
metadata:
name: python
annotations:
workflows.argoproj.io/description: |
This plugin runs trusted Python expressions.
Do not use it to run untrusted Python expressions.
This plugin make attempts to sandbox the expression. It removes built-ins that would allow disk or network access.
The plugin itself is allowed limited CPU and memory, and is, of course, contained.
workflows.argoproj.io/version: '>= v3.3'
spec:
sidecar:
container:
command:
- python
- -c
image: python:alpine
name: python-executor-plugin
ports:
- containerPort: 7984
resources:
requests:
cpu: 100m
memory: 32Mi
limits:
cpu: 200m
memory: 64Mi
securityContext:
runAsNonRoot: true
runAsUser: 1000
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL