################################################################################ # Copyright (c) 2020 Nordix Foundation. # # # # Licensed under the Apache License, Version 2.0 (the "License"); # # you may not use this file except in compliance with the License. # # You may obtain a copy of the License at # # # # http://www.apache.org/licenses/LICENSE-2.0 # # # # Unless required by applicable law or agreed to in writing, software # # distributed under the License is distributed on an "AS IS" BASIS, # # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # # See the License for the specific language governing permissions and # # limitations under the License. # ################################################################################ kind: Deployment apiVersion: apps/v1 metadata: {{- include "common.resourceMetadata" . | nindent 2 }} spec: replicas: {{ .Values.replicaCount }} selector: {{- include "common.selectors" . | nindent 4 }} template: metadata: {{- include "common.templateMetadata" . | nindent 6 }} spec: hostname: {{ include "common.name" . }} containers: - name: {{ include "common.containername" . }} image: {{ .Values.image.registry }}/{{ .Values.image.name }}:{{ .Values.image.tag }} imagePullPolicy: {{ .Values.imagePullPolicy }} command: - /opt/onap/sdnc/bin/startODL.sh ports: {{- include "common.containerPorts" . | nindent 10 }} {{- include "common.tcpsocketProbes" . | nindent 10 }} env: - name: MYSQL_ROOT_PASSWORD value: 'itsASecret' - name: MYSQL_USER value: 'sdnctl' - name: MYSQL_PASSWORD value: 'gamma' - name: MYSQL_DATABASE value: 'sdnctl' - name: SDNC_CONFIG_DIR value: '/opt/onap/sdnc/data/properties' - name: SDNC_BIN value: '/opt/onap/sdnc/bin' - name: ODL_CERT_DIR value: '/tmp' - name: ODL_ADMIN_USERNAME value: admin - name: ODL_ADMIN_PASSWORD value: 'Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U' - name: ODL_USERNAME value: admin - name: ODL_PASSWORD value: 'Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U' - name: SDNC_DB_INIT value: 'true' - name: A1_TRUSTSTORE_PASSWORD value: 'a1adapter' - name: AAI_TRUSTSTORE_PASSWORD value: 'changeit' --- apiVersion: apps/v1 kind: Deployment metadata: {{- include "common.resourceMetadata" (dict "suffix" "db" "dot" . ) | nindent 2 }} {{ $selectorsCtx := dict "matchLabels" (dict "app.kubernetes.io/component" "db") "dot" . }} {{ $templateMetadataCtx := dict "labels" (dict "app.kubernetes.io/component" "db") "dot" . }} spec: selector: {{- include "common.selectors" $selectorsCtx | nindent 4 }} template: metadata: {{- include "common.templateMetadata" $templateMetadataCtx | nindent 6 }} spec: containers: - name: sdnc-db-container image: nexus3.o-ran-sc.org:10001/mariadb:10.5 imagePullPolicy: IfNotPresent env: - name: MYSQL_ROOT_HOST value: '%' - name: MYSQL_ROOT_PASSWORD value: 'itsASecret' ports: - containerPort: 3306