Prateekinlinux | 445a18e | 2018-08-01 06:48:33 +0000 | [diff] [blame] | 1 | # Copyright © 2018 Amdocs, Bell Canada , ZTE |
Sylvain Desbureaux | 55af648 | 2020-11-02 18:21:11 +0100 | [diff] [blame] | 2 | # Copyright © 2021 Orange |
Prateekinlinux | 445a18e | 2018-08-01 06:48:33 +0000 | [diff] [blame] | 3 | # |
| 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 |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 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. |
BorislavG | 0433c91 | 2018-03-21 18:35:30 +0200 | [diff] [blame] | 15 | ################################################################# |
| 16 | # Global configuration defaults. |
| 17 | ################################################################# |
| 18 | global: |
| 19 | nodePortPrefix: 302 |
BorislavG | 0433c91 | 2018-03-21 18:35:30 +0200 | [diff] [blame] | 20 | |
| 21 | ################################################################# |
Sylvain Desbureaux | 55af648 | 2020-11-02 18:21:11 +0100 | [diff] [blame] | 22 | # AAF part |
| 23 | ################################################################# |
| 24 | certInitializer: |
| 25 | nameOverride: msb-eag-cert-initializer |
| 26 | aafDeployFqi: deployer@people.osaaf.org |
| 27 | aafDeployPass: demo123456! |
| 28 | # aafDeployCredsExternalSecret: some secret |
| 29 | fqdn: msb-eag |
| 30 | fqi: msb-eag@msb-eag.onap.org |
| 31 | fqi_namespace: org.onap.msb-eag |
| 32 | public_fqdn: msb-eag.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 | aaf_add_config: | |
Sylvain Desbureaux | 02f8a81 | 2021-02-23 16:47:56 +0100 | [diff] [blame] | 38 | mkdir -p {{ .Values.credsPath }}/certs |
| 39 | echo "*** retrieve certificate from pkcs12" |
| 40 | openssl pkcs12 -in {{ .Values.credsPath }}/{{ .Values.fqi_namespace }}.p12 \ |
| 41 | -out {{ .Values.credsPath }}/certs/cert.crt -nokeys \ |
| 42 | -passin pass:$cadi_keystore_password_p12 \ |
| 43 | -passout pass:$cadi_keystore_password_p12 |
| 44 | echo "*** copy key to relevant place" |
| 45 | cp {{ .Values.credsPath }}/{{ .Values.fqi_namespace }}.key {{ .Values.credsPath }}/certs/cert.key |
| 46 | echo "*** change ownership and read/write attributes" |
| 47 | chown -R 1000 {{ .Values.credsPath }}/certs |
| 48 | chmod 600 {{ .Values.credsPath }}/certs/cert.crt |
| 49 | chmod 600 {{ .Values.credsPath }}/certs/cert.key |
Sylvain Desbureaux | 55af648 | 2020-11-02 18:21:11 +0100 | [diff] [blame] | 50 | |
| 51 | ################################################################# |
BorislavG | 0433c91 | 2018-03-21 18:35:30 +0200 | [diff] [blame] | 52 | # Application configuration defaults. |
| 53 | ################################################################# |
| 54 | # application image |
jinquanni | 1f658fd | 2023-04-17 15:53:12 +0800 | [diff] [blame] | 55 | image: onap/msb/msb_apigateway:1.6.0 |
BorislavG | 0433c91 | 2018-03-21 18:35:30 +0200 | [diff] [blame] | 56 | pullPolicy: Always |
Huabing Zhao | 81b8976 | 2018-07-30 06:33:03 +0000 | [diff] [blame] | 57 | istioSidecar: true |
BorislavG | 0433c91 | 2018-03-21 18:35:30 +0200 | [diff] [blame] | 58 | |
| 59 | # application configuration |
| 60 | config: |
| 61 | routeLabels: "visualRange:0" |
| 62 | |
| 63 | # default number of instances |
| 64 | replicaCount: 1 |
| 65 | |
| 66 | nodeSelector: {} |
| 67 | |
| 68 | affinity: {} |
| 69 | |
| 70 | # probe configuration parameters |
| 71 | liveness: |
| 72 | initialDelaySeconds: 10 |
| 73 | periodSeconds: 10 |
| 74 | # necessary to disable liveness probe when setting breakpoints |
| 75 | # in debugger so K8s doesn't restart unresponsive container |
| 76 | enabled: true |
| 77 | |
| 78 | readiness: |
| 79 | initialDelaySeconds: 10 |
| 80 | periodSeconds: 10 |
| 81 | |
| 82 | service: |
| 83 | type: NodePort |
| 84 | name: msb-eag |
Andreas Geissler | 8d87db2 | 2022-09-15 21:14:00 +0200 | [diff] [blame] | 85 | both_tls_and_plain: true |
| 86 | # for liveness and readiness probe only |
| 87 | # internalPort: |
| 88 | internalPort: 443 |
| 89 | internalPlainPort: 80 |
| 90 | ports: |
| 91 | - name: msb-eag |
| 92 | port: 443 |
| 93 | plain_port: 80 |
| 94 | port_protocol: http |
| 95 | nodePort: '84' |
BorislavG | 0433c91 | 2018-03-21 18:35:30 +0200 | [diff] [blame] | 96 | |
| 97 | ingress: |
| 98 | enabled: false |
Lucjan Bryndza | a7228ec | 2019-12-02 15:11:53 +0100 | [diff] [blame] | 99 | service: |
Andreas Geissler | 51900a9 | 2022-08-03 13:10:35 +0200 | [diff] [blame] | 100 | - baseaddr: "msb-eag-ui" |
Lucjan Bryndza | a7228ec | 2019-12-02 15:11:53 +0100 | [diff] [blame] | 101 | name: "msb-eag" |
| 102 | port: 443 |
Andreas Geissler | 51900a9 | 2022-08-03 13:10:35 +0200 | [diff] [blame] | 103 | plain_port: 80 |
Lucjan Bryndza | a7228ec | 2019-12-02 15:11:53 +0100 | [diff] [blame] | 104 | config: |
| 105 | ssl: "redirect" |
BorislavG | 0433c91 | 2018-03-21 18:35:30 +0200 | [diff] [blame] | 106 | |
vaibhavjayas | fe2140f | 2018-09-21 08:30:57 +0000 | [diff] [blame] | 107 | # Resource Limit flavor -By Default using small |
| 108 | flavor: small |
| 109 | # Segregation for Different environment (Small and Large) |
| 110 | resources: |
| 111 | small: |
| 112 | limits: |
| 113 | cpu: 200m |
| 114 | memory: 500Mi |
| 115 | requests: |
| 116 | cpu: 100m |
| 117 | memory: 200Mi |
| 118 | large: |
| 119 | limits: |
| 120 | cpu: 400m |
| 121 | memory: 800Mi |
| 122 | requests: |
| 123 | cpu: 200m |
| 124 | memory: 400Mi |
Huabing Zhao | 0f176a0 | 2019-03-18 19:31:45 +0800 | [diff] [blame] | 125 | unlimited: {} |
farida azmy | a4478e8 | 2021-10-11 13:48:11 +0200 | [diff] [blame] | 126 | |
| 127 | #Pods Service Account |
| 128 | serviceAccount: |
| 129 | nameOverride: msb-eag |
| 130 | roles: |
| 131 | - read |
Maciej Wereski | 0763e6e | 2021-11-18 11:48:25 +0100 | [diff] [blame] | 132 | |
| 133 | #Logs configuration |
| 134 | log: |
| 135 | path: /var/log/onap |
| 136 | logConfigMapNamePrefix: '{{ include "common.fullname" . }}' |