Skip to content

Instantly share code, notes, and snippets.

@mercul3s
Created March 12, 2019 20:51
Show Gist options
  • Save mercul3s/f2aad1f42086f32fda9f8a8ba5b71a89 to your computer and use it in GitHub Desktop.
Save mercul3s/f2aad1f42086f32fda9f8a8ba5b71a89 to your computer and use it in GitHub Desktop.
example function yaml with taints
---
apiVersion: openfaas.com/v1alpha2
kind: Function
metadata:
name: example-function
namespace: openfaas-fn
spec:
name: renderer
image: example-image:latest
environment:
combined_output: "false"
labels:
com.openfaas.scale.min: "2"
com.openfaas.scale.max: "20"
com.openfaas.scale.factor: "2"
tolerations:
- effect: NoSchedule
key: dedicated
operator: Equal
value: preemptible-faas-pool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment