1 ################################################################################
2 # Copyright (c) 2020 Nordix Foundation. #
4 # Licensed under the Apache License, Version 2.0 (the "License"); #
5 # you may not use this file except in compliance with the License. #
6 # You may obtain a copy of the License at #
8 # http://www.apache.org/licenses/LICENSE-2.0 #
10 # Unless required by applicable law or agreed to in writing, software #
11 # distributed under the License is distributed on an "AS IS" BASIS, #
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
13 # See the License for the specific language governing permissions and #
14 # limitations under the License. #
15 ################################################################################
19 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
21 replicas: {{ .Values.replicaCount }}
22 selector: {{- include "common.selectors" . | nindent 4 }}
24 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
26 hostname: {{ include "common.name" . }}
28 - name: {{ include "common.containername" . }}
29 image: {{ .Values.image.registry }}/{{ .Values.image.name }}:{{ .Values.image.tag }}
30 imagePullPolicy: {{ .Values.imagePullPolicy }}
32 - /opt/onap/sdnc/bin/startODL.sh
33 ports: {{- include "common.containerPorts" . | nindent 10 }}
34 {{- include "common.tcpsocketProbes" . | nindent 10 }}
36 - name: MYSQL_ROOT_PASSWORD
40 - name: MYSQL_PASSWORD
42 - name: MYSQL_DATABASE
44 - name: SDNC_CONFIG_DIR
45 value: '/opt/onap/sdnc/data/properties'
47 value: '/opt/onap/sdnc/bin'
50 - name: ODL_ADMIN_USERNAME
52 - name: ODL_ADMIN_PASSWORD
53 value: 'Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U'
57 value: 'Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U'
60 - name: A1_TRUSTSTORE_PASSWORD
62 - name: AAI_TRUSTSTORE_PASSWORD
67 metadata: {{- include "common.resourceMetadata" (dict "suffix" "db" "dot" . ) | nindent 2 }}
68 {{ $selectorsCtx := dict "matchLabels" (dict "app.kubernetes.io/component" "db") "dot" . }}
69 {{ $templateMetadataCtx := dict "labels" (dict "app.kubernetes.io/component" "db") "dot" . }}
71 selector: {{- include "common.selectors" $selectorsCtx | nindent 4 }}
73 metadata: {{- include "common.templateMetadata" $templateMetadataCtx | nindent 6 }}
76 - name: sdnc-db-container
77 image: nexus3.o-ran-sc.org:10001/mariadb:10.5
78 imagePullPolicy: IfNotPresent
80 - name: MYSQL_ROOT_HOST
82 - name: MYSQL_ROOT_PASSWORD