[COMMON] Add custom certs into AAF truststore
[oom.git] / kubernetes / msb / components / msb-iag / values.yaml
1 # Copyright © 2018 Amdocs, Bell Canada , ZTE
2 # Copyright © 2021 Orange
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.
15 #################################################################
16 # Global configuration defaults.
17 #################################################################
18 global:
19   nodePortPrefix: 302
20
21 #################################################################
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 #################################################################
61 # Application configuration defaults.
62 #################################################################
63 # application image
64 image: onap/msb/msb_apigateway:1.2.7
65 pullPolicy: Always
66 istioSidecar: true
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
103   service:
104     - baseaddr: "msbiag"
105       name: "msb-iag"
106       port: 443
107   config:
108     ssl: "redirect"
109
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
128   unlimited: {}