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 |
Dan Timoney | aa79ff6 | 2020-11-18 16:43:33 -0500 | [diff] [blame] | 26 | image: "onap/sdnc-web-image:2.0.4" |
Alexander Dehn | 9b797d6 | 2020-04-21 09:53:50 +0000 | [diff] [blame] | 27 | pullPolicy: Always |
| 28 | |
| 29 | config: |
| 30 | sdncChartName: sdnc |
| 31 | webProtocol: HTTPS |
| 32 | webPort: 8443 |
Alexander Dehn | 8789a72 | 2020-10-16 14:29:05 +0000 | [diff] [blame] | 33 | sdnrProtocol: https |
Alexander Dehn | 9b797d6 | 2020-04-21 09:53:50 +0000 | [diff] [blame] | 34 | sdnrHost: "sdnc" |
| 35 | sdnrPort: "8443" |
| 36 | sslCertDir: "/opt/app/osaaf/local/certs" |
| 37 | sslCertiticate: "cert.pem" |
| 38 | sslCertKey: "key.pem" |
Alexander Dehn | 8789a72 | 2020-10-16 14:29:05 +0000 | [diff] [blame] | 39 | transportpce: |
| 40 | enabled: false |
| 41 | transportpceUrl: http://transportpce.transportpce:8181 |
| 42 | topologyserver: |
| 43 | enabled: false |
| 44 | topologyserverUrl: http://toplogy-api-service.topology:3001 |
| 45 | tileserverUrl: https://tile.openstreetmap.org |
Alexander Dehn | 9b797d6 | 2020-04-21 09:53:50 +0000 | [diff] [blame] | 46 | |
| 47 | |
| 48 | ################################################################# |
| 49 | # aaf configuration defaults. |
| 50 | ################################################################# |
| 51 | certInitializer: |
| 52 | nameOverride: sdnc-web-cert-initializer |
| 53 | fqdn: "sdnc" |
| 54 | app_ns: "org.osaaf.aaf" |
| 55 | fqi: "sdnc@sdnc.onap.org" |
| 56 | fqi_namespace: "org.onap.sdnc" |
| 57 | public_fqdn: "sdnc.onap.org" |
| 58 | aafDeployFqi: "deployer@people.osaaf.org" |
| 59 | aafDeployPass: demo123456! |
| 60 | cadi_latitude: "38.0" |
| 61 | cadi_longitude: "-72.0" |
| 62 | credsPath: /opt/app/osaaf/local |
| 63 | aaf_add_config: > |
| 64 | cd /opt/app/osaaf/local; |
| 65 | mkdir -p certs; |
| 66 | export $(/opt/app/aaf_config/bin/agent.sh local showpass | grep '^c' | xargs -0); |
| 67 | keytool -exportcert -rfc -file certs/cacert.pem -keystore {{ .Values.fqi_namespace }}.trust.jks -alias ca_local_0 -storepass $cadi_truststore_password; |
| 68 | openssl pkcs12 -in {{ .Values.fqi_namespace }}.p12 -out certs/cert.pem -passin pass:$cadi_keystore_password_p12 -passout pass:$cadi_keystore_password_p12; |
| 69 | cp {{ .Values.fqi_namespace }}.key certs/key.pem; |
| 70 | chmod -R 755 certs; |
| 71 | |
| 72 | # default number of instances |
| 73 | replicaCount: 1 |
| 74 | |
| 75 | nodeSelector: {} |
| 76 | |
| 77 | affinity: {} |
| 78 | |
| 79 | # probe configuration parameters |
| 80 | liveness: |
| 81 | initialDelaySeconds: 180 |
| 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: 60 |
| 89 | periodSeconds: 10 |
| 90 | |
| 91 | service: |
| 92 | name: sdnc-web |
| 93 | suffix: service |
| 94 | type: NodePort |
| 95 | sessionAffinity: ClientIP |
| 96 | # for liveness and readiness probe only |
| 97 | # internalPort: |
| 98 | internalPort: 8443 |
| 99 | ports: |
| 100 | - name: "sdnc-web" |
| 101 | port: "8443" |
| 102 | nodePort: "05" |
| 103 | |
| 104 | #ingress: |
| 105 | # enabled: false |
| 106 | |
| 107 | #Resource limit flavor -By default using small |
| 108 | flavor: small |
| 109 | #segregation for different environment (small and large) |
| 110 | resources: |
| 111 | small: |
| 112 | limits: |
| 113 | cpu: 1 |
| 114 | memory: 1Gi |
| 115 | requests: |
| 116 | cpu: 0.5 |
| 117 | memory: 500Mi |
| 118 | large: |
| 119 | limits: |
| 120 | cpu: 2 |
| 121 | memory: 2Gi |
| 122 | requests: |
| 123 | cpu: 1 |
| 124 | memory: 1Gi |
| 125 | unlimited: {} |