From d3cf8d8a2441ba93864753b0b99cbd49b12adc9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Am=C3=A9lie=20Loulergue?= Date: Thu, 19 Dec 2024 11:41:07 +0100 Subject: [PATCH] variabilize nginx and nginx purge imageName in values.yaml --- opensource/templates/nginx/nginx-deployment.yaml | 2 +- opensource/templates/nginx/nginx-purge-deployment.yaml | 2 +- opensource/values.yaml | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/opensource/templates/nginx/nginx-deployment.yaml b/opensource/templates/nginx/nginx-deployment.yaml index 8482f85..0e26d0d 100644 --- a/opensource/templates/nginx/nginx-deployment.yaml +++ b/opensource/templates/nginx/nginx-deployment.yaml @@ -16,7 +16,7 @@ spec: spec: containers: - name: {{ .Release.Name }}-nginx - image: bitnami/nginx:latest + image: {{ .Values.mediaProvider.nginx.imageName }} ports: - containerPort: 8080 volumeMounts: diff --git a/opensource/templates/nginx/nginx-purge-deployment.yaml b/opensource/templates/nginx/nginx-purge-deployment.yaml index 68a7987..1277f22 100644 --- a/opensource/templates/nginx/nginx-purge-deployment.yaml +++ b/opensource/templates/nginx/nginx-purge-deployment.yaml @@ -16,7 +16,7 @@ spec: spec: containers: - name: {{ .Release.Name }}-nginx-purge - image: emcniece/nginx-cache-purge:1.13-alpine + image: {{.Values.mediaProvider.nginxPurge.imageName}} ports: - containerPort: 8081 volumeMounts: diff --git a/opensource/values.yaml b/opensource/values.yaml index 998da91..d3e291b 100644 --- a/opensource/values.yaml +++ b/opensource/values.yaml @@ -50,7 +50,10 @@ mediaProvider: pvPathImage: '/images' service: 'http://media-service' nginx: + imageName: bitnami/nginx:latest service: 'http://nginx' + nginxPurge: + imageName: emcniece/nginx-cache-purge:1.13-alpine thumbor: service: 'http://thumbor-service' routes: