Merge "[AAI] Add model-loader tracing config"
[oom.git] / kubernetes / vnfsdk / values.yaml
1 # Copyright © 2017 Amdocs, Bell Canada
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #       http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 #################################################################
16 # Global configuration defaults.
17 #################################################################
18 global:
19   nodePortPrefix: 302
20
21 secrets:
22   - uid: pg-root-pass
23     name: &pgRootPassSecretName '{{ include "common.release" . }}-vnfsdk-pg-root-pass'
24     type: password
25     externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgRootPasswordExternalSecret) .) (hasSuffix "vnfsdk-pg-root-pass" .Values.postgres.config.pgRootPasswordExternalSecret) }}'
26     password: '{{ .Values.postgres.config.pgRootpassword }}'
27     policy: generate
28   - uid: pg-user-creds
29     name: &pgUserCredsSecretName '{{ include "common.release" . }}-vnfsdk-pg-user-creds'
30     type: basicAuth
31     externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgUserExternalSecret) .) (hasSuffix "vnfsdk-pg-user-creds" .Values.postgres.config.pgUserExternalSecret) }}'
32     login: '{{ .Values.postgres.config.pgUserName }}'
33     password: '{{ .Values.postgres.config.pgUserPassword }}'
34     passwordPolicy: generate
35
36 #################################################################
37 # AAF part
38 #################################################################
39 certInitializer:
40   nameOverride: refrepo-cert-initializer
41   aafDeployFqi: deployer@people.osaaf.org
42   aafDeployPass: demo123456!
43   # aafDeployCredsExternalSecret: some secret
44   fqdn: refrepo
45   fqi: refrepo@refrepo.onap.org
46   fqi_namespace: org.onap.refrepo
47   public_fqdn: refrepo.onap.org
48   cadi_longitude: "0.0"
49   cadi_latitude: "0.0"
50   app_ns: org.osaaf.aaf
51   credsPath: /opt/app/osaaf/local
52   aaf_add_config: |
53     echo "*** transform AAF certs into pem files"
54     mkdir -p {{ .Values.credsPath }}/certs
55     echo "keystore password: $$cadi_keystore_password_p12"
56     openssl pkcs12 -in {{ .Values.credsPath }}/{{ .Values.fqi_namespace }}.p12 \
57       -nokeys -out {{ .Values.credsPath }}/certs/cert.pem \
58       -passin pass:$cadi_keystore_password_p12 \
59       -passout pass:$cadi_keystore_password_p12
60     echo "*** copy key"
61     cp {{ .Values.credsPath }}/{{ .Values.fqi_namespace }}.key \
62       {{ .Values.credsPath }}/certs/cert.key
63     echo "*** change ownership of certificates to targeted user"
64     chown -R 999 {{ .Values.credsPath }}/certs
65
66
67 #################################################################
68 # Application configuration defaults.
69 #################################################################
70 # application image
71 image: onap/vnfsdk/refrepo:1.6.3
72 pullPolicy: Always
73
74 # application configuration override for postgres
75 postgres:
76   nameOverride: vnfsdk-postgres
77   service:
78     name: vnfsdk-dbset
79     name2: vnfsdk-dbpri
80     name3: vnfsdk-dbrep
81   container:
82     name:
83       primary: vnfsdk-dbpri
84       replica: vnfsdk-dbrep
85   persistence:
86     mountSubPath: vnfsdk/data
87     mountInitPath: vnfsdk
88   config:
89     pgUserName: postgres
90     pgDatabase: postgres
91     pgUserExternalSecret: *pgUserCredsSecretName
92     pgRootPasswordExternalSecret: *pgRootPassSecretName
93
94 # flag to enable debugging - application support required
95 debugEnabled: false
96
97 nodeSelector: {}
98
99 affinity: {}
100
101 # Resource Limit flavor -By Default using small
102 flavor: small
103 # Segregation for Different environment (Small and Large)
104 resources:
105   small:
106     limits:
107       cpu: 2000m
108       memory: 4Gi
109     requests:
110       cpu: 500m
111       memory: 1Gi
112   large:
113     limits:
114       cpu: 4000m
115       memory: 8Gi
116     requests:
117       cpu: 1000m
118       memory: 2Gi
119   unlimited: {}
120
121 # probe configuration parameters
122 liveness:
123   initialDelaySeconds: 10
124   periodSeconds: 10
125   # necessary to disable liveness probe when setting breakpoints
126   # in debugger so K8s doesn't restart unresponsive container
127   enabled: true
128
129 readiness:
130   initialDelaySeconds: 60
131   periodSeconds: 30
132
133 service:
134   type: NodePort
135   name: refrepo
136   portName: https
137   nodePort: 97
138   internalPort: 8703
139
140 ingress:
141   enabled: false
142   service:
143     - baseaddr: "refrepo"
144       name: "refrepo"
145       port: 8703
146   config:
147     ssl: "redirect"