vaibhav_16dec | e04b2fe | 2018-03-22 09:07:12 +0000 | [diff] [blame] | 1 | # Copyright © 2017 Amdocs, Bell Canada |
| 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 | |
Priyanka | ec75797 | 2018-03-28 11:23:59 +0000 | [diff] [blame] | 15 | ################################################################# |
| 16 | # Global configuration defaults. |
| 17 | ################################################################# |
| 18 | global: |
| 19 | nodePortPrefix: 302 |
Sylvain Desbureaux | bc1f4be | 2021-02-16 11:51:30 +0100 | [diff] [blame] | 20 | |
| 21 | ################################################################# |
| 22 | # Certificate configuration |
| 23 | ################################################################# |
| 24 | certInitializer: |
| 25 | nameOverride: cli-cert-initializer |
| 26 | aafDeployFqi: deployer@people.osaaf.org |
| 27 | aafDeployPass: demo123456! |
| 28 | # aafDeployCredsExternalSecret: some secret |
| 29 | fqdn: "cli" |
| 30 | app_ns: "org.osaaf.aaf" |
| 31 | fqi_namespace: "org.onap.cli" |
| 32 | fqi: "cli@cli.onap.org" |
| 33 | public_fqdn: "aaf.osaaf.org" |
| 34 | cadi_longitude: "0.0" |
| 35 | cadi_latitude: "0.0" |
| 36 | credsPath: /opt/app/osaaf/local |
| 37 | aaf_add_config: | |
Sylvain Desbureaux | 500622f | 2021-02-23 16:07:09 +0100 | [diff] [blame] | 38 | echo "*** transform AAF certs into pem files" |
| 39 | mkdir -p {{ .Values.credsPath }}/certs |
| 40 | keytool -exportcert -rfc -file {{ .Values.credsPath }}/certs/cacert.pem \ |
| 41 | -keystore {{ .Values.credsPath }}/{{ .Values.fqi_namespace }}.trust.jks \ |
| 42 | -alias ca_local_0 \ |
| 43 | -storepass $cadi_truststore_password |
| 44 | openssl pkcs12 -in {{ .Values.credsPath }}/{{ .Values.fqi_namespace }}.p12 \ |
| 45 | -nokeys -out {{ .Values.credsPath }}/certs/cert.pem \ |
| 46 | -passin pass:$cadi_keystore_password_p12 \ |
| 47 | -passout pass:$cadi_keystore_password_p12 |
| 48 | echo "*** generating needed file" |
| 49 | cat {{ .Values.credsPath }}/{{ .Values.fqi_namespace }}.key \ |
| 50 | {{ .Values.credsPath }}/certs/cert.pem \ |
| 51 | {{ .Values.credsPath }}/certs/cacert.pem \ |
| 52 | > {{ .Values.credsPath }}/certs/fullchain.pem; |
| 53 | cat {{ .Values.credsPath }}/certs/fullchain.pem |
| 54 | echo "*** change ownership of certificates to targeted user" |
| 55 | chown -R 33 {{ .Values.credsPath }} |
Sylvain Desbureaux | bc1f4be | 2021-02-16 11:51:30 +0100 | [diff] [blame] | 56 | |
| 57 | |
Priyanka | ec75797 | 2018-03-28 11:23:59 +0000 | [diff] [blame] | 58 | ################################################################# |
| 59 | # Application configuration defaults. |
| 60 | ################################################################# |
| 61 | # application image |
Bogumil Zebek | 0d121a2 | 2021-02-24 10:01:44 +0100 | [diff] [blame] | 62 | image: onap/cli:6.0.1 |
subhash kumar singh | fc3fa1e | 2017-08-31 23:33:16 +0530 | [diff] [blame] | 63 | pullPolicy: Always |
rajeshkalai | 91524d0 | 2018-09-18 03:39:18 -0400 | [diff] [blame] | 64 | flavor: small |
Priyanka | ec75797 | 2018-03-28 11:23:59 +0000 | [diff] [blame] | 65 | |
| 66 | # application configuration |
| 67 | config: |
| 68 | climode: daemon |
| 69 | |
| 70 | # default number of instances |
| 71 | replicaCount: 1 |
| 72 | |
| 73 | nodeSelector: {} |
| 74 | |
| 75 | affinity: {} |
| 76 | |
| 77 | # probe configuration parameters |
| 78 | liveness: |
| 79 | initialDelaySeconds: 10 |
| 80 | periodSeconds: 10 |
| 81 | # necessary to disable liveness probe when setting breakpoints |
| 82 | # in debugger so K8s doesn't restart unresponsive container |
| 83 | enabled: true |
| 84 | |
| 85 | readiness: |
| 86 | initialDelaySeconds: 10 |
| 87 | periodSeconds: 10 |
| 88 | |
| 89 | service: |
| 90 | type: NodePort |
| 91 | name: cli |
Kanagaraj Manickam | fed2112 | 2020-04-04 09:44:19 +0530 | [diff] [blame] | 92 | externalPort: 443 |
Priyanka | ec75797 | 2018-03-28 11:23:59 +0000 | [diff] [blame] | 93 | externalPort1: 9090 |
Kanagaraj Manickam | fed2112 | 2020-04-04 09:44:19 +0530 | [diff] [blame] | 94 | internalPort: "443" |
| 95 | internalPort1: 9090 |
Priyanka | ec75797 | 2018-03-28 11:23:59 +0000 | [diff] [blame] | 96 | nodePort: "60" |
Mandeep Khinda | 9ef4d43 | 2018-05-17 20:16:06 +0000 | [diff] [blame] | 97 | nodePort1: "71" |
Priyanka | ec75797 | 2018-03-28 11:23:59 +0000 | [diff] [blame] | 98 | |
| 99 | ingress: |
| 100 | enabled: false |
Lucjan Bryndza | faf1985 | 2019-12-02 13:30:20 +0100 | [diff] [blame] | 101 | service: |
Lucjan Bryndza | 0564965 | 2020-04-29 08:52:33 +0000 | [diff] [blame] | 102 | - baseaddr: "cli.api" |
Lucjan Bryndza | faf1985 | 2019-12-02 13:30:20 +0100 | [diff] [blame] | 103 | name: "cli" |
Kanagaraj Manickam | fed2112 | 2020-04-04 09:44:19 +0530 | [diff] [blame] | 104 | port: 443 |
Lucjan Bryndza | 0564965 | 2020-04-29 08:52:33 +0000 | [diff] [blame] | 105 | - baseaddr: "cli2.api" |
Lucjan Bryndza | faf1985 | 2019-12-02 13:30:20 +0100 | [diff] [blame] | 106 | name: cli |
| 107 | port: 9090 |
| 108 | config: |
Sylvain Desbureaux | 7ce1bc0 | 2020-05-06 15:20:39 +0200 | [diff] [blame] | 109 | ssl: "redirect" |
Priyanka | ec75797 | 2018-03-28 11:23:59 +0000 | [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/ |
rajeshkalai | 9eb454b | 2018-09-18 16:43:26 -0400 | [diff] [blame] | 113 | resources: |
| 114 | small: |
| 115 | limits: |
| 116 | cpu: 1 |
| 117 | memory: 2Gi |
| 118 | requests: |
Mandeep Khinda | 3c13425 | 2018-09-19 23:56:37 +0000 | [diff] [blame] | 119 | cpu: 10m |
| 120 | memory: 500Mi |
rajeshkalai | 9eb454b | 2018-09-18 16:43:26 -0400 | [diff] [blame] | 121 | large: |
| 122 | limits: |
| 123 | cpu: 4 |
| 124 | memory: 8Gi |
| 125 | requests: |
Mandeep Khinda | 3c13425 | 2018-09-19 23:56:37 +0000 | [diff] [blame] | 126 | cpu: 2 |
| 127 | memory: 4Gi |
Kanagaraj Manickam | fed2112 | 2020-04-04 09:44:19 +0530 | [diff] [blame] | 128 | unlimited: {} |
farida azmy | 11e021d | 2021-10-02 15:18:20 +0200 | [diff] [blame] | 129 | |
| 130 | #Pods Service Account |
| 131 | serviceAccount: |
| 132 | nameOverride: cli |
| 133 | roles: |
| 134 | - read |