Skip to content

Commit

Permalink
Remove Docker Swarm reference
Browse files Browse the repository at this point in the history
Closes: #260

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
alexellis committed Dec 10, 2024
1 parent 3bc99c3 commit b4c1926
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions docs/reference/yaml.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,22 +223,14 @@ This an optional boolean field, set to `false` by default.

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

Here is an example of picking only hosts with a Linux OS in Docker Swarm:
Here is an example of picking only hosts with an example constraint for FIPS compliance:

```yaml
constraints:
- "node.platform.os == linux"
- "example.com.node-restriction.kubernetes.io/fips=true"
```

Or only using nodes running with Windows:

```yaml
constraints:
- "node.platform.os == windows"
```

To assign a function to a given NodePool or Node:

The format is that of a Kubernetes [nodeSelector](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector).

First, update stack.yml:

Expand Down

0 comments on commit b4c1926

Please sign in to comment.