File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -223,22 +223,14 @@ This an optional boolean field, set to `false` by default.
223
223
224
224
Constraints are passed directly to the underlying container orchestrator. They allow you to pin a function to certain host or type of host.
225
225
226
- Here is an example of picking only hosts with a Linux OS in Docker Swarm :
226
+ Here is an example of picking only hosts with an example constraint for FIPS compliance :
227
227
228
228
` ` ` yaml
229
229
constraints:
230
- - "node.platform.os == linux "
230
+ - "example.com. node-restriction.kubernetes.io/fips=true "
231
231
` ` `
232
232
233
- Or only using nodes running with Windows :
234
-
235
- ` ` ` yaml
236
- constraints:
237
- - "node.platform.os == windows"
238
- ` ` `
239
-
240
- To assign a function to a given NodePool or Node :
241
-
233
+ The format is that of a Kubernetes [nodeSelector](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector).
242
234
243
235
First, update stack.yml :
244
236
You can’t perform that action at this time.
0 commit comments