New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
faas-cli deployment always trying to pull image from remote registry instead of local docker image #135
Comments
Here are two more up to date tutorials you could checkout instead:
I'll close the issue but please keep commenting if you need to. For an experience that feels more integrated you may just want to abandon minikube and use |
Just to add something here, I'm encountering this same problem using Kubernetes via Docker for Mac. Launched k8s, set up Helm and use Helm to install openfaas, and deployed a test function but it's failing to pull the image. It sort of makes sense, but having to push to a registry while developing functions locally is not going to be much fun. Changing imagePullPolicy to Never doesn't seem to work but I haven't yet figured out why not. |
In case this helps someone, here's how I set things up to use a local registry
|
Thanks for that. I might set things up to run a local registry, but it really shouldn't be needed. I removed openfaas, changed the chart to set imagePullPolicy to Never, and reinstalled, but it didn't make any difference, which was surprising. Not sure what's up. |
@ericstoekl / @milsonian please can you test this feature and verify there is no regression? |
It doesn't seem to work for me. Verified that I'm using chart 1.0.13 and |
I have verified the behaviour works with both I also assume that you have a typo in your command Example policy from faas-netesd deploys on DfM:
|
Same behavior on Kubernetes with Docker for Windows. It's not possible to run a local image since k8s always searches on hub.docker.
|
Please open a new issue so that you've filled in the whole template. You will need to use the IfNotPresent pull policy for the local library. |
Derek lock |
Deploy onto minikube is not using locally build docker image
Expected Behaviour
I was trying out python based serverless functions following the steps specified in https://blog.alexellis.io/introducing-functions-as-a-service/. I was able to build docker image as mentioned in the tutorial. When trying to deploy the newly created function's docker image, I was getting "ImagePullBackOff" in pod status. According to the post, if no image registry is mentioned it should default to the local image. Deployment is always trying to pull remote registry image instead of local image.
Function pods should be created using the local image instead of trying to pull from docker registry.
Current Behaviour
Possible Solution
imagePullPolicy if not mentioned should have defaulted to Never instead of Always.
Steps to Reproduce (for bugs)
List of events as described by "kubectl describe pod hello-python-faas"
Events:
Type Reason Age From Message
Normal Scheduled 24m default-scheduler Successfully assigned hello-python-faas-6d4759cf6b-rsm68 to minikube
Normal SuccessfulMountVolume 24m kubelet, minikube MountVolume.SetUp succeeded for volume "default-token-8skmz"
Normal Pulling 23m (x4 over 24m) kubelet, minikube pulling image "hello-python-faas"
Warning Failed 23m (x4 over 24m) kubelet, minikube Failed to pull image "hello-python-faas": rpc error: code = Unknown desc = Error response from daemon: pull access denied for hello-python-faas, repository does not exist or may require 'docker login'
Warning Failed 23m (x4 over 24m) kubelet, minikube Error: ErrImagePull
Normal BackOff 22m (x6 over 24m) kubelet, minikube Back-off pulling image "hello-python-faas"
Warning Failed 4m (x81 over 24m) kubelet, minikube Error: ImagePullBackOff
Context
I was trying to explore OpenFaaS for Python3 Batch process workload in my organization
Your Environment
docker version
(e.g. Docker 17.0.05 ):Client:
Version: 17.12.0-ce
API version: 1.23
Go version: go1.9.2
Git commit: c97c6d6
Built: Wed Dec 27 20:10:36 2017
OS/Arch: linux/amd64
Server:
Engine:
Version: 17.09.0-ce
API version: 1.32 (minimum version 1.12)
Go version: go1.8.3
Git commit: afdb6d4
Built: Tue Sep 26 22:45:38 2017
OS/Arch: linux/amd64
Experimental: false
Are you using Docker Swarm or Kubernetes (FaaS-netes)?
Kubernetes through FaaS-netes
Operating System and version (e.g. Linux, Windows, MacOS):
Ubuntu 14.04 with VirtualBox 5.2
Link to your project or a code example to reproduce issue:
The text was updated successfully, but these errors were encountered: