A minimal container image to verify Kubernetes imagePullPolicy: Always behavior.
The image prints a build-time value and then sleeps indefinitely, making it easy to confirm which image version actually ran.
# Replace MY_VALUE with something unique (e.g., a timestamp or Git SHA)
docker build --build-arg BUILD_VALUE="MY_VALUE" -t myrepo/test-image:latest .docker run --rm myrepo/test-image:latestYou should see MY_VALUE printed once, after which the container will keep running.
apiVersion: v1
kind: Pod
metadata:
name: test-image
spec:
containers:
- name: test-image
image: myrepo/test-image:latest
imagePullPolicy: Always # Ensure the image is always pulledUpdate MY_VALUE and rebuild / push to verify that new pods pick up the latest image.