blob: 09bb32dd43aeaf472f39aeabb61e7d5aa552048b [file] [log] [blame]
Sylvain Desbureaux70070412020-11-09 21:58:48 +01001# Copyright © 2018 Amdocs, Bell Canada, AT&T
Sylvain Desbureaux1e997192021-02-28 14:59:22 +01002# Modifications Copyright © 2020-2021 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 modelloader.
17# This is a YAML-formatted file.
18# Declare variables to be passed into your templates.
19global: # global defaults
20 nodePortPrefix: 302
david.mcweeneyc87dbc32022-11-23 12:59:04 +000021 aaiSdcListenerKafkaUser: aai-sdc-list-user
22#################################################################
23# Secrets metaconfig
24#################################################################
25secrets:
26 - uid: aai-sdc-kafka-secret
27 externalSecret: '{{ tpl (default "" .Values.config.jaasConfExternalSecret) . }}'
28 type: genericKV
29 envs:
30 - name: sasl.jaas.config
31 value: '{{ .Values.config.someConfig }}'
32 policy: generate
Sylvain Desbureaux70070412020-11-09 21:58:48 +010033
Sylvain Desbureaux1e997192021-02-28 14:59:22 +010034#################################################################
35# Certificate configuration
36#################################################################
37certInitializer:
38 nameOverride: aai-ml-cert-initializer
39 aafDeployFqi: deployer@people.osaaf.org
40 aafDeployPass: demo123456!
41 # aafDeployCredsExternalSecret: some secret
42 fqdn: aai
43 fqi: aai@aai.onap.org
44 public_fqdn: aai.onap.org
45 cadi_longitude: "0.0"
46 cadi_latitude: "0.0"
47 app_ns: org.osaaf.aaf
48 credsPath: /opt/app/osaaf/local
49 appMountPath: /opt/app/model-loader/config/auth/aaf
50 fqi_namespace: org.onap.aai
51 user_id: &user_id 1000
52 group_id: &group_id 1000
53 aaf_add_config: |
54 echo "*** changing them into shell safe ones"
55 export KEYSTORE_PLAIN_PASSWORD=$(tr -cd '[:alnum:]' < /dev/urandom | fold -w64 | head -n1)
56 export TRUSTSTORE_PLAIN_PASSWORD=$(tr -cd '[:alnum:]' < /dev/urandom | fold -w64 | head -n1)
57 cd {{ .Values.credsPath }}
58 keytool -storepasswd -new "${KEYSTORE_PLAIN_PASSWORD}" \
59 -storepass "${cadi_keystore_password_p12}" \
60 -keystore {{ .Values.fqi_namespace }}.p12
61 keytool -storepasswd -new "${TRUSTSTORE_PLAIN_PASSWORD}" \
62 -storepass "${cadi_truststore_password}" \
63 -keystore {{ .Values.fqi_namespace }}.trust.jks
64 echo "*** writing passwords into prop file"
65 echo "KEYSTORE_PLAIN_PASSWORD=${KEYSTORE_PLAIN_PASSWORD}" > {{ .Values.credsPath }}/mycreds.prop
66 echo "TRUSTSTORE_PLAIN_PASSWORD=${TRUSTSTORE_PLAIN_PASSWORD}" >> {{ .Values.credsPath }}/mycreds.prop
67 echo "*** change ownership of certificates to targeted user"
68 chown -R {{ .Values.user_id }}:{{ .Values.group_id }} {{ .Values.credsPath }}
69
Sylvain Desbureaux70070412020-11-09 21:58:48 +010070# application image
david.mcweeneyc87dbc32022-11-23 12:59:04 +000071image: onap/model-loader:1.12.0
Sylvain Desbureaux70070412020-11-09 21:58:48 +010072pullPolicy: Always
73restartPolicy: Always
74flavor: small
75flavorOverride: small
david.mcweeneyc87dbc32022-11-23 12:59:04 +000076
Sylvain Desbureaux70070412020-11-09 21:58:48 +010077# application configuration
david.mcweeneyc87dbc32022-11-23 12:59:04 +000078config:
79 someConfig: blah
80 kafka:
81 securityProtocol: SASL_PLAINTEXT
82 saslMechanism: SCRAM-SHA-512
83 authType: simple
84 sdcTopic:
85 pattern: SDC-DIST
86 consumerGroup: aai
87 clientId: aai-model-loader
Sylvain Desbureaux70070412020-11-09 21:58:48 +010088
89# default number of instances
90replicaCount: 1
91
Rommel Pawar63db7162022-11-16 10:11:24 -080092updateStrategy:
93 type: RollingUpdate
94 maxUnavailable: 0
95 maxSurge: 1
96
Sylvain Desbureaux70070412020-11-09 21:58:48 +010097nodeSelector: {}
98
99affinity: {}
100
101# probe configuration parameters
102liveness:
103 initialDelaySeconds: 10
104 periodSeconds: 10
105 # necessary to disable liveness probe when setting breakpoints
106 # in debugger so K8s doesn't restart unresponsive container
107 enabled: true
108
109readiness:
110 initialDelaySeconds: 10
111 periodSeconds: 10
112
Sylvain Desbureaux70070412020-11-09 21:58:48 +0100113resources:
114 small:
115 limits:
116 cpu: 2
117 memory: 4Gi
118 requests:
119 cpu: 0.5
120 memory: 1Gi
121 large:
122 limits:
123 cpu: 4
124 memory: 8Gi
125 requests:
126 cpu: 1
127 memory: 1536Mi
128 unlimited: {}
farida azmyd8937332021-03-09 12:20:42 +0200129
130#Pods Service Account
131serviceAccount:
132 nameOverride: aai-modelloader
133 roles:
134 - read
Maciej Wereskid523d122021-09-21 11:22:13 +0200135
Sylvain Desbureaux1e997192021-02-28 14:59:22 +0100136# Not fully used for now
137securityContext:
138 user_id: *user_id
139 group_id: *group_id
140
Maciej Wereskid523d122021-09-21 11:22:13 +0200141#Log configuration
142log:
143 path: /var/log/onap
144logConfigMapNamePrefix: '{{ include "common.fullname" . }}'