Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 1 | # Copyright © 2018 Amdocs, Bell Canada, AT&T |
Sylvain Desbureaux | 5b65132 | 2020-12-07 15:34:15 +0100 | [diff] [blame] | 2 | # Modifications Copyright © 2020 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 resources. |
| 17 | # This is a YAML-formatted file. |
| 18 | # Declare variables to be passed into your templates. |
| 19 | global: # global defaults |
| 20 | nodePortPrefix: 302 |
| 21 | |
Sylvain Desbureaux | 5b65132 | 2020-12-07 15:34:15 +0100 | [diff] [blame] | 22 | # Common configuration for resources traversal and graphadmin |
| 23 | config: |
| 24 | # Specifies if the basic authorization is enabled |
| 25 | basic: |
| 26 | auth: |
| 27 | enabled: true |
| 28 | username: AAI |
| 29 | passwd: AAI |
| 30 | |
| 31 | # Schema specific properties that include supported versions of api |
| 32 | schema: |
| 33 | source: |
| 34 | # Specifies which folder to take a look at |
| 35 | name: onap |
| 36 | uri: |
| 37 | # Base URI Path of the application |
| 38 | base: |
| 39 | path: /aai |
| 40 | version: |
| 41 | # Current version of the REST API |
| 42 | api: |
wr148d | cd3e6b7 | 2022-08-19 16:17:44 -0400 | [diff] [blame] | 43 | default: v27 |
Sylvain Desbureaux | 5b65132 | 2020-12-07 15:34:15 +0100 | [diff] [blame] | 44 | # Specifies which version the depth parameter is configurable |
| 45 | depth: v11 |
| 46 | # List of all the supported versions of the API |
wr148d | cd3e6b7 | 2022-08-19 16:17:44 -0400 | [diff] [blame] | 47 | list: v11,v12,v13,v14,v15,v16,v17,v18,v19,v20,v21,v22,v23,v24,v25,v26,v27 |
Sylvain Desbureaux | 5b65132 | 2020-12-07 15:34:15 +0100 | [diff] [blame] | 48 | # Specifies from which version related link should appear |
| 49 | related: |
| 50 | link: v11 |
| 51 | # Specifies from which version the app root change happened |
| 52 | app: |
| 53 | root: v11 |
| 54 | # Specifies from which version the xml namespace changed |
| 55 | namespace: |
| 56 | change: v12 |
| 57 | # Specifies from which version the edge label appeared in API |
| 58 | edge: |
| 59 | label: v12 |
| 60 | |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 61 | ################################################################# |
| 62 | # Certificate configuration |
| 63 | ################################################################# |
| 64 | certInitializer: |
| 65 | nameOverride: aai-schema-service-cert-initializer |
| 66 | aafDeployFqi: deployer@people.osaaf.org |
| 67 | aafDeployPass: demo123456! |
| 68 | # aafDeployCredsExternalSecret: some secret |
| 69 | fqdn: aai-schema-service |
| 70 | fqi: aai-schema-service@aai-schema-service.onap.org |
| 71 | public_fqdn: aai-schema-service.onap.org |
| 72 | cadi_longitude: "0.0" |
| 73 | cadi_latitude: "0.0" |
| 74 | app_ns: org.osaaf.aaf |
| 75 | credsPath: /opt/app/osaaf/local |
| 76 | fqi_namespace: org.onap.aai-schema-service |
| 77 | user_id: &user_id 1000 |
| 78 | group_id: &group_id 1000 |
| 79 | aaf_add_config: | |
| 80 | echo "*** changing them into shell safe ones" |
| 81 | export KEYSTORE_PLAIN_PASSWORD=$(tr -cd '[:alnum:]' < /dev/urandom | fold -w64 | head -n1) |
| 82 | export TRUSTSTORE_PLAIN_PASSWORD=$(tr -cd '[:alnum:]' < /dev/urandom | fold -w64 | head -n1) |
| 83 | cd {{ .Values.credsPath }} |
| 84 | keytool -storepasswd -new "${KEYSTORE_PLAIN_PASSWORD}" \ |
| 85 | -storepass "${cadi_keystore_password_p12}" \ |
| 86 | -keystore {{ .Values.fqi_namespace }}.p12 |
| 87 | keytool -storepasswd -new "${TRUSTSTORE_PLAIN_PASSWORD}" \ |
| 88 | -storepass "${cadi_truststore_password}" \ |
| 89 | -keystore {{ .Values.fqi_namespace }}.trust.jks |
| 90 | echo "*** writing passwords into prop file" |
| 91 | echo "KEYSTORE_PLAIN_PASSWORD=${KEYSTORE_PLAIN_PASSWORD}" > {{ .Values.credsPath }}/mycreds.prop |
| 92 | echo "TRUSTSTORE_PLAIN_PASSWORD=${TRUSTSTORE_PLAIN_PASSWORD}" >> {{ .Values.credsPath }}/mycreds.prop |
| 93 | echo "*** change ownership of certificates to targeted user" |
| 94 | chown -R {{ .Values.user_id }}:{{ .Values.group_id }} {{ .Values.credsPath }} |
Sylvain Desbureaux | 5b65132 | 2020-12-07 15:34:15 +0100 | [diff] [blame] | 95 | |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 96 | # application image |
wr148d | 702d68a | 2022-10-20 18:26:54 -0400 | [diff] [blame] | 97 | image: onap/aai-schema-service:1.11.0 |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 98 | pullPolicy: Always |
| 99 | restartPolicy: Always |
| 100 | flavorOverride: small |
| 101 | # default number of instances |
| 102 | replicaCount: 1 |
| 103 | |
Rommel Pawar | 63db716 | 2022-11-16 10:11:24 -0800 | [diff] [blame] | 104 | updateStrategy: |
| 105 | type: RollingUpdate |
| 106 | maxUnavailable: 0 |
| 107 | maxSurge: 1 |
| 108 | |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 109 | nodeSelector: {} |
| 110 | |
| 111 | affinity: {} |
| 112 | |
| 113 | # probe configuration parameters |
| 114 | liveness: |
| 115 | initialDelaySeconds: 60 |
| 116 | periodSeconds: 60 |
| 117 | # necessary to disable liveness probe when setting breakpoints |
| 118 | # in debugger so K8s doesn't restart unresponsive container |
| 119 | enabled: false |
| 120 | |
| 121 | readiness: |
| 122 | initialDelaySeconds: 60 |
| 123 | periodSeconds: 10 |
| 124 | |
| 125 | service: |
| 126 | type: ClusterIP |
osk11461 | 27fd7d8 | 2021-06-18 00:51:17 +0200 | [diff] [blame] | 127 | portName: http |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 128 | internalPort: 8452 |
osk11461 | 27fd7d8 | 2021-06-18 00:51:17 +0200 | [diff] [blame] | 129 | portName2: tcp-5005 |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 130 | internalPort2: 5005 |
| 131 | |
| 132 | ingress: |
| 133 | enabled: false |
| 134 | |
| 135 | # We usually recommend not to specify default resources and to leave this as a conscious |
| 136 | # choice for the user. This also increases chances charts run on environments with little |
| 137 | # resources, such as Minikube. If you do want to specify resources, uncomment the following |
| 138 | # lines, adjust them as necessary, and remove the curly braces after 'resources:'. |
| 139 | # |
| 140 | # Example: |
| 141 | # Configure resource requests and limits |
| 142 | # ref: http://kubernetes.io/docs/user-guide/compute-resources/ |
| 143 | # Minimum memory for development is 2 CPU cores and 4GB memory |
| 144 | # Minimum memory for production is 4 CPU cores and 8GB memory |
| 145 | #resources: |
| 146 | # limits: |
| 147 | # cpu: 2 |
| 148 | # memory: 4Gi |
| 149 | # requests: |
| 150 | # cpu: 2 |
| 151 | # memory: 4Gi |
| 152 | resources: |
| 153 | small: |
| 154 | limits: |
| 155 | cpu: 2 |
| 156 | memory: 4Gi |
| 157 | requests: |
| 158 | cpu: 1 |
| 159 | memory: 3Gi |
| 160 | large: |
| 161 | limits: |
| 162 | cpu: 4 |
| 163 | memory: 8Gi |
| 164 | requests: |
| 165 | cpu: 2 |
| 166 | memory: 4Gi |
| 167 | unlimited: {} |
farida azmy | d893733 | 2021-03-09 12:20:42 +0200 | [diff] [blame] | 168 | |
| 169 | #Pods Service Account |
| 170 | serviceAccount: |
| 171 | nameOverride: aai-schema-service |
| 172 | roles: |
| 173 | - read |
Maciej Wereski | d523d12 | 2021-09-21 11:22:13 +0200 | [diff] [blame] | 174 | |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 175 | # Not fully used for now |
| 176 | securityContext: |
| 177 | user_id: *user_id |
| 178 | group_id: *group_id |
| 179 | |
Maciej Wereski | d523d12 | 2021-09-21 11:22:13 +0200 | [diff] [blame] | 180 | #Log configuration |
| 181 | log: |
| 182 | path: /var/log/onap |
| 183 | logConfigMapNamePrefix: '{{ include "common.fullname" . }}' |