[COMMON] Add custom certs into AAF truststore
[oom.git] / kubernetes / msb / components / msb-eag / 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-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: |
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:0"
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-eag
94   externalPort: 80
95   internalPort: 80
96   externalPortHttps: 443
97   internalPortHttps: 443
98   nodePortHttps: 84
99
100 ingress:
101   enabled: false
102   service:
103     - baseaddr: "msbeag"
104       name: "msb-eag"
105       port: 443
106   config:
107     ssl: "redirect"
108
109 # Resource Limit flavor -By Default using small
110 flavor: small
111 # Segregation for Different environment (Small and Large)
112 resources:
113   small:
114     limits:
115       cpu: 200m
116       memory: 500Mi
117     requests:
118       cpu: 100m
119       memory: 200Mi
120   large:
121     limits:
122       cpu: 400m
123       memory: 800Mi
124     requests:
125       cpu: 200m
126       memory: 400Mi
127   unlimited: {}