Skip to content
This repository has been archived by the owner on Mar 18, 2021. It is now read-only.

Add constraints #18

Open
nicholasjackson opened this issue Jan 10, 2018 · 0 comments
Open

Add constraints #18

nicholasjackson opened this issue Jan 10, 2018 · 0 comments
Assignees

Comments

@nicholasjackson
Copy link
Contributor

nicholasjackson commented Jan 10, 2018

Add the ability to add a constraint to a function to restrict the architecture for a function:

provider:  
  name: faas
  gateway: http://localhost:8080

functions:  
  ipconfig:
    image: alexellis/windows-ipconfig:nano
    skip_build: true
    environment:
      suppress_lock: true
    constraints:
      - "node.platform.os == windows"
      - "node.datacenter == dc2"

In this instance the function would only be deployed to a node running windows

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants