From eab21fdce983183fd2ed3d7d5ba0f77ff9d8823f Mon Sep 17 00:00:00 2001 From: Ishaan Mittal Date: Thu, 16 Jan 2025 21:58:24 +0530 Subject: [PATCH] fix: nginx readonly file issue for ubi images for frontend images --- .../templates/cost-analyzer-deployment-template.yaml | 4 ++++ cost-analyzer/templates/frontend-deployment-template.yaml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/cost-analyzer/templates/cost-analyzer-deployment-template.yaml b/cost-analyzer/templates/cost-analyzer-deployment-template.yaml index ae4abf4eb..b3383e2c4 100644 --- a/cost-analyzer/templates/cost-analyzer-deployment-template.yaml +++ b/cost-analyzer/templates/cost-analyzer-deployment-template.yaml @@ -106,6 +106,8 @@ spec: {{- end }} - name: tmp emptyDir: {} + - name: log + emptyDir: {} {{- if and .Values.kubecostFrontend.enabled (not .Values.federatedETL.agentOnly) (not (eq (include "frontend.deployMethod" .) "haMode")) }} - name: nginx-conf configMap: @@ -1154,6 +1156,8 @@ spec: mountPath: /var/lib/nginx/tmp - name: tmp mountPath: /var/run + - name: log + mountPath: /var/log/nginx - name: nginx-conf mountPath: /etc/nginx/conf.d/ {{- if .Values.global.containerSecuritycontext }} diff --git a/cost-analyzer/templates/frontend-deployment-template.yaml b/cost-analyzer/templates/frontend-deployment-template.yaml index e5d26ff78..77585cac1 100644 --- a/cost-analyzer/templates/frontend-deployment-template.yaml +++ b/cost-analyzer/templates/frontend-deployment-template.yaml @@ -68,6 +68,8 @@ spec: volumes: - name: tmp emptyDir: {} + - name: log + emptyDir: {} - name: nginx-conf configMap: name: nginx-conf @@ -145,6 +147,8 @@ spec: mountPath: /var/lib/nginx/tmp - name: tmp mountPath: /var/run + - name: log + mountPath: /var/log/nginx - name: nginx-conf mountPath: /etc/nginx/conf.d/ {{- if .Values.global.containerSecuritycontext }}