- Create a secret in your cluster, but make sure to put it in the openfaas-fn namespace.
- Reference the secret name in your function's yaml (like below).
- Deploy your function.
- If the referenced secret doesn't exist, OpenFaaS will fail the deploy and throw a 400.
Last active
September 27, 2019 20:58
-
-
Save kylos101/15c46df0cc03cf08322d27d50514d477 to your computer and use it in GitHub Desktop.
Use a private Docker Hub repo with OpenFaaS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 1.0 | |
provider: | |
name: openfaas | |
gateway: http://127.0.0.1:31112 | |
functions: | |
test-function: | |
lang: python | |
handler: ./test-function | |
image: user-name/repository-name:tag-name | |
secrets: | |
- private-docker-registry |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment