-
Notifications
You must be signed in to change notification settings - Fork 1
/
distributed-mode-plugin.yaml
64 lines (64 loc) · 1.7 KB
/
distributed-mode-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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
apiVersion: argoproj.io/v1alpha1
kind: ExecutorPlugin
metadata:
name: wasm
namespace: argo-workflows
spec:
sidecar:
container:
image: ghcr.io/shark/wasm-workflows-plugin:v0.3.0
name: wasm-workflows-plugin
ports:
- containerPort: 3000
livenessProbe:
httpGet:
path: /healthz
port: 3000
initialDelaySeconds: 2
periodSeconds: 1
securityContext:
runAsNonRoot: true
runAsUser: 65532 # nonroot
resources:
limits:
cpu: 1024m
memory: 1024Mi
requests:
cpu: 1024m
memory: 512Mi
env:
- name: PLUGIN_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: K8S_API_URL
value: https://kubernetes.default.svc/
- name: K8S_API_CA_CRT
valueFrom:
secretKeyRef:
name: wasm-workflows-plugin
key: ca.crt
- name: K8S_API_NAMESPACE
valueFrom:
secretKeyRef:
name: wasm-workflows-plugin
key: namespace
- name: K8S_API_TOKEN
valueFrom:
secretKeyRef:
name: wasm-workflows-plugin
key: token
- name: LOG_LEVEL
value: debug
- name: MODE
value: distributed
- name: ARGO_CONTROLLER_CONFIGMAP
value: workflow-controller-configmap
# - name: INSECURE_OCI_REGISTRIES
# value: docker-registry.default.svc.cluster.local:5000
# - name: OTEL_ENABLE
# value: '1'
# - name: OTEL_EXPORTER_JAEGER_AGENT_HOST
# value: jaeger-agent-svc.default.svc.cluster.local
# - name: OTEL_EXPORTER_JAEGER_AGENT_PORT
# value: '6831'