diff --git a/K8s/helm/templates/cart-deployment.yaml b/K8s/helm/templates/cart-deployment.yaml index 630b67465..9177d5402 100644 --- a/K8s/helm/templates/cart-deployment.yaml +++ b/K8s/helm/templates/cart-deployment.yaml @@ -20,7 +20,8 @@ spec: containers: - name: cart image: {{ .Values.image.repo }}/rs-cart:{{ .Values.image.version }} - # agent networking access + imagePullPolicy: {{ .Values.image.pullPolicy }} + # agent networking access env: - name: INSTANA_AGENT_HOST valueFrom: diff --git a/K8s/helm/templates/catalogue-deployment.yaml b/K8s/helm/templates/catalogue-deployment.yaml index 94e18d322..f1b6ca792 100644 --- a/K8s/helm/templates/catalogue-deployment.yaml +++ b/K8s/helm/templates/catalogue-deployment.yaml @@ -20,6 +20,7 @@ spec: containers: - name: catalogue image: {{ .Values.image.repo }}/rs-catalogue:{{ .Values.image.version }} + imagePullPolicy: {{ .Values.image.pullPolicy }} env: - name: INSTANA_AGENT_HOST valueFrom: diff --git a/K8s/helm/templates/dispatch-deployment.yaml b/K8s/helm/templates/dispatch-deployment.yaml index 401a4fa92..b1ba5738d 100644 --- a/K8s/helm/templates/dispatch-deployment.yaml +++ b/K8s/helm/templates/dispatch-deployment.yaml @@ -20,6 +20,7 @@ spec: containers: - name: dispatch image: {{ .Values.image.repo }}/rs-dispatch:{{ .Values.image.version }} + imagePullPolicy: {{ .Values.image.pullPolicy }} env: # agent networking access - name: INSTANA_AGENT_HOST diff --git a/K8s/helm/templates/mongodb-deployment.yaml b/K8s/helm/templates/mongodb-deployment.yaml index 2485020af..246f438dd 100644 --- a/K8s/helm/templates/mongodb-deployment.yaml +++ b/K8s/helm/templates/mongodb-deployment.yaml @@ -20,6 +20,7 @@ spec: containers: - name: mongodb image: {{ .Values.image.repo }}/rs-mongodb:{{ .Values.image.version }} + imagePullPolicy: {{ .Values.image.pullPolicy }} ports: - containerPort: 27017 resources: diff --git a/K8s/helm/templates/mysql-deployment.yaml b/K8s/helm/templates/mysql-deployment.yaml index d517fb5c2..1e83f75bf 100644 --- a/K8s/helm/templates/mysql-deployment.yaml +++ b/K8s/helm/templates/mysql-deployment.yaml @@ -20,6 +20,7 @@ spec: containers: - name: mysql image: {{ .Values.image.repo }}/rs-mysql-db:{{ .Values.image.version }} + imagePullPolicy: {{ .Values.image.pullPolicy }} # added for Istio securityContext: capabilities: diff --git a/K8s/helm/templates/payment-deployment.yaml b/K8s/helm/templates/payment-deployment.yaml index f1e05c6a3..c456c55ee 100644 --- a/K8s/helm/templates/payment-deployment.yaml +++ b/K8s/helm/templates/payment-deployment.yaml @@ -23,6 +23,7 @@ spec: containers: - name: payment image: {{ .Values.image.repo }}/rs-payment:{{ .Values.image.version }} + imagePullPolicy: {{ .Values.image.pullPolicy }} # agent networking access env: - name: INSTANA_AGENT_HOST diff --git a/K8s/helm/templates/rabbitmq-deployment.yaml b/K8s/helm/templates/rabbitmq-deployment.yaml index a7220257c..6d72799a1 100644 --- a/K8s/helm/templates/rabbitmq-deployment.yaml +++ b/K8s/helm/templates/rabbitmq-deployment.yaml @@ -20,6 +20,7 @@ spec: containers: - name: rabbitmq image: rabbitmq:3.7-management-alpine + imagePullPolicy: {{ .Values.image.pullPolicy }} ports: - containerPort: 5672 - containerPort: 15672 diff --git a/K8s/helm/templates/ratings-deployment.yaml b/K8s/helm/templates/ratings-deployment.yaml index 4470730d0..3b15979f5 100644 --- a/K8s/helm/templates/ratings-deployment.yaml +++ b/K8s/helm/templates/ratings-deployment.yaml @@ -20,6 +20,7 @@ spec: containers: - name: ratings image: {{ .Values.image.repo }}/rs-ratings:{{ .Values.image.version }} + imagePullPolicy: {{ .Values.image.pullPolicy }} ports: - containerPort: 80 resources: diff --git a/K8s/helm/templates/redis-statefulset.yaml b/K8s/helm/templates/redis-statefulset.yaml index 8fef9b641..ddb400258 100644 --- a/K8s/helm/templates/redis-statefulset.yaml +++ b/K8s/helm/templates/redis-statefulset.yaml @@ -21,6 +21,7 @@ spec: containers: - name: redis image: redis:4.0.6 + imagePullPolicy: {{ .Values.image.pullPolicy }} ports: - containerPort: 6379 volumeMounts: diff --git a/K8s/helm/templates/shipping-deployment.yaml b/K8s/helm/templates/shipping-deployment.yaml index 54d94a2c7..9f65418e4 100644 --- a/K8s/helm/templates/shipping-deployment.yaml +++ b/K8s/helm/templates/shipping-deployment.yaml @@ -20,6 +20,7 @@ spec: containers: - name: shipping image: {{ .Values.image.repo }}/rs-shipping:{{ .Values.image.version }} + imagePullPolicy: {{ .Values.image.pullPolicy }} ports: - containerPort: 8080 # it's Java it needs lots of memory diff --git a/K8s/helm/templates/user-deployment.yaml b/K8s/helm/templates/user-deployment.yaml index b0e4461f0..9f202fcfe 100644 --- a/K8s/helm/templates/user-deployment.yaml +++ b/K8s/helm/templates/user-deployment.yaml @@ -20,6 +20,7 @@ spec: containers: - name: user image: {{ .Values.image.repo }}/rs-user:{{ .Values.image.version }} + imagePullPolicy: {{ .Values.image.pullPolicy }} env: # agent networking access - name: INSTANA_AGENT_HOST diff --git a/K8s/helm/templates/web-deployment.yaml b/K8s/helm/templates/web-deployment.yaml index e654c576f..bf6915e8e 100644 --- a/K8s/helm/templates/web-deployment.yaml +++ b/K8s/helm/templates/web-deployment.yaml @@ -20,6 +20,7 @@ spec: containers: - name: web image: {{ .Values.image.repo }}/rs-web:{{ .Values.image.version }} + imagePullPolicy: {{ .Values.image.pullPolicy }} {{- if .Values.eum.key }} env: - name: INSTANA_EUM_KEY diff --git a/K8s/helm/values.yaml b/K8s/helm/values.yaml index 25c7917e6..80096f17e 100644 --- a/K8s/helm/values.yaml +++ b/K8s/helm/values.yaml @@ -3,6 +3,7 @@ image: repo: robotshop version: latest + pullPolicy: IfNotPresent # Alternative payment gateway URL # Default is https://www.paypal.com