kubernetes-for-java-developers
kubernetes-for-java-developers copied to clipboard
Update the imagePullPolicy to the correct value in configuration
- values.yaml has declared the pullPolicy property
- this value should be referred from the deployment as pullPolicy rather than imagePullPolicy
In values.yaml: pullPolicy
...
image:
tag: latest
pullPolicy: IfNotPresent
service:
type: LoadBalancer
externalPort: 80
internalPort: 8080
externalDebugPort: 5005
internalDebugPort: 5005
...
In greeting-deployment.yaml: imagePullPolicy
...
spec:
containers:
- name: greeting
image: {{ .Values.greeting.image }}:{{ .Values.image.tag }}
imagePullPolicy: {{ .Values.image.imagePullPolicy }}
...
I have changed the property in greeting-deployment to:
imagePullPolicy: {{ .Values.image.pullPolicy }}
to correspond to the property declared in values.