summaryrefslogtreecommitdiffstats
path: root/kubernetes/common/mariadb-galera
AgeCommit message (Collapse)AuthorFilesLines
2020-02-01[COMMON] Don't create dummy mysql DB by default in a shared instanceKrzysztof Opasiak1-2/+2
When deploying a shared mariadb-galera instance using common chart a dummy database is created based on the default values n the chart. This is obviously unnecessary and creates an obviousl security issue. That's why let's make sure that when we deploy a shared mariadb instance no dummy databases are created. Issue-ID: OOM-2053 Change-Id: I1130cb8eb555b15a2d8b365102d69e32259233eb Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
2020-02-01[COMMON] Provide convenience templates for mariadb secretsKrzysztof Opasiak3-7/+7
Usage of plain strings is very fragile especially when you try to change them. That's why instead of depending on strings let's just define a few convenience templates to be used in projects that use mariadb-galera chart. Issue-ID: OOM-2249 Change-Id: Ib867d34090b06a15ea3898a9524f5e3d04a656c0 Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
2020-02-01[ONAP-wide] Replace .Release.Name with common.releaseKrzysztof Opasiak6-9/+9
ONAP is too big to be deployed using helm install so we need to use a custom helm plugin helm deploy. This script deloys onap component by component instead of deploying evrything at once. Unfortunately this script also modifies the helm release by appending component name to it. As a result of this behavior our objects are called for example: onap-mariadb-galera-mariadb-galera-0 instead of just being called onap-mariadb-galera-0. This patch simplifies this naming convention by replacing all direct usages of .Release.Name with common.release macro which strips the component specific part from the release name. Issue-ID: OOM-2275 Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com> Change-Id: Ia8cead50d305adb00eef666d0a1ace74479b5183
2019-12-21Use common secret template in mariadb-galeraKrzysztof Opasiak4-34/+27
Instead of defining the secret in some custom way let's use the common template (common.secret). To avoid some issues in ONAP components that depend on this chart let's do not remove for now the default username and password. We will do this when all services properly utylize secrets to store mariadb credentials. Issue-ID: OOM-2053 Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com> Change-Id: I78e224299cccd9632192ee03a45cd077e6f0906f
2019-12-05[Common] Use global storage templates for PVCSylvain Desbureaux5-85/+26
OOM has now templates in order to create the needed PVC, using: * a PV with a specific class when using a common nfs mount path between nodes (sames as today use) --> is the default behavior today * or a storage class if we want to use dynamic PV. On this case, we use (in order of priority): - persistence.storageClassOverride if set on the chart - global.persistence.storageClass if set globally - persistence.storageClass if set on the chart I've also aligned the PV creation of the different charts. I've also aligned the PVC creation of the different charts. I've removed unused mysql chart and (badly) used nfs-provisioner chart. I've also make cassandra backup work with dynamic PV (but RWX only for now). Change-Id: I0ea3f8c7514ca648d94b6c682684c06b822bbe0a Issue-ID: OOM-2229 Issue-ID: OOM-2228 Issue-ID: OOM-2227 Issue-ID: OOM-1227 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
2019-11-20Create templates for global storage useSylvain Desbureaux8-25/+124
Two helper functions are defined: - common.storageClass: will print the right storage class according to properties set or not: * if no storage class set --> use previous behavior (storage class named `common.fullname-data`. * if a "persistence.storageClassOverride" is set for this specific chart, we use it (if it's "-", we set to default one) * if a "global.persistence.storageClass" has been set (and no storageClassOverride for this chart), we use it (same specificity than storageClassOverride) * if a "persistence.storageClass) has been set (and no storageClassOverride nor global one), we use it (same specificity than storageClassOverride) - common.needPV: will print "True" if we need a PV (no storageClass and storageClassOverride being set). an implementation example with mariadb-galera is provided. Issue-ID: OOM-1500 Change-Id: I20a667e17b00c255c4b828e3c66f9c0df7c8755c Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
2019-10-28Remove unused PVC from mariadb-galera chartSylvain Desbureaux1-48/+0
Used PVC(s) are actually created in the statefulset Change-Id: I24f2c3ff0934178c9af06bfee60b4b6e35cfe953 Issue-ID: OOM-2155 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
2019-09-04Backup Charts for mariadb clusterAkansha Dua4-1/+334
Issue-ID: OOM-2088 Signed-off-by: Akansha Dua <akansha.dua@amdocs.com> Change-Id: Ie7f25c812984abc8631a86b2385dd14a365a8ea5
2019-08-29Move Storage access to RWOSylvain Desbureaux1-1/+1
Mariadb PVC are created in 1 to 1 mapping with galera replicas thus we don't need RWX. Change-Id: I438855b2d4b2f90932387e056c168b0a995975a5 Issue-ID: OOM-2081 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
2019-07-11Moving Helm Chart version for El AltoMike Elliott2-2/+2
Updating all helm chart versions to 5.0.0 for the El Alto release. Merge will be co-ordinated with the merge of a separate aai/oom patch. Please do not merge until this coordination has completed. Issue-ID: OOM-1980 Signed-off-by: Mike Elliott <mike.elliott@amdocs.com> Change-Id: I31daaebeacea33565f13affd2fa28fb15fe948ba
2019-05-22add timeout for mariadb readinessyangyan2-0/+2
Issue-ID: VFC-1392 Change-Id: I8b4a97dbac6245c7747a31fdc557ffd8d9a974d5 Signed-off-by: yangyan <yangyanyj@chinamobile.com>
2019-04-12mariadb-galera initContainer not honour pullPolicymahendrr1-0/+1
Change-Id: Ie1f76bd81c001b688aaf2a34b04b3399520a6999 Issue-ID: OOM-1794 Signed-off-by: mahendrr <mahendra.raghuwanshi@amdocs.com>
2019-02-22OOM-1373 Add missing label release to componentssushil masal2-0/+16
Issue-ID: OOM-1373 Change-Id: Ifc6593a7e8f8622bfec29b942c5c75cdb59c997d Signed-off-by: sushil masal <sushil.masal@amdocs.com>
2019-02-10Update Chart version for Dublin ReleaseMike Elliott2-2/+2
All charts are being bumped from 3.0.0 to 4.0.0 for the Dublin release. In addition the requirement.yaml files have been updated to allow for chart versions that include timestamp suffix. A following on patch will take care of changes to the OOM Makefiles to support injection of the timestamp versions. Change-Id: Ie03d86fad2027e975e8b9106e3a828e4335037cb Issue-ID: OOM-1642 Signed-off-by: Mike Elliott <mike.elliott@amdocs.com>
2018-11-23Use flavors for resources in mariadb-galera deploySylvain Desbureaux1-6/+15
For Casablanca release, flavors have been set up for choosing the "right" resource requests and limits. Although the deployment is using the right way for that, mariadb-galera charts values.yaml was not. This commit makes values.yaml aligned with flavors. Change-Id: If51e8c5ad41dda7fa35c3aaaa58e60752094f133 Issue-ID: OOM-1528 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
2018-11-02Create helm charts for oof-cmsoJerry Flood2-4/+4
This change provides the necessary helm charts to instantiate the oof-cmso database (mariadb-galera) and oof-cmso service to support the scheduling of change management requests. Issue-ID: OPTFRA-373 Change-Id: I5e5024849f251eee29d3d8697e46756211b5c640 Signed-off-by: Jerry Flood <jflood@att.com>
2018-10-30Add missing selectors on PVCAlexis de Talhouët1-0/+3
Change-Id: If156e738a26c7c19043657c97ac327125c5162db Issue-ID: OOM-1486 Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
2018-09-25Updating charts to use common resource templateMandeep Khinda1-1/+1
Issue-ID: OOM-1145 Change-Id: I1510339a820802554b6e8b9a201619ef66be17a0 Signed-off-by: Mandeep Khinda <mandeep.khinda@amdocs.com>
2018-09-24Update Chart versions to 3.0Mike Elliott2-2/+2
All Chart versions and requirement dependencies have been updated to 3.0 for Casablanca release. Change-Id: Iea57e5da09ea8a8bac0a415b9a6196151cbea10b Issue-ID: OOM-1354 Signed-off-by: Mike Elliott <mike.elliott@amdocs.com>
2018-09-20reducing resource request numbersMandeep Khinda1-2/+2
Issue-ID: OOM-1145 Change-Id: Ic2770086914e7cf1a96f2b6e5fd04bf1bd3f75d8 Signed-off-by: Mandeep Khinda <mandeep.khinda@amdocs.com>
2018-09-13Add mariadb-galera port name overrideMike Elliott2-5/+5
The service name was being used as the port name. There is a 15 character limit for a port name in Helm. This patch allows another chart to configure the port name that is used via service.portName. Change-Id: Ie4b805a5e58a53b10480961e543267ca8bb1dc00 Issue-ID: CCSDK-523 Signed-off-by: Mike Elliott <mike.elliott@amdocs.com>
2018-09-13Merge "Upgrade APPC to use common mariadb galera charts"Mike Elliott4-26/+29
2018-09-07Upgrade APPC to use common mariadb galera chartspramod4-26/+43
Change-Id: I3537415a9266bc388aca146f86984c8a1585ce4e Issue-ID: OOM-1205 Signed-off-by: pramod <pramod.kumarsharma@amdocs.com>
2018-09-04Apache 2 License updation for common,helm,robot,sovaibhavjayas8-0/+104
Issue-ID: OOM-1356 Change-Id: I656f4ce722cd239933aa5a088308da5e9de7a7db Signed-off-by: vaibhavjayas <vaibhav.jayas@amdocs.com>
2018-05-10Improve docker registry secret managementBorislavG1-1/+0
Change-Id: I2d1ff878c215becc9856af184eb0b11defd75e1d Issue-ID: OOM-1064 Signed-off-by: BorislavG <Borislav.Glozman@amdocs.com>
2018-05-06Fix inconsistent repository referencesBorislavG1-3/+3
Issue-ID: OOM-874 Changes to be committed: modified: aai/charts/aai-babel/templates/deployment.yaml modified: aai/charts/aai-champ/templates/deployment.yaml modified: aai/charts/aai-data-router/templates/deployment.yaml modified: aai/charts/aai-gizmo/templates/deployment.yaml modified: aai/charts/aai-modelloader/templates/deployment.yaml modified: aai/charts/aai-resources/templates/deployment.yaml modified: aai/charts/aai-search-data/templates/deployment.yaml modified: aai/charts/aai-sparky-be/templates/deployment.yaml modified: aai/charts/aai-traversal/templates/deployment.yaml modified: aai/charts/aai-traversal/templates/job.yaml modified: appc/charts/appc-cdt/templates/deployment.yaml modified: appc/templates/statefulset.yaml modified: clamp/charts/mariadb/templates/deployment.yaml modified: clamp/templates/deployment.yaml modified: cli/templates/deployment.yaml modified: common/dgbuilder/templates/deployment.yaml modified: common/mariadb-galera/templates/statefulset.yaml modified: dcaegen2/charts/dcae-bootstrap/templates/job.yaml modified: dcaegen2/charts/dcae-cloudify-manager/templates/deployment.yaml modified: dcaegen2/charts/dcae-healthcheck/templates/deployment.yaml modified: dcaegen2/charts/dcae-redis/templates/statefulset.yaml modified: dmaap/charts/dmaap-bus-controller/templates/deployment.yaml modified: dmaap/charts/dmaap-bus-controller/values.yaml modified: esr/charts/esr-gui/templates/deployment.yaml modified: esr/templates/deployment.yaml modified: msb/charts/kube2msb/templates/deployment.yaml modified: msb/charts/msb-discovery/templates/deployment.yaml modified: msb/charts/msb-eag/templates/deployment.yaml modified: msb/charts/msb-iag/templates/deployment.yaml modified: multicloud/charts/multicloud-ocata/templates/deployment.yaml modified: multicloud/charts/multicloud-vio/templates/deployment.yaml modified: multicloud/charts/multicloud-windriver/templates/deployment.yaml modified: multicloud/templates/deployment.yaml modified: policy/charts/brmsgw/templates/deployment.yaml modified: policy/charts/drools/charts/nexus/templates/deployment.yaml modified: policy/charts/drools/templates/statefulset.yaml modified: policy/charts/mariadb/templates/deployment.yaml modified: policy/charts/pdp/templates/statefulset.yaml modified: policy/templates/deployment.yaml modified: portal/charts/portal-app/templates/deployment.yaml modified: portal/charts/portal-cassandra/templates/deployment.yaml modified: portal/charts/portal-mariadb/templates/deployment.yaml modified: portal/charts/portal-sdk/templates/deployment.yaml modified: portal/charts/portal-widget/templates/deployment.yaml modified: portal/charts/portal-zookeeper/templates/deployment.yaml modified: sdnc/charts/dmaap-listener/templates/deployment.yaml modified: sdnc/charts/sdnc-portal/templates/deployment.yaml modified: sdnc/charts/ueb-listener/templates/deployment.yaml modified: sdnc/templates/statefulset.yaml modified: uui/charts/uui-server/templates/deployment.yaml modified: uui/templates/deployment.yaml modified: vid/charts/mariadb/templates/deployment.yaml modified: vid/templates/deployment.yaml Change-Id: I00aaa1eff3b870db3b475365eeda3f2e10aef6b9 Signed-off-by: BorislavG <Borislav.Glozman@amdocs.com>
2018-04-24Make all services independent of helm Release.NameBorislavG2-4/+5
Issue-ID: OOM-906 Change-Id: Ic65127d3981cb0a696c784392cab59fbf06b1e66 Signed-off-by: BorislavG <Borislav.Glozman@amdocs.com>
2018-04-18Add Common Helm Chart "mariadb-galera"vitalied11-0/+418
A new common helm chart that will deploy a Galera cluster for MariaDB. Please note that this chart is still work in progress and more features will be added or improved. Change-Id: Ia4487666798f83d2869c35bcfaacc5516068f194 Issue-ID: OOM-758 Signed-off-by: vitalied <vitalied@amdocs.com>