Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 1 | # Copyright © 2018 Amdocs, Bell Canada, AT&T |
Sylvain Desbureaux | 1e99719 | 2021-02-28 14:59:22 +0100 | [diff] [blame] | 2 | # Modifications Copyright © 2020-2021 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 modelloader. |
| 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 | 1e99719 | 2021-02-28 14:59:22 +0100 | [diff] [blame] | 22 | ################################################################# |
| 23 | # Certificate configuration |
| 24 | ################################################################# |
| 25 | certInitializer: |
| 26 | nameOverride: aai-ml-cert-initializer |
| 27 | aafDeployFqi: deployer@people.osaaf.org |
| 28 | aafDeployPass: demo123456! |
| 29 | # aafDeployCredsExternalSecret: some secret |
| 30 | fqdn: aai |
| 31 | fqi: aai@aai.onap.org |
| 32 | public_fqdn: aai.onap.org |
| 33 | cadi_longitude: "0.0" |
| 34 | cadi_latitude: "0.0" |
| 35 | app_ns: org.osaaf.aaf |
| 36 | credsPath: /opt/app/osaaf/local |
| 37 | appMountPath: /opt/app/model-loader/config/auth/aaf |
| 38 | fqi_namespace: org.onap.aai |
| 39 | user_id: &user_id 1000 |
| 40 | group_id: &group_id 1000 |
| 41 | aaf_add_config: | |
| 42 | echo "*** changing them into shell safe ones" |
| 43 | export KEYSTORE_PLAIN_PASSWORD=$(tr -cd '[:alnum:]' < /dev/urandom | fold -w64 | head -n1) |
| 44 | export TRUSTSTORE_PLAIN_PASSWORD=$(tr -cd '[:alnum:]' < /dev/urandom | fold -w64 | head -n1) |
| 45 | cd {{ .Values.credsPath }} |
| 46 | keytool -storepasswd -new "${KEYSTORE_PLAIN_PASSWORD}" \ |
| 47 | -storepass "${cadi_keystore_password_p12}" \ |
| 48 | -keystore {{ .Values.fqi_namespace }}.p12 |
| 49 | keytool -storepasswd -new "${TRUSTSTORE_PLAIN_PASSWORD}" \ |
| 50 | -storepass "${cadi_truststore_password}" \ |
| 51 | -keystore {{ .Values.fqi_namespace }}.trust.jks |
| 52 | echo "*** writing passwords into prop file" |
| 53 | echo "KEYSTORE_PLAIN_PASSWORD=${KEYSTORE_PLAIN_PASSWORD}" > {{ .Values.credsPath }}/mycreds.prop |
| 54 | echo "TRUSTSTORE_PLAIN_PASSWORD=${TRUSTSTORE_PLAIN_PASSWORD}" >> {{ .Values.credsPath }}/mycreds.prop |
| 55 | echo "*** change ownership of certificates to targeted user" |
| 56 | chown -R {{ .Values.user_id }}:{{ .Values.group_id }} {{ .Values.credsPath }} |
| 57 | |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 58 | # application image |
wr148d | 702d68a | 2022-10-20 18:26:54 -0400 | [diff] [blame] | 59 | image: onap/model-loader:1.11.0 |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 60 | pullPolicy: Always |
| 61 | restartPolicy: Always |
| 62 | flavor: small |
| 63 | flavorOverride: small |
| 64 | # application configuration |
| 65 | config: {} |
| 66 | |
| 67 | # default number of instances |
| 68 | replicaCount: 1 |
| 69 | |
Rommel Pawar | 63db716 | 2022-11-16 10:11:24 -0800 | [diff] [blame] | 70 | updateStrategy: |
| 71 | type: RollingUpdate |
| 72 | maxUnavailable: 0 |
| 73 | maxSurge: 1 |
| 74 | |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 75 | nodeSelector: {} |
| 76 | |
| 77 | affinity: {} |
| 78 | |
| 79 | # probe configuration parameters |
| 80 | liveness: |
| 81 | initialDelaySeconds: 10 |
| 82 | periodSeconds: 10 |
| 83 | # necessary to disable liveness probe when setting breakpoints |
| 84 | # in debugger so K8s doesn't restart unresponsive container |
| 85 | enabled: true |
| 86 | |
| 87 | readiness: |
| 88 | initialDelaySeconds: 10 |
| 89 | periodSeconds: 10 |
| 90 | |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 91 | resources: |
| 92 | small: |
| 93 | limits: |
| 94 | cpu: 2 |
| 95 | memory: 4Gi |
| 96 | requests: |
| 97 | cpu: 0.5 |
| 98 | memory: 1Gi |
| 99 | large: |
| 100 | limits: |
| 101 | cpu: 4 |
| 102 | memory: 8Gi |
| 103 | requests: |
| 104 | cpu: 1 |
| 105 | memory: 1536Mi |
| 106 | unlimited: {} |
farida azmy | d893733 | 2021-03-09 12:20:42 +0200 | [diff] [blame] | 107 | |
| 108 | #Pods Service Account |
| 109 | serviceAccount: |
| 110 | nameOverride: aai-modelloader |
| 111 | roles: |
| 112 | - read |
Maciej Wereski | d523d12 | 2021-09-21 11:22:13 +0200 | [diff] [blame] | 113 | |
Sylvain Desbureaux | 1e99719 | 2021-02-28 14:59:22 +0100 | [diff] [blame] | 114 | # Not fully used for now |
| 115 | securityContext: |
| 116 | user_id: *user_id |
| 117 | group_id: *group_id |
| 118 | |
Maciej Wereski | d523d12 | 2021-09-21 11:22:13 +0200 | [diff] [blame] | 119 | #Log configuration |
| 120 | log: |
| 121 | path: /var/log/onap |
| 122 | logConfigMapNamePrefix: '{{ include "common.fullname" . }}' |