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-iag-cert-initializer |
| 26 | aafDeployFqi: deployer@people.osaaf.org |
| 27 | aafDeployPass: demo123456! |
| 28 | # aafDeployCredsExternalSecret: some secret |
| 29 | fqdn: msb-iag |
| 30 | fqi: msb-iag@msb-iag.onap.org |
| 31 | fqi_namespace: org.onap.msb-iag |
| 32 | public_fqdn: msb-iag.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: | |
| 38 | echo "*** retrieving passwords for certificates" |
| 39 | export $(/opt/app/aaf_config/bin/agent.sh local showpass \ |
| 40 | {{.Values.fqi}} {{ .Values.fqdn }} | grep '^c') |
| 41 | if [ -z "$cadi_keystore_password_p12" ] |
| 42 | then |
| 43 | echo " /!\ certificates retrieval failed" |
| 44 | exit 1 |
| 45 | else |
| 46 | mkdir -p {{ .Values.credsPath }}/certs |
| 47 | echo "*** retrieve certificate from pkcs12" |
| 48 | openssl pkcs12 -in {{ .Values.credsPath }}/{{ .Values.fqi_namespace }}.p12 \ |
| 49 | -out {{ .Values.credsPath }}/certs/cert.crt -nokeys \ |
| 50 | -passin pass:$cadi_keystore_password_p12 \ |
| 51 | -passout pass:$cadi_keystore_password_p12 |
| 52 | echo "*** copy key to relevant place" |
| 53 | cp {{ .Values.credsPath }}/{{ .Values.fqi_namespace }}.key {{ .Values.credsPath }}/certs/cert.key |
| 54 | echo "*** change ownership and read/write attributes" |
| 55 | chown -R 1000 {{ .Values.credsPath }}/certs |
| 56 | chmod 600 {{ .Values.credsPath }}/certs/cert.crt |
| 57 | chmod 600 {{ .Values.credsPath }}/certs/cert.key |
| 58 | fi |
| 59 | |
| 60 | ################################################################# |
BorislavG | 0433c91 | 2018-03-21 18:35:30 +0200 | [diff] [blame] | 61 | # Application configuration defaults. |
| 62 | ################################################################# |
| 63 | # application image |
Sylvain Desbureaux | e59d983 | 2020-11-24 15:44:12 +0000 | [diff] [blame] | 64 | image: onap/msb/msb_apigateway:1.2.7 |
BorislavG | 0433c91 | 2018-03-21 18:35:30 +0200 | [diff] [blame] | 65 | pullPolicy: Always |
Huabing Zhao | 81b8976 | 2018-07-30 06:33:03 +0000 | [diff] [blame] | 66 | istioSidecar: true |
BorislavG | 0433c91 | 2018-03-21 18:35:30 +0200 | [diff] [blame] | 67 | |
| 68 | # application configuration |
| 69 | config: |
| 70 | routeLabels: "visualRange:1" |
| 71 | |
| 72 | # default number of instances |
| 73 | replicaCount: 1 |
| 74 | |
| 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: true |
| 86 | |
| 87 | readiness: |
| 88 | initialDelaySeconds: 10 |
| 89 | periodSeconds: 10 |
| 90 | |
| 91 | service: |
| 92 | type: NodePort |
| 93 | name: msb-iag |
| 94 | externalPort: 80 |
| 95 | internalPort: 80 |
| 96 | nodePort: 80 |
| 97 | externalPortHttps: 443 |
| 98 | internalPortHttps: 443 |
| 99 | nodePortHttps: 83 |
| 100 | |
| 101 | ingress: |
| 102 | enabled: false |
Lucjan Bryndza | a7228ec | 2019-12-02 15:11:53 +0100 | [diff] [blame] | 103 | service: |
| 104 | - baseaddr: "msbiag" |
| 105 | name: "msb-iag" |
| 106 | port: 443 |
| 107 | config: |
| 108 | ssl: "redirect" |
BorislavG | 0433c91 | 2018-03-21 18:35:30 +0200 | [diff] [blame] | 109 | |
vaibhavjayas | fe2140f | 2018-09-21 08:30:57 +0000 | [diff] [blame] | 110 | # Resource Limit flavor -By Default using small |
| 111 | flavor: small |
| 112 | # Segregation for Different environment (Small and Large) |
| 113 | resources: |
| 114 | small: |
| 115 | limits: |
| 116 | cpu: 100m |
| 117 | memory: 400Mi |
| 118 | requests: |
| 119 | cpu: 50m |
| 120 | memory: 200Mi |
| 121 | large: |
| 122 | limits: |
| 123 | cpu: 200m |
| 124 | memory: 800Mi |
| 125 | requests: |
| 126 | cpu: 100m |
| 127 | memory: 400Mi |
Huabing Zhao | 0f176a0 | 2019-03-18 19:31:45 +0800 | [diff] [blame] | 128 | unlimited: {} |