Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 1 | # Copyright (c) 2018 Amdocs, Bell Canada, AT&T |
Sylvain Desbureaux | 5b65132 | 2020-12-07 15:34:15 +0100 | [diff] [blame] | 2 | # Modifications Copyright (c) 2020 Nokia, Orange |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 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 |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 29 | |
Sylvain Desbureaux | 375d0ea | 2021-03-08 16:52:20 +0000 | [diff] [blame] | 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_PASSWORD=$(tr -cd '[:alnum:]' < /dev/urandom | fold -w64 | head -n1) |
| 50 | export TRUSTSTORE_PASSWORD=$(tr -cd '[:alnum:]' < /dev/urandom | fold -w64 | head -n1) |
| 51 | cd {{ .Values.credsPath }} |
| 52 | keytool -storepasswd -new "${KEYSTORE_PASSWORD}" \ |
| 53 | -storepass "${cadi_keystore_password_p12}" \ |
| 54 | -keystore {{ .Values.fqi_namespace }}.p12 |
| 55 | keytool -storepasswd -new "${TRUSTSTORE_PASSWORD}" \ |
| 56 | -storepass "${cadi_truststore_password}" \ |
| 57 | -keystore {{ .Values.fqi_namespace }}.trust.jks |
| 58 | echo "*** save the generated passwords" |
| 59 | echo "KEYSTORE_PASSWORD=${KEYSTORE_PASSWORD}" > mycreds.prop |
| 60 | echo "TRUSTSTORE_PASSWORD=${TRUSTSTORE_PASSWORD}" >> mycreds.prop |
| 61 | echo "*** change ownership of certificates to targeted user" |
| 62 | chown -R 1000 {{ .Values.credsPath }} |
| 63 | |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 64 | # application image |
Harish Venkata Kajur | 2fbdf67 | 2021-02-25 09:11:57 -0500 | [diff] [blame] | 65 | image: onap/sparky-be:2.0.3 |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 66 | pullPolicy: Always |
| 67 | restartPolicy: Always |
| 68 | flavor: small |
| 69 | flavorOverride: small |
| 70 | dockerhubRepository: registry.hub.docker.com |
| 71 | ubuntuInitImage: oomk8s/ubuntu-init:2.0.0 |
| 72 | # application configuration |
| 73 | config: |
| 74 | elasticsearchHttpPort: 9200 |
| 75 | gerritBranch: 3.0.0-ONAP |
| 76 | gerritProject: http://gerrit.onap.org/r/aai/test-config |
| 77 | portalUsername: aaiui |
| 78 | portalPassword: OBF:1t2v1vfv1unz1vgz1t3b |
| 79 | portalCookieName: UserId |
| 80 | portalAppRoles: ui_view |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 81 | cadiFileLocation: /opt/app/sparky/config/portal/cadi.properties |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 82 | cookieDecryptorClass: org.onap.aai.sparky.security.BaseCookieDecryptor |
| 83 | |
| 84 | # ONAP Cookie Processing - During initial development, the following flag, if true, will |
| 85 | # prevent the portal interface's login processing from searching for a user |
| 86 | # specific cookie, and will instead allow passage if a valid session cookie is discovered. |
| 87 | portalOnapEnabled: true |
| 88 | # |
| 89 | |
| 90 | # override chart name (sparky-be) to share a common namespace |
| 91 | # suffix with parent chart (aai) |
| 92 | nsSuffix: aai |
| 93 | |
| 94 | |
| 95 | # default number of instances |
| 96 | replicaCount: 1 |
| 97 | |
| 98 | nodeSelector: {} |
| 99 | |
| 100 | affinity: {} |
| 101 | |
| 102 | # probe configuration parameters |
| 103 | liveness: |
| 104 | initialDelaySeconds: 10 |
| 105 | periodSeconds: 10 |
| 106 | # necessary to disable liveness probe when setting breakpoints |
| 107 | # in debugger so K8s doesn't restart unresponsive container |
| 108 | enabled: true |
| 109 | |
| 110 | readiness: |
| 111 | initialDelaySeconds: 10 |
| 112 | periodSeconds: 10 |
| 113 | |
| 114 | service: |
| 115 | type: NodePort |
| 116 | portName: aai-sparky-be |
| 117 | internalPort: 8000 |
| 118 | nodePort: 20 |
| 119 | |
| 120 | ingress: |
| 121 | enabled: false |
| 122 | service: |
| 123 | - baseaddr: "aaisparkybe" |
| 124 | name: "aai-sparky-be" |
| 125 | port: 8000 |
| 126 | config: |
| 127 | ssl: "redirect" |
| 128 | |
| 129 | # Configure resource requests and limits |
| 130 | # ref: http://kubernetes.io/docs/user-guide/compute-resources/ |
| 131 | resources: |
| 132 | small: |
| 133 | limits: |
| 134 | cpu: 2 |
| 135 | memory: 4Gi |
| 136 | requests: |
| 137 | cpu: 0.25 |
| 138 | memory: 1Gi |
| 139 | large: |
| 140 | limits: |
| 141 | cpu: 4 |
| 142 | memory: 8Gi |
| 143 | requests: |
| 144 | cpu: 0.5 |
| 145 | memory: 2Gi |
| 146 | unlimited: {} |
farida azmy | d893733 | 2021-03-09 12:20:42 +0200 | [diff] [blame^] | 147 | |
| 148 | #Pods Service Account |
| 149 | serviceAccount: |
| 150 | nameOverride: aai-sparky-be |
| 151 | roles: |
| 152 | - read |