forked from argoproj/argo-workflows
-
Notifications
You must be signed in to change notification settings - Fork 0
/
node-selector.yaml
28 lines (27 loc) · 840 Bytes
/
node-selector.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
# This example demonstrates a workflow with a step using node selectors.
# In this case, it requires that the 'print-arch' template, run on a
# node with architecture 'amd64'. This can be overriden via argo CLI,
# e.g. argo submit node-selector.yaml -p arch=somethingelse
# Node selectors can also be set at the workflow level, meaning all pods
# of the workflow will be scheduled using the selector.
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: node-selector-
spec:
entrypoint: print-arch
arguments:
parameters:
- name: arch
value: amd64
templates:
- name: print-arch
inputs:
parameters:
- name: arch
nodeSelector:
beta.kubernetes.io/arch: "{{inputs.parameters.arch}}"
container:
image: alpine:latest
command: [sh, -c]
args: ["uname -a"]