aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/sdnc/templates
diff options
context:
space:
mode:
authorAndreas Geissler <andreas-geissler@telekom.de>2023-08-16 17:18:49 +0200
committerAndreas Geissler <andreas-geissler@telekom.de>2023-09-29 13:42:29 +0200
commitcfd8434fe9484b9219560159094b174421d6d6a2 (patch)
tree0825b2650bb861444f18444f0279479e4dcbf7c4 /kubernetes/sdnc/templates
parent533403925a6b60f4113c4d9e54cd99be36dc9cc5 (diff)
[MARIADB][COMMON] Add support for mariadb-operator
Add template functions for the mariadb-operator resources and update the mariadb-galera chart to support them Change the flag to "useOperator" in cassandra to the global setup and additional labels for cassandra resources Changed Policy DB users to support the new mariadb User and fixed db.sh script to wait for the DB user creation Use the new readiness image 5.0.1 with the "app-name" option Change the MariaDB-Galera Service to the "primary" to avoid Deadlocks Fix previous SDNC patch (https://gerrit.onap.org/r/c/oom/+/135308) and temporary disable MariaDB for SDNR, as it is not compatible to MariaDB 11 Issue-ID: OOM-3236 Change-Id: Ie63fcc9c6d5fa802d38c592b449e7ff8553c2ab9 Signed-off-by: Andreas Geissler <andreas-geissler@telekom.de>
Diffstat (limited to 'kubernetes/sdnc/templates')
-rwxr-xr-xkubernetes/sdnc/templates/job.yaml4
-rwxr-xr-xkubernetes/sdnc/templates/sdnrdb-init-job.yaml13
-rw-r--r--kubernetes/sdnc/templates/statefulset.yaml6
3 files changed, 11 insertions, 12 deletions
diff --git a/kubernetes/sdnc/templates/job.yaml b/kubernetes/sdnc/templates/job.yaml
index e1d24b10fe..afe0e72f15 100755
--- a/kubernetes/sdnc/templates/job.yaml
+++ b/kubernetes/sdnc/templates/job.yaml
@@ -80,8 +80,8 @@ spec:
command:
- /app/ready.py
args:
- - --container-name
- - {{ include "common.mariadbService" . }}
+ - --app-name
+ - {{ include "common.mariadbAppName" . }}
env:
- name: NAMESPACE
valueFrom:
diff --git a/kubernetes/sdnc/templates/sdnrdb-init-job.yaml b/kubernetes/sdnc/templates/sdnrdb-init-job.yaml
index 4b2f773f06..e42757e5ba 100755
--- a/kubernetes/sdnc/templates/sdnrdb-init-job.yaml
+++ b/kubernetes/sdnc/templates/sdnrdb-init-job.yaml
@@ -28,9 +28,9 @@ spec:
- /app/ready.py
args:
{{- if .Values.config.sdnr.mariadb.enabled }}
- - --container-name
- - {{ include "common.mariadbService" . }}
- {{- else -}}
+ - --app-name
+ - {{ include "common.mariadbAppName" . }}
+ {{- else }}
- --container-name
- {{.Values.elasticsearch.nameOverride}}-elasticsearch
- --container-name
@@ -56,7 +56,7 @@ spec:
- |
{{- if .Values.config.sdnr.mariadb.enabled }}
"{{ .Values.config.binDir }}/createSdnrDb.sh";
- {{- end -}}
+ {{- end }}
sleep 90; "{{ .Values.config.binDir }}/startODL.sh"
env:
- name: SDNC_AAF_ENABLED
@@ -85,12 +85,12 @@ spec:
{{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "sdnrdb-secret" "key" "login") | indent 12 }}
- name: SDNRDBPASSWORD
{{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "sdnrdb-secret" "key" "password") | indent 12 }}
- {{- else -}}
+ {{- else }}
- name: SDNRDBURL
value: "http://{{ .Values.elasticsearch.service.name | default "sdnrdb"}}.{{.Release.Namespace}}:{{.Values.elasticsearch.service.port | default "9200"}}"
- name: SDNRDBPARAMETER
value: "-k"
- {{- end }}
+ {{- end }}
{{- if .Values.config.sdnr.mariadb.enabled }}
volumeMounts:
- mountPath: {{ .Values.config.binDir }}/createSdnrDb.sh
@@ -140,5 +140,4 @@ spec:
restartPolicy: Never
imagePullSecrets:
- name: "{{ include "common.namespace" . }}-docker-registry-key"
-
{{ end -}}
diff --git a/kubernetes/sdnc/templates/statefulset.yaml b/kubernetes/sdnc/templates/statefulset.yaml
index 20f82e0d74..4607b62d46 100644
--- a/kubernetes/sdnc/templates/statefulset.yaml
+++ b/kubernetes/sdnc/templates/statefulset.yaml
@@ -138,8 +138,8 @@ spec:
- /app/ready.py
args:
{{ if .Values.dgbuilder.enabled -}}
- - --container-name
- - {{ include "common.mariadbService" . }}
+ - --app-name
+ - {{ include "common.mariadbAppName" . }}
- --job-name
- {{ include "common.fullname" . }}-dbinit-job
{{ end -}}
@@ -313,7 +313,7 @@ spec:
value: {{ .Values.config.sdnr.mariadb.asyncHandling | default "false" | quote }}
- name: SDNR_ASYNC_POOLSIZE
value: {{ .Values.config.sdnr.mariadb.asyncPoolSize | default 200 | quote }}
- {{- else -}}
+ {{- else }}
- name: SDNRDBURL
value: "http://{{ .Values.elasticsearch.service.name | default "sdnrdb"}}.{{.Release.Namespace}}:{{.Values.elasticsearch.service.port | default "9200"}}"
{{- if .Values.config.sdnr.sdnrdbTrustAllCerts }}