dcd4aed13f473ea010bede881175a3fa3560707b
[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     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
50
51 #################################################################
52 # Application configuration defaults.
53 #################################################################
54 # application image
55 image: onap/msb/msb_apigateway:1.4.0
56 pullPolicy: Always
57 istioSidecar: true
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
85   externalPort: 80
86   internalPort: 80
87   externalPortHttps: 443
88   internalPortHttps: 443
89   nodePortHttps: 84
90
91 ingress:
92   enabled: false
93   service:
94     - baseaddr: "msbeag"
95       name: "msb-eag"
96       port: 443
97   config:
98     ssl: "redirect"
99
100 # Resource Limit flavor -By Default using small
101 flavor: small
102 # Segregation for Different environment (Small and Large)
103 resources:
104   small:
105     limits:
106       cpu: 200m
107       memory: 500Mi
108     requests:
109       cpu: 100m
110       memory: 200Mi
111   large:
112     limits:
113       cpu: 400m
114       memory: 800Mi
115     requests:
116       cpu: 200m
117       memory: 400Mi
118   unlimited: {}
119
120 #Pods Service Account
121 serviceAccount:
122   nameOverride: msb-eag
123   roles:
124     - read
125
126 #Logs configuration
127 log:
128   path: /var/log/onap
129 logConfigMapNamePrefix: '{{ include "common.fullname" . }}'