I'm testing out Pulumi with k8s and am running int...
# general
f
I'm testing out Pulumi with k8s and am running into an issue with using a Docker image from ECR. After running
pulumi up
, I get this failure output:
Copy code
* Timeout occurred for 'app-ions'
    * [MinimumReplicasUnavailable] Deployment does not have minimum availability.
    * Minimum number of live Pods was not attained
    * 2 Pods failed to run because: [ImagePullBackOff] Back-off pulling image "<http://734247230719.dkr.ecr.us-west-2.amazonaws.com/my-image:my-tag|734247230719.dkr.ecr.us-west-2.amazonaws.com/my-image:my-tag>"
Does Pulumi k8s work with ECR?
I can docker pull my image from the terminal successfully.
c
there is nothing special about Pulumi’s treatment of Kubernetes. If your cluster can’t get to ECR, it will fail to pull the image.
In other words, we’re submitting entirely normal
Deployment
objects to the API server. If they don’t work here, they don’t work in Kubernetes YAML either.
f
Oh, right - that makes sense.
This may not be in the scope of Pulumi but is there a doc that describes how to give minikube access to your local docker repo? Seems useful for local testing.
c
@full-dress-10026 no, and actually I’m not entirely sure how to do that.
I’m guessing you don’t happen to know how to do it?
f
There's some ideas that have potential here: https://stackoverflow.com/questions/42564058/how-to-use-local-docker-images-with-minikube I'm more curious how people are developing things locally. Or maybe people don't do that?
c
For most companies, it’s not feasible to use minikube for development, because most companies can’t boot mocked versions of every service. So in practice it’s much easier to use dev clusters.
minikube is great for getting started and learning though