blob: f6009af391b8a73919280f482439abd0d24b0cc1 [file] [log] [blame]
Sylvain Desbureaux70070412020-11-09 21:58:48 +01001# Copyright © 2018 Amdocs, AT&T
2# Modifications Copyright © 2018 Bell Canada
Sylvain Desbureaux6212bb22021-01-18 11:43:33 +01003# Modifications Copyright © 2020, 2021 Orange
Sylvain Desbureaux70070412020-11-09 21:58:48 +01004#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16
17#################################################################
18# Global configuration defaults.
19#################################################################
Sylvain Desbureaux6212bb22021-01-18 11:43:33 +010020global: {}
Sylvain Desbureaux70070412020-11-09 21:58:48 +010021
22#################################################################
Sylvain Desbureaux1e997192021-02-28 14:59:22 +010023# Certificate configuration
24#################################################################
25certInitializer:
26 nameOverride: aai-babel-cert-initializer
27 aafDeployFqi: deployer@people.osaaf.org
28 aafDeployPass: demo123456!
29 # aafDeployCredsExternalSecret: some secret
30 fqdn: aai
31 fqi: aai@aai.onap.org
32 public_fqdn: aai.onap.org
33 cadi_longitude: "0.0"
34 cadi_latitude: "0.0"
35 app_ns: org.osaaf.aaf
36 credsPath: /opt/app/osaaf/local
37 fqi_namespace: org.onap.aai
38 aaf_add_config: |
39 echo "*** changing them into shell safe ones"
40 export KEYSTORE_PASSWORD=$(tr -cd '[:alnum:]' < /dev/urandom | fold -w64 | head -n1)
41 export TRUSTSTORE_PASSWORD=$(tr -cd '[:alnum:]' < /dev/urandom | fold -w64 | head -n1)
42 cd {{ .Values.credsPath }}
43 keytool -storepasswd -new "${KEYSTORE_PASSWORD}" \
44 -storepass "${cadi_keystore_password_p12}" \
45 -keystore {{ .Values.fqi_namespace }}.p12
46 keytool -storepasswd -new "${TRUSTSTORE_PASSWORD}" \
47 -storepass "${cadi_truststore_password}" \
48 -keystore {{ .Values.fqi_namespace }}.trust.jks
49 echo "*** writing passwords into prop file"
50 echo "KEYSTORE_PASSWORD=${KEYSTORE_PASSWORD}" > {{ .Values.credsPath }}/mycreds.prop
51 echo "KEY_STORE_PASSWORD=${KEYSTORE_PASSWORD}" >> {{ .Values.credsPath }}/mycreds.prop
52 echo "KEY_MANAGER_PASSWORD=${KEYSTORE_PASSWORD}" >> {{ .Values.credsPath }}/mycreds.prop
53 echo "TRUSTSTORE_PASSWORD=${TRUSTSTORE_PASSWORD}" >> {{ .Values.credsPath }}/mycreds.prop
54 echo "*** change ownership of certificates to targeted user"
55 chown -R 1000 {{ .Values.credsPath }}
56
57#################################################################
Sylvain Desbureaux70070412020-11-09 21:58:48 +010058# Application configuration defaults.
59#################################################################
60
61# application image
wr148d4d0e62a2022-03-21 16:31:45 -040062image: onap/babel:1.9.5
Sylvain Desbureaux70070412020-11-09 21:58:48 +010063
64flavor: small
65flavorOverride: small
66
Sylvain Desbureaux70070412020-11-09 21:58:48 +010067# default number of instances
68replicaCount: 1
69
70nodeSelector: {}
71
72affinity: {}
73
74# probe configuration parameters
75liveness:
76 initialDelaySeconds: 10
77 periodSeconds: 10
78 # necessary to disable liveness probe when setting breakpoints
79 # in debugger so K8s doesn't restart unresponsive container
80 enabled: false
81
82readiness:
83 initialDelaySeconds: 10
84 periodSeconds: 10
85
86service:
87 type: NodePort
osk1146127fd7d82021-06-18 00:51:17 +020088 portName: http
Sylvain Desbureaux70070412020-11-09 21:58:48 +010089 externalPort: 9516
90 internalPort: 9516
91 nodePort: 79
92
93ingress:
94 enabled: false
95 service:
96 - baseaddr: "aaibabel"
97 name: "aai-babel"
98 port: 9516
99 config:
100 ssl: "redirect"
101
102resources:
103 small:
104 limits:
105 cpu: 2
106 memory: 4Gi
107 requests:
108 cpu: 0.5
109 memory: 1Gi
110 large:
111 limits:
112 cpu: 4
113 memory: 8Gi
114 requests:
115 cpu: 2
116 memory: 2Gi
117 unlimited: {}
farida azmyd8937332021-03-09 12:20:42 +0200118
119#Pods Service Account
120serviceAccount:
121 nameOverride: aai-babel
122 roles:
123 - read
Maciej Wereskid523d122021-09-21 11:22:13 +0200124
125#Log configuration
126log:
127 path: /var/log/onap
128logConfigMapNamePrefix: '{{ include "common.fullname" . }}'