Skip to content

Commit 79fdd2d

Browse files
authored
infra: Always pull latest images (#265)
The Always pull policy is needed for the latest tag to force Kubernetes to pull the newest image on every pod creation, even if an image with that tag already exists locally. Without this, pods might use outdated cached versions since the latest tag is mutable and can point to different images over time.
1 parent 6b84493 commit 79fdd2d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

deploy/pkg/k8s/registry.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,9 @@ func DeployMCPRegistry(ctx *pulumi.Context, cluster *providers.ProviderInfo, env
6262
Spec: &corev1.PodSpecArgs{
6363
Containers: corev1.ContainerArray{
6464
&corev1.ContainerArgs{
65-
Name: pulumi.String("mcp-registry"),
66-
Image: pulumi.String("ghcr.io/modelcontextprotocol/registry:latest"),
65+
Name: pulumi.String("mcp-registry"),
66+
Image: pulumi.String("ghcr.io/modelcontextprotocol/registry:latest"),
67+
ImagePullPolicy: pulumi.String("Always"),
6768
Ports: corev1.ContainerPortArray{
6869
&corev1.ContainerPortArgs{
6970
ContainerPort: pulumi.Int(8080),

0 commit comments

Comments
 (0)