kubernetes-for-java-developers icon indicating copy to clipboard operation
kubernetes-for-java-developers copied to clipboard

Update the imagePullPolicy to the correct value in configuration

Open albihasani94 opened this issue 6 years ago • 0 comments

  • 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.

albihasani94 avatar Sep 30 '19 10:09 albihasani94