https://pulumi.com logo
Title
m

miniature-wire-6359

06/07/2022, 8:03 AM
can i somehow configure pulumi to use the kubectl created secret so it would pull from the relevant repo?
b

brave-ambulance-98491

06/07/2022, 6:50 PM
I'm a little confused by this question. Are you asking how to configure your k8s cluster to have the right credentials to pull images when it runs workloads, or are you trying to configure permissions for a host that's running pulumi?
If it's the former, you could use an imagePullSecret, although you shouldn't need that when using EKS. It's simpler if you're using EKS; you can just grant the node role the right permissions.
m

miniature-wire-6359

06/08/2022, 5:30 AM
@brave-ambulance-98491 Apologies for the confusion, I am asking how to configure my pulumi deployment to use images from ECR specifically for this example: https://github.com/pulumi/examples/tree/master/kubernetes-py-guestbook for example:
container = ContainerArgs(
    name=name,
    image=image,
    resources=resources or ResourceRequirementsArgs(
        requests={
            "cpu": "100m",
            "memory": "100Mi"
        },
    ),
    ports=[ContainerPortArgs(container_port=p) for p in ports] if ports else None,
)
the image that is being pulled by this code
b

brave-ambulance-98491

06/08/2022, 4:07 PM
Cool, that's going to be an image that's being pulled by your Kubernetes cluster (the container is being run in your cluster). The two links I sent should get you set up there!