Skip to content

Commit b4c1926

Browse files
committed
Remove Docker Swarm reference
Closes: #260 Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent 3bc99c3 commit b4c1926

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

docs/reference/yaml.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -223,22 +223,14 @@ This an optional boolean field, set to `false` by default.
223223

224224
Constraints are passed directly to the underlying container orchestrator. They allow you to pin a function to certain host or type of host.
225225

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:
227227

228228
```yaml
229229
constraints:
230-
- "node.platform.os == linux"
230+
- "example.com.node-restriction.kubernetes.io/fips=true"
231231
```
232232

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).
242234

243235
First, update stack.yml:
244236

0 commit comments

Comments
 (0)