Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 1 | # Copyright © 2018 Amdocs, AT&T |
| 2 | # Modifications Copyright © 2018 Bell Canada |
Sylvain Desbureaux | 6212bb2 | 2021-01-18 11:43:33 +0100 | [diff] [blame] | 3 | # Modifications Copyright © 2020, 2021 Orange |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 4 | # |
| 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 Desbureaux | 6212bb2 | 2021-01-18 11:43:33 +0100 | [diff] [blame] | 20 | global: {} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 21 | |
| 22 | ################################################################# |
Sylvain Desbureaux | 1e99719 | 2021-02-28 14:59:22 +0100 | [diff] [blame] | 23 | # Certificate configuration |
| 24 | ################################################################# |
| 25 | certInitializer: |
| 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 Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 58 | # Application configuration defaults. |
| 59 | ################################################################# |
| 60 | |
| 61 | # application image |
wr148d | 702d68a | 2022-10-20 18:26:54 -0400 | [diff] [blame] | 62 | image: onap/babel:1.11.0 |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 63 | |
| 64 | flavor: small |
| 65 | flavorOverride: small |
| 66 | |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 67 | # default number of instances |
| 68 | replicaCount: 1 |
| 69 | |
Rommel Pawar | 63db716 | 2022-11-16 10:11:24 -0800 | [diff] [blame] | 70 | updateStrategy: |
| 71 | type: RollingUpdate |
| 72 | maxUnavailable: 0 |
| 73 | maxSurge: 1 |
| 74 | |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 75 | nodeSelector: {} |
| 76 | |
| 77 | affinity: {} |
| 78 | |
| 79 | # probe configuration parameters |
| 80 | liveness: |
| 81 | initialDelaySeconds: 10 |
| 82 | periodSeconds: 10 |
| 83 | # necessary to disable liveness probe when setting breakpoints |
| 84 | # in debugger so K8s doesn't restart unresponsive container |
| 85 | enabled: false |
| 86 | |
| 87 | readiness: |
| 88 | initialDelaySeconds: 10 |
| 89 | periodSeconds: 10 |
| 90 | |
| 91 | service: |
| 92 | type: NodePort |
osk11461 | 27fd7d8 | 2021-06-18 00:51:17 +0200 | [diff] [blame] | 93 | portName: http |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 94 | externalPort: 9516 |
| 95 | internalPort: 9516 |
| 96 | nodePort: 79 |
| 97 | |
| 98 | ingress: |
| 99 | enabled: false |
| 100 | service: |
Andreas Geissler | 51900a9 | 2022-08-03 13:10:35 +0200 | [diff] [blame] | 101 | - baseaddr: "aai-babel-api" |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 102 | name: "aai-babel" |
| 103 | port: 9516 |
| 104 | config: |
| 105 | ssl: "redirect" |
| 106 | |
| 107 | resources: |
| 108 | small: |
| 109 | limits: |
| 110 | cpu: 2 |
| 111 | memory: 4Gi |
| 112 | requests: |
| 113 | cpu: 0.5 |
| 114 | memory: 1Gi |
| 115 | large: |
| 116 | limits: |
| 117 | cpu: 4 |
| 118 | memory: 8Gi |
| 119 | requests: |
| 120 | cpu: 2 |
| 121 | memory: 2Gi |
| 122 | unlimited: {} |
farida azmy | d893733 | 2021-03-09 12:20:42 +0200 | [diff] [blame] | 123 | |
| 124 | #Pods Service Account |
| 125 | serviceAccount: |
| 126 | nameOverride: aai-babel |
| 127 | roles: |
| 128 | - read |
Maciej Wereski | d523d12 | 2021-09-21 11:22:13 +0200 | [diff] [blame] | 129 | |
| 130 | #Log configuration |
| 131 | log: |
| 132 | path: /var/log/onap |
| 133 | logConfigMapNamePrefix: '{{ include "common.fullname" . }}' |