Closed pyramation closed 6 years ago
Hi there thanks for using OpenFaaS,
The problem is that you need to push your Docker images to a remote repository and you haven't done that. If you want to avoid pushing the images you can work around this with an image pull policy of "IfNotPresent" as defined in the Helm chart instructions in the faas-netes repo.
I don't know if it helps, but you can also combine your functions into a single stack.yml file and then you don't need a -f
parameter either.
Can you point me to the instructions that told you that you don't have to push your images on Kubernetes?
Regards,
Alex
I know this is closed a long time ago, but I'm having the same issue with OpenFaaS on top of microk8s on Ubuntu18.04 (so a single-node cluster). And this blog post by Alex says that
If you are using a single-node Docker cluster on your laptop then you can skip this step.
By "this step" it was referring to pushing a function to a remote docker registry.
But what I found is that faas deploy -f [app.yml]
results in ImagePullBackOff
even though docker images
shows that the app's docker image is locally available.
Is there a way to tell faas-cli
to fetch the docker image locally??
"single node Docker cluster" refers to Swarm, you are both clearly not using Swarm or a Docker cluster, but a Kubernetes cluster hence the error: ImagePullBackOff
You can deploy a local registry if you wish, however you are better off using the Docker Hub for ease of use.
https://blog.alexellis.io/get-a-tls-enabled-docker-registry-in-5-minutes/
/lock
@woojeonghoon cc (who deleted his comment)
/msg: slack
Hello! Got excited when i found openfaas, newbie here trying to create some template functions, one node and one dockerfile. I'm trying to work locally without a registry -- is that required?
Expected Behaviour
I'm expecting the cloud functions to be available
Current Behaviour
image pull backoff loop
Even though i've checked the
docker images
locallyPossible Solution
Am I missing a step? Perhaps i have to use a docker registry? I'd like to work locally, hopefully there is a solution.
Steps to Reproduce (for bugs)
Context
was just trying to get started with the cli
Your Environment
faas-cli version
):docker version
):mac - docker for mac
faas-netes
mac - docker for mac