From 29611a96cb615a1d7198862fa3978d9bf320fde8 Mon Sep 17 00:00:00 2001 From: Sylvain Desbureaux Date: Tue, 5 Nov 2019 11:57:01 +0100 Subject: [POMBA] Move Data Router logs PVC to RWO Data Router pods writes logs directly in the PVC within generic name files: debian@control01-onap-master:~$ ls -l /dockerdata-nfs/onap-pomba/pomba/data-router/logs/application.log -rw-r--r-- 1 root root 125 Nov 5 09:56 /dockerdata-nfs/onap-pomba/pomba/data-router/logs/application.log debian@control01-onap-master:~$ ls -l /dockerdata-nfs/onap-pomba/pomba/data-router/logs/ total 4 drwxr-xr-x 2 root root 76 Nov 5 09:56 AAI-DR -rw-r--r-- 1 root root 125 Nov 5 09:56 application.log drwxr-xr-x 3 root root 18 Nov 5 09:54 data-router debian@control01-onap-master:~$ ls -l /dockerdata-nfs/onap-pomba/pomba/data-router/logs/data-router/ total 0 drwxrwxrwx 2 root root 6 Nov 5 09:54 logs debian@control01-onap-master:~$ ls -l /dockerdata-nfs/onap-pomba/pomba/data-router/logs/data-router/logs/ total 0 debian@control01-onap-master:~$ ls -l /dockerdata-nfs/onap-pomba/pomba/data-router/logs/AAI-DR/ total 12 -rw-r--r-- 1 root root 0 Nov 5 09:56 audit.log -rw-r--r-- 1 root root 0 Nov 5 09:56 debug.log -rw-r--r-- 1 root root 7519 Nov 5 09:56 error.log -rw-r--r-- 1 root root 666 Nov 5 09:56 metrics.log Thus if two pods were writing, there would be issue as each one would want to write. Then this PVC must be used by one POD only and RWO is sufficent Change-Id: I0087487fba715b4b0804de51544238f08fed1d3c Issue-ID: LOG-1114 Signed-off-by: Sylvain Desbureaux --- kubernetes/pomba/charts/pomba-data-router/values.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kubernetes/pomba/charts/pomba-data-router/values.yaml b/kubernetes/pomba/charts/pomba-data-router/values.yaml index ec70f4b619..3929e41768 100644 --- a/kubernetes/pomba/charts/pomba-data-router/values.yaml +++ b/kubernetes/pomba/charts/pomba-data-router/values.yaml @@ -24,7 +24,7 @@ global: persistence: {} readinessRepository: oomk8s readinessImage: readiness-check:2.0.0 - + # application image repository: nexus3.onap.org:10001 image: onap/data-router:1.3.3 @@ -88,7 +88,7 @@ persistence: ## GKE, AWS & OpenStack) ## ## storageClass: "-" - accessMode: ReadWriteMany + accessMode: ReadWriteOnce size: 2Gi mountPath: /dockerdata-nfs mountSubPath: pomba/data-router/logs -- cgit 1.2.3-korg