Alexander Dehn | 9b797d6 | 2020-04-21 09:53:50 +0000 | [diff] [blame] | 1 | # Copyright © 2020 highstreet technologies GmbH |
| 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 | |
| 15 | ################################################################# |
| 16 | # Global configuration defaults. |
| 17 | ################################################################# |
| 18 | global: |
| 19 | aafEnabled: true |
| 20 | nodePortPrefix: 322 |
Alexander Dehn | 9b797d6 | 2020-04-21 09:53:50 +0000 | [diff] [blame] | 21 | k8scluster: svc.cluster.local |
| 22 | ################################################################# |
| 23 | # Application configuration defaults. |
| 24 | ################################################################# |
| 25 | # application image |
Timoney, Dan (dt5972) | 5df5a5c | 2022-10-28 11:50:38 -0400 | [diff] [blame] | 26 | image: "onap/sdnc-web-image:2.4.1" |
Alexander Dehn | 9b797d6 | 2020-04-21 09:53:50 +0000 | [diff] [blame] | 27 | pullPolicy: Always |
| 28 | |
| 29 | config: |
| 30 | sdncChartName: sdnc |
| 31 | webProtocol: HTTPS |
Radoslaw Chmiel | 58662a3 | 2022-06-02 19:37:35 +0200 | [diff] [blame] | 32 | webPlainProtocol: HTTP |
Alexander Dehn | 9b797d6 | 2020-04-21 09:53:50 +0000 | [diff] [blame] | 33 | webPort: 8443 |
Radoslaw Chmiel | 58662a3 | 2022-06-02 19:37:35 +0200 | [diff] [blame] | 34 | webPlainPort: 8080 |
Alexander Dehn | 8789a72 | 2020-10-16 14:29:05 +0000 | [diff] [blame] | 35 | sdnrProtocol: https |
Radoslaw Chmiel | 58662a3 | 2022-06-02 19:37:35 +0200 | [diff] [blame] | 36 | sdnrPlainProtocol: http |
Alexander Dehn | 9b797d6 | 2020-04-21 09:53:50 +0000 | [diff] [blame] | 37 | sdnrHost: "sdnc" |
Radoslaw Chmiel | 58662a3 | 2022-06-02 19:37:35 +0200 | [diff] [blame] | 38 | sdnrPlainHost: "sdnc" |
Alexander Dehn | 9b797d6 | 2020-04-21 09:53:50 +0000 | [diff] [blame] | 39 | sdnrPort: "8443" |
Radoslaw Chmiel | 58662a3 | 2022-06-02 19:37:35 +0200 | [diff] [blame] | 40 | sdnrPlainPort : "8080" |
Alexander Dehn | 9b797d6 | 2020-04-21 09:53:50 +0000 | [diff] [blame] | 41 | sslCertDir: "/opt/app/osaaf/local/certs" |
| 42 | sslCertiticate: "cert.pem" |
| 43 | sslCertKey: "key.pem" |
demskeq8 | b43e92c | 2021-02-12 15:43:48 +0100 | [diff] [blame] | 44 | oauth: |
| 45 | enabled: false |
| 46 | odluxRbac: |
| 47 | enabled: false |
Alexander Dehn | 8789a72 | 2020-10-16 14:29:05 +0000 | [diff] [blame] | 48 | transportpce: |
| 49 | enabled: false |
| 50 | transportpceUrl: http://transportpce.transportpce:8181 |
| 51 | topologyserver: |
| 52 | enabled: false |
| 53 | topologyserverUrl: http://toplogy-api-service.topology:3001 |
| 54 | tileserverUrl: https://tile.openstreetmap.org |
Alexander Dehn | 9b797d6 | 2020-04-21 09:53:50 +0000 | [diff] [blame] | 55 | |
| 56 | |
| 57 | ################################################################# |
| 58 | # aaf configuration defaults. |
| 59 | ################################################################# |
| 60 | certInitializer: |
| 61 | nameOverride: sdnc-web-cert-initializer |
| 62 | fqdn: "sdnc" |
| 63 | app_ns: "org.osaaf.aaf" |
| 64 | fqi: "sdnc@sdnc.onap.org" |
| 65 | fqi_namespace: "org.onap.sdnc" |
| 66 | public_fqdn: "sdnc.onap.org" |
| 67 | aafDeployFqi: "deployer@people.osaaf.org" |
| 68 | aafDeployPass: demo123456! |
| 69 | cadi_latitude: "38.0" |
| 70 | cadi_longitude: "-72.0" |
| 71 | credsPath: /opt/app/osaaf/local |
Sylvain Desbureaux | dea12ce | 2021-02-23 16:40:28 +0100 | [diff] [blame^] | 72 | aaf_add_config: | |
| 73 | cd /opt/app/osaaf/local |
| 74 | mkdir -p certs |
| 75 | keytool -exportcert -rfc -file certs/cacert.pem -keystore {{ .Values.fqi_namespace }}.trust.jks -alias ca_local_0 -storepass $cadi_truststore_password |
| 76 | openssl pkcs12 -in {{ .Values.fqi_namespace }}.p12 -out certs/cert.pem -passin pass:$cadi_keystore_password_p12 -passout pass:$cadi_keystore_password_p12 |
| 77 | cp {{ .Values.fqi_namespace }}.key certs/key.pem |
| 78 | chmod -R 755 certs |
Alexander Dehn | 9b797d6 | 2020-04-21 09:53:50 +0000 | [diff] [blame] | 79 | |
| 80 | # default number of instances |
| 81 | replicaCount: 1 |
| 82 | |
| 83 | nodeSelector: {} |
| 84 | |
| 85 | affinity: {} |
| 86 | |
| 87 | # probe configuration parameters |
| 88 | liveness: |
| 89 | initialDelaySeconds: 180 |
| 90 | periodSeconds: 10 |
| 91 | # necessary to disable liveness probe when setting breakpoints |
| 92 | # in debugger so K8s doesn't restart unresponsive container |
| 93 | enabled: true |
| 94 | |
| 95 | readiness: |
| 96 | initialDelaySeconds: 60 |
| 97 | periodSeconds: 10 |
| 98 | |
| 99 | service: |
| 100 | name: sdnc-web |
| 101 | suffix: service |
| 102 | type: NodePort |
| 103 | sessionAffinity: ClientIP |
| 104 | # for liveness and readiness probe only |
| 105 | # internalPort: |
| 106 | internalPort: 8443 |
Radoslaw Chmiel | 58662a3 | 2022-06-02 19:37:35 +0200 | [diff] [blame] | 107 | internalPlainPort: 8080 |
Alexander Dehn | 9b797d6 | 2020-04-21 09:53:50 +0000 | [diff] [blame] | 108 | ports: |
Radoslaw Chmiel | 58662a3 | 2022-06-02 19:37:35 +0200 | [diff] [blame] | 109 | - name: http-sdnc-web |
Alexander Dehn | 9b797d6 | 2020-04-21 09:53:50 +0000 | [diff] [blame] | 110 | port: "8443" |
Radoslaw Chmiel | 58662a3 | 2022-06-02 19:37:35 +0200 | [diff] [blame] | 111 | plain_port: "8080" |
| 112 | port_protocol: http |
Alexander Dehn | 9b797d6 | 2020-04-21 09:53:50 +0000 | [diff] [blame] | 113 | nodePort: "05" |
| 114 | |
| 115 | #ingress: |
| 116 | # enabled: false |
| 117 | |
| 118 | #Resource limit flavor -By default using small |
| 119 | flavor: small |
| 120 | #segregation for different environment (small and large) |
| 121 | resources: |
| 122 | small: |
| 123 | limits: |
| 124 | cpu: 1 |
| 125 | memory: 1Gi |
| 126 | requests: |
| 127 | cpu: 0.5 |
| 128 | memory: 500Mi |
| 129 | large: |
| 130 | limits: |
| 131 | cpu: 2 |
| 132 | memory: 2Gi |
| 133 | requests: |
| 134 | cpu: 1 |
| 135 | memory: 1Gi |
| 136 | unlimited: {} |
farida azmy | 32c5ed8 | 2021-08-04 14:46:09 +0200 | [diff] [blame] | 137 | |
| 138 | #Pods Service Account |
| 139 | serviceAccount: |
| 140 | nameOverride: sdnc-web |
| 141 | roles: |
| 142 | - read |