blob: 50e12e8e4d05edf351a930c3280c90a0cd01a1f7 [file] [log] [blame]
Sylvain Desbureaux70070412020-11-09 21:58:48 +01001# Copyright © 2018 Amdocs, Bell Canada, AT&T
Sylvain Desbureaux5b651322020-12-07 15:34:15 +01002# Modifications Copyright © 2020 Orange
Sylvain Desbureaux70070412020-11-09 21:58:48 +01003#
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.
19global: # global defaults
20 nodePortPrefix: 302
21
Sylvain Desbureaux5b651322020-12-07 15:34:15 +010022 # 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:
wr148dcd3e6b72022-08-19 16:17:44 -040043 default: v27
Sylvain Desbureaux5b651322020-12-07 15:34:15 +010044 # Specifies which version the depth parameter is configurable
45 depth: v11
46 # List of all the supported versions of the API
wr148dcd3e6b72022-08-19 16:17:44 -040047 list: v11,v12,v13,v14,v15,v16,v17,v18,v19,v20,v21,v22,v23,v24,v25,v26,v27
Sylvain Desbureaux5b651322020-12-07 15:34:15 +010048 # 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 Desbureauxc57b58d2021-02-23 18:07:34 +010061#################################################################
62# Certificate configuration
63#################################################################
64certInitializer:
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 Desbureaux5b651322020-12-07 15:34:15 +010095
Sylvain Desbureaux70070412020-11-09 21:58:48 +010096# application image
wr148d702d68a2022-10-20 18:26:54 -040097image: onap/aai-schema-service:1.11.0
Sylvain Desbureaux70070412020-11-09 21:58:48 +010098pullPolicy: Always
99restartPolicy: Always
100flavorOverride: small
101# default number of instances
102replicaCount: 1
103
Rommel Pawar63db7162022-11-16 10:11:24 -0800104updateStrategy:
105 type: RollingUpdate
106 maxUnavailable: 0
107 maxSurge: 1
108
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100109nodeSelector: {}
110
111affinity: {}
112
113# probe configuration parameters
114liveness:
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
121readiness:
122 initialDelaySeconds: 60
123 periodSeconds: 10
124
125service:
126 type: ClusterIP
osk1146127fd7d82021-06-18 00:51:17 +0200127 portName: http
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100128 internalPort: 8452
osk1146127fd7d82021-06-18 00:51:17 +0200129 portName2: tcp-5005
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100130 internalPort2: 5005
131
132ingress:
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
152resources:
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 azmyd8937332021-03-09 12:20:42 +0200168
169#Pods Service Account
170serviceAccount:
171 nameOverride: aai-schema-service
172 roles:
173 - read
Maciej Wereskid523d122021-09-21 11:22:13 +0200174
Sylvain Desbureauxc57b58d2021-02-23 18:07:34 +0100175# Not fully used for now
176securityContext:
177 user_id: *user_id
178 group_id: *group_id
179
Maciej Wereskid523d122021-09-21 11:22:13 +0200180#Log configuration
181log:
182 path: /var/log/onap
183logConfigMapNamePrefix: '{{ include "common.fullname" . }}'