diff options
author | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | 2019-11-05 11:57:01 +0100 |
---|---|---|
committer | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | 2019-11-05 11:57:01 +0100 |
commit | 29611a96cb615a1d7198862fa3978d9bf320fde8 (patch) | |
tree | 22d66e1d7856453505060cc53f40d77ee667cd0c /kubernetes/pomba | |
parent | 55625677baeff1e32fd3f25b3526f2010323cb6f (diff) |
[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 <sylvain.desbureaux@orange.com>
Diffstat (limited to 'kubernetes/pomba')
-rw-r--r-- | kubernetes/pomba/charts/pomba-data-router/values.yaml | 4 |
1 files 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 |