blob: 51e78e1de39da0083b23cef20af918f1f87b5f26 [file] [log] [blame]
Prateekinlinux445a18e2018-08-01 06:48:33 +00001# Copyright © 2018 Amdocs, Bell Canada , ZTE
Sylvain Desbureaux55af6482020-11-02 18:21:11 +01002# Copyright © 2021 Orange
Prateekinlinux445a18e2018-08-01 06:48:33 +00003#
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.
BorislavG0433c912018-03-21 18:35:30 +020015#################################################################
16# Global configuration defaults.
17#################################################################
18global:
19 nodePortPrefix: 302
BorislavG0433c912018-03-21 18:35:30 +020020
21#################################################################
Sylvain Desbureaux55af6482020-11-02 18:21:11 +010022# AAF part
23#################################################################
24certInitializer:
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#################################################################
BorislavG0433c912018-03-21 18:35:30 +020061# Application configuration defaults.
62#################################################################
63# application image
Sylvain Desbureauxe59d9832020-11-24 15:44:12 +000064image: onap/msb/msb_apigateway:1.2.7
BorislavG0433c912018-03-21 18:35:30 +020065pullPolicy: Always
Huabing Zhao81b89762018-07-30 06:33:03 +000066istioSidecar: true
BorislavG0433c912018-03-21 18:35:30 +020067
68# application configuration
69config:
70 routeLabels: "visualRange:1"
71
72# default number of instances
73replicaCount: 1
74
75nodeSelector: {}
76
77affinity: {}
78
79# probe configuration parameters
80liveness:
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
87readiness:
88 initialDelaySeconds: 10
89 periodSeconds: 10
90
91service:
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
101ingress:
102 enabled: false
Lucjan Bryndzaa7228ec2019-12-02 15:11:53 +0100103 service:
104 - baseaddr: "msbiag"
105 name: "msb-iag"
106 port: 443
107 config:
108 ssl: "redirect"
BorislavG0433c912018-03-21 18:35:30 +0200109
vaibhavjayasfe2140f2018-09-21 08:30:57 +0000110# Resource Limit flavor -By Default using small
111flavor: small
112# Segregation for Different environment (Small and Large)
113resources:
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 Zhao0f176a02019-03-18 19:31:45 +0800128 unlimited: {}