Mukul | 2b4e753 | 2018-08-03 10:41:29 +0000 | [diff] [blame] | 1 | # Copyright © 2018 AT&T, Amdocs, Bell Canada Intellectual Property. All rights reserved. |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
BorislavG | 12b6158 | 2018-03-28 19:31:32 +0300 | [diff] [blame] | 15 | ################################################################# |
| 16 | # Global configuration defaults. |
| 17 | ################################################################# |
| 18 | global: |
| 19 | nodePortPrefix: 302 |
BorislavG | 12b6158 | 2018-03-28 19:31:32 +0300 | [diff] [blame] | 20 | |
Sylvain Desbureaux | e1b8ac6 | 2021-02-16 10:29:00 +0100 | [diff] [blame^] | 21 | |
| 22 | ################################################################# |
| 23 | # AAF part |
| 24 | ################################################################# |
| 25 | |
| 26 | # dependency / sub-chart configuration |
| 27 | certInitializer: |
| 28 | nameOverride: appc-cdt-cert-initializer |
| 29 | truststoreMountpath: /opt/onap/appc/data/stores |
| 30 | fqdn: "appc-cdt" |
| 31 | app_ns: "org.osaaf.aaf" |
| 32 | fqi: "appc-cdt@appc-cdt.onap.org" |
| 33 | fqi_namespace: org.onap.appc-cdt |
| 34 | public_fqdn: "appc-cdt.onap.org" |
| 35 | aafDeployFqi: "deployer@people.osaaf.org" |
| 36 | aafDeployPass: demo123456! |
| 37 | cadi_latitude: "38.0" |
| 38 | cadi_longitude: "-72.0" |
| 39 | credsPath: /opt/app/osaaf/local |
| 40 | aaf_add_config: | |
| 41 | echo "*** retrieving password for keystore" |
| 42 | export $(/opt/app/aaf_config/bin/agent.sh local showpass \ |
| 43 | {{.Values.fqi}} {{ .Values.fqdn }} | grep '^c' | xargs -0) |
| 44 | if [ -z "$cadi_keystore_password_p12" ] |
| 45 | then |
| 46 | echo " /!\ certificates retrieval failed" |
| 47 | exit 1 |
| 48 | else |
| 49 | cd {{ .Values.credsPath }}; |
| 50 | mkdir -p certs; |
| 51 | echo "*** transform AAF certs into pem files" |
| 52 | mkdir -p {{ .Values.credsPath }}/certs |
| 53 | openssl pkcs12 -in {{ .Values.credsPath }}/{{ .Values.fqi_namespace }}.p12 \ |
| 54 | -nokeys -out {{ .Values.credsPath }}/certs/cert.pem \ |
| 55 | -passin pass:$cadi_keystore_password_p12 \ |
| 56 | -passout pass:$cadi_keystore_password_p12 |
| 57 | echo "*** copy key file" |
| 58 | cp {{ .Values.fqi_namespace }}.key certs/key.pem; |
| 59 | echo "*** change ownership of certificates to targeted user" |
| 60 | chown -R 1000 {{ .Values.credsPath }} |
| 61 | fi |
| 62 | |
BorislavG | 12b6158 | 2018-03-28 19:31:32 +0300 | [diff] [blame] | 63 | ################################################################# |
| 64 | # Application configuration defaults. |
| 65 | ################################################################# |
GregSulek | 973bfad | 2018-09-19 06:48:37 -0400 | [diff] [blame] | 66 | |
| 67 | flavor: small |
| 68 | |
BorislavG | 12b6158 | 2018-03-28 19:31:32 +0300 | [diff] [blame] | 69 | # application image |
Taka Cho | f9cd2cd | 2020-05-23 09:27:19 -0400 | [diff] [blame] | 70 | image: onap/appc-cdt-image:1.7.2 |
BorislavG | 12b6158 | 2018-03-28 19:31:32 +0300 | [diff] [blame] | 71 | pullPolicy: Always |
| 72 | |
| 73 | # application configuration |
| 74 | config: {} |
| 75 | |
| 76 | # default number of instances |
| 77 | replicaCount: 1 |
| 78 | |
| 79 | nodeSelector: {} |
| 80 | |
| 81 | affinity: {} |
| 82 | |
| 83 | # probe configuration parameters |
| 84 | liveness: |
| 85 | initialDelaySeconds: 10 |
| 86 | periodSeconds: 10 |
| 87 | # necessary to disable liveness probe when setting breakpoints |
| 88 | # in debugger so K8s doesn't restart unresponsive container |
| 89 | enabled: true |
| 90 | |
| 91 | readiness: |
| 92 | initialDelaySeconds: 10 |
| 93 | periodSeconds: 10 |
| 94 | |
| 95 | service: |
| 96 | type: NodePort |
| 97 | name: appc-cdt |
Taka Cho | 2fb0261 | 2019-03-03 13:09:56 -0500 | [diff] [blame] | 98 | externalPort: 18080 |
| 99 | internalPort: 18080 |
BorislavG | 12b6158 | 2018-03-28 19:31:32 +0300 | [diff] [blame] | 100 | nodePort: 89 |
| 101 | |
| 102 | ingress: |
| 103 | enabled: false |
Lucjan Bryndza | 684487d | 2019-12-02 12:20:10 +0100 | [diff] [blame] | 104 | service: |
| 105 | - baseaddr: appccdt |
| 106 | name: "appc-cdt" |
| 107 | port: 18080 |
| 108 | config: |
Sylvain Desbureaux | 48a2dd5 | 2020-05-06 15:19:03 +0200 | [diff] [blame] | 109 | ssl: "redirect" |
BorislavG | 12b6158 | 2018-03-28 19:31:32 +0300 | [diff] [blame] | 110 | |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 111 | # Configure resource requests and limits |
| 112 | # ref: http://kubernetes.io/docs/user-guide/compute-resources/ |
GregSulek | 973bfad | 2018-09-19 06:48:37 -0400 | [diff] [blame] | 113 | resources: |
| 114 | small: |
| 115 | limits: |
| 116 | cpu: 1 |
| 117 | memory: 1Gi |
| 118 | requests: |
Mandeep Khinda | 3c13425 | 2018-09-19 23:56:37 +0000 | [diff] [blame] | 119 | cpu: 0.5 |
| 120 | memory: 500Mi |
GregSulek | 973bfad | 2018-09-19 06:48:37 -0400 | [diff] [blame] | 121 | large: |
| 122 | limits: |
| 123 | cpu: 2 |
| 124 | memory: 2Gi |
| 125 | requests: |
Mandeep Khinda | 3c13425 | 2018-09-19 23:56:37 +0000 | [diff] [blame] | 126 | cpu: 1 |
| 127 | memory: 1Gi |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 128 | unlimited: {} |