Merge "[MODELING] Update modeling/etsicatalog image"
[oom.git] / kubernetes / aai / components / aai-sparky-be / values.yaml
1 # Copyright (c) 2018 Amdocs, Bell Canada, AT&T
2 # Modifications Copyright (c) 2020 Nokia, 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 # Default values for sparky-be.
17 # This is a YAML-formatted file.
18 # Declare variables to be passed into your templates.
19 global: # global defaults
20   nodePortPrefix: 302
21   aai:
22     serviceName: aai
23   aaiElasticsearch:
24     serviceName: aai-elasticsearch
25   gizmo:
26     serviceName: aai-gizmo
27   searchData:
28     serviceName: aai-search-data
29
30
31 #################################################################
32 # Certificate configuration
33 #################################################################
34 certInitializer:
35   nameOverride: aai-sparky-cert-initializer
36   aafDeployFqi: deployer@people.osaaf.org
37   aafDeployPass: demo123456!
38   # aafDeployCredsExternalSecret: some secret
39   fqdn: "aai"
40   app_ns: "org.osaaf.aaf"
41   fqi_namespace: "org.onap.aai"
42   fqi: "aai@aai.onap.org"
43   public_fqdn: "aaf.osaaf.org"
44   cadi_longitude: "0.0"
45   cadi_latitude: "0.0"
46   credsPath: /opt/app/osaaf/local
47   aaf_add_config: |
48     echo "*** changing passwords into shell safe ones"
49     export KEYSTORE_PASSWD=$(tr -cd '[:alnum:]' < /dev/urandom | fold -w64 | head -n1)
50     export TRUSTORE_PASSWD=$(tr -cd '[:alnum:]' < /dev/urandom | fold -w64 | head -n1)
51     cd {{ .Values.credsPath }}
52     keytool -storepasswd -new "${KEYSTORE_PASSWD}" \
53       -storepass "${cadi_keystore_password_jks}" \
54       -keystore {{ .Values.fqi_namespace }}.jks
55     keytool -storepasswd -new "${TRUSTORE_PASSWD}" \
56       -storepass "${cadi_truststore_password}" \
57       -keystore {{ .Values.fqi_namespace }}.trust.jks
58     echo "*** set key password as same password as keystore password"
59     keytool -keypasswd -new "${KEYSTORE_PASSWD}" \
60       -keystore {{ .Values.fqi_namespace }}.jks \
61       -keypass "${cadi_keystore_password_jks}" \
62       -storepass "${KEYSTORE_PASSWD}" -alias {{ .Values.fqi }}
63     echo "*** save the generated passwords"
64     echo "KEYSTORE_PASSWORD=${KEYSTORE_PASSWD}" > mycreds.prop
65     echo "TRUSTSTORE_PASSWORD=${TRUSTORE_PASSWD}" >> mycreds.prop
66     echo "*** change ownership of certificates to targeted user"
67     chown -R 1000 {{ .Values.credsPath }}
68
69 # application image
70 image: onap/sparky-be:2.0.2
71 pullPolicy: Always
72 restartPolicy: Always
73 flavor: small
74 flavorOverride: small
75 dockerhubRepository: registry.hub.docker.com
76 ubuntuInitImage: oomk8s/ubuntu-init:2.0.0
77 # application configuration
78 config:
79   elasticsearchHttpPort: 9200
80   gerritBranch: 3.0.0-ONAP
81   gerritProject: http://gerrit.onap.org/r/aai/test-config
82   portalUsername: aaiui
83   portalPassword: OBF:1t2v1vfv1unz1vgz1t3b
84   portalCookieName: UserId
85   portalAppRoles: ui_view
86   cadiFileLocation: /opt/app/sparky/config/portal/cadi.properties
87   cookieDecryptorClass: org.onap.aai.sparky.security.BaseCookieDecryptor
88
89 # ONAP Cookie Processing - During initial development, the following flag, if true, will
90 # prevent the portal interface's login processing from searching for a user
91 # specific cookie, and will instead allow passage if a valid session cookie is discovered.
92   portalOnapEnabled: true
93 #
94
95 # override chart name (sparky-be) to share a common namespace
96 # suffix with parent chart (aai)
97 nsSuffix: aai
98
99
100 # default number of instances
101 replicaCount: 1
102
103 nodeSelector: {}
104
105 affinity: {}
106
107 # probe configuration parameters
108 liveness:
109   initialDelaySeconds: 10
110   periodSeconds: 10
111   # necessary to disable liveness probe when setting breakpoints
112   # in debugger so K8s doesn't restart unresponsive container
113   enabled: true
114
115 readiness:
116   initialDelaySeconds: 10
117   periodSeconds: 10
118
119 service:
120   type: NodePort
121   portName: aai-sparky-be
122   internalPort: 8000
123   nodePort: 20
124
125 ingress:
126   enabled: false
127   service:
128     - baseaddr: "aaisparkybe"
129       name: "aai-sparky-be"
130       port: 8000
131   config:
132     ssl: "redirect"
133
134 # Configure resource requests and limits
135 # ref: http://kubernetes.io/docs/user-guide/compute-resources/
136 resources:
137   small:
138     limits:
139       cpu: 2
140       memory: 4Gi
141     requests:
142       cpu: 0.25
143       memory: 1Gi
144   large:
145     limits:
146       cpu: 4
147       memory: 8Gi
148     requests:
149       cpu: 0.5
150       memory: 2Gi
151   unlimited: {}