ktimoney | b3aef7b | 2021-09-13 08:27:58 +0100 | [diff] [blame] | 1 | # ============LICENSE_START======================================================= |
danielhanrahan | 8832664 | 2022-02-28 14:08:08 +0000 | [diff] [blame] | 2 | # Copyright (C) 2021-2022 Nordix Foundation. |
ktimoney | b3aef7b | 2021-09-13 08:27:58 +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 | # SPDX-License-Identifier: Apache-2.0 |
| 17 | # ============LICENSE_END========================================================= |
| 18 | |
| 19 | ################################################################# |
| 20 | # Global configuration defaults. |
| 21 | ################################################################# |
| 22 | global: # global defaults |
| 23 | nodePortPrefix: 304 |
| 24 | centralizedLoggingEnabled: true |
| 25 | #AAF service |
| 26 | aafEnabled: true |
| 27 | |
| 28 | ################################################################# |
danielhanrahan | 8832664 | 2022-02-28 14:08:08 +0000 | [diff] [blame] | 29 | # Secrets metaconfig |
| 30 | ################################################################# |
| 31 | secrets: |
| 32 | - uid: keystore-password |
| 33 | type: password |
| 34 | externalSecret: '{{ tpl (default "" .Values.certStores.keyStorePasswordExternalSecret) . }}' |
| 35 | password: '{{ .Values.certStores.keyStorePassword }}' |
| 36 | passwordPolicy: required |
| 37 | - uid: truststore-password |
| 38 | type: password |
| 39 | externalSecret: '{{ tpl (default "" .Values.certStores.trustStorePasswordExternalSecret) . }}' |
| 40 | password: '{{ .Values.certStores.trustStorePassword }}' |
| 41 | passwordPolicy: required |
| 42 | |
| 43 | certStores: |
| 44 | keyStorePassword: Pol1cy_0nap |
| 45 | trustStorePassword: Pol1cy_0nap |
| 46 | |
| 47 | ################################################################# |
ktimoney | b3aef7b | 2021-09-13 08:27:58 +0100 | [diff] [blame] | 48 | # AAF part |
| 49 | ################################################################# |
| 50 | certInitializer: |
ktimoney | b3aef7b | 2021-09-13 08:27:58 +0100 | [diff] [blame] | 51 | nameOverride: policy-gui-cert-initializer |
| 52 | aafDeployFqi: deployer@people.osaaf.org |
| 53 | aafDeployPass: demo123456! |
danielhanrahan | 8832664 | 2022-02-28 14:08:08 +0000 | [diff] [blame] | 54 | fqdn: policy |
| 55 | fqi: policy@policy.onap.org |
| 56 | public_fqdn: policy.onap.org |
ktimoney | b3aef7b | 2021-09-13 08:27:58 +0100 | [diff] [blame] | 57 | cadi_latitude: "0.0" |
danielhanrahan | 8832664 | 2022-02-28 14:08:08 +0000 | [diff] [blame] | 58 | cadi_longitude: "0.0" |
ktimoney | b3aef7b | 2021-09-13 08:27:58 +0100 | [diff] [blame] | 59 | credsPath: /opt/app/osaaf/local |
danielhanrahan | 8832664 | 2022-02-28 14:08:08 +0000 | [diff] [blame] | 60 | app_ns: org.osaaf.aaf |
| 61 | uid: 100 |
| 62 | gid: 101 |
ktimoney | b3aef7b | 2021-09-13 08:27:58 +0100 | [diff] [blame] | 63 | aaf_add_config: > |
danielhanrahan | 8832664 | 2022-02-28 14:08:08 +0000 | [diff] [blame] | 64 | echo "export KEYSTORE='{{ .Values.credsPath }}/org.onap.policy.p12'" > {{ .Values.credsPath }}/.ci; |
| 65 | echo "export TRUSTSTORE='{{ .Values.credsPath }}/org.onap.policy.trust.jks'" >> {{ .Values.credsPath }}/.ci; |
| 66 | echo "export KEYSTORE_PASSWD='${cadi_keystore_password_p12}'" >> {{ .Values.credsPath }}/.ci; |
| 67 | echo "export TRUSTSTORE_PASSWD='${cadi_truststore_password}'" >> {{ .Values.credsPath }}/.ci; |
| 68 | chown -R {{ .Values.uid }}:{{ .Values.gid }} $(dirname {{ .Values.credsPath }}); |
ktimoney | b3aef7b | 2021-09-13 08:27:58 +0100 | [diff] [blame] | 69 | |
| 70 | subChartsOnly: |
| 71 | enabled: true |
| 72 | |
| 73 | flavor: small |
| 74 | |
| 75 | # application image |
jhh | 2a5d1bb | 2022-05-04 13:44:26 -0500 | [diff] [blame] | 76 | image: onap/policy-gui:2.2.3 |
ktimoney | b3aef7b | 2021-09-13 08:27:58 +0100 | [diff] [blame] | 77 | pullPolicy: Always |
| 78 | |
| 79 | # flag to enable debugging - application support required |
| 80 | debugEnabled: false |
| 81 | |
| 82 | # log configuration |
| 83 | log: |
danielhanrahan | 8832664 | 2022-02-28 14:08:08 +0000 | [diff] [blame] | 84 | path: /var/log/onap/policy/gui |
ktimoney | b3aef7b | 2021-09-13 08:27:58 +0100 | [diff] [blame] | 85 | |
| 86 | ################################################################# |
| 87 | # Application configuration defaults. |
| 88 | ################################################################# |
| 89 | config: |
| 90 | log: |
| 91 | logstashServiceName: log-ls |
| 92 | logstashPort: 5044 |
| 93 | dataRootDir: /dockerdata-nfs |
| 94 | |
| 95 | # default number of instances |
| 96 | replicaCount: 1 |
| 97 | |
| 98 | nodeSelector: {} |
| 99 | |
| 100 | affinity: {} |
| 101 | |
| 102 | # probe configuration parameters |
| 103 | liveness: |
| 104 | initialDelaySeconds: 120 |
| 105 | periodSeconds: 10 |
| 106 | timeoutSeconds: 3 |
| 107 | # necessary to disable liveness probe when setting breakpoints |
| 108 | # in debugger so K8s doesn't restart unresponsive container |
| 109 | enabled: true |
| 110 | |
| 111 | readiness: |
| 112 | initialDelaySeconds: 10 |
| 113 | periodSeconds: 10 |
| 114 | timeoutSeconds: 3 |
| 115 | |
| 116 | service: |
| 117 | type: NodePort |
| 118 | name: policy-gui |
| 119 | portName: policy-gui |
| 120 | internalPort: 2443 |
| 121 | nodePort: 43 |
| 122 | |
| 123 | # see https://wiki.onap.org/display/DW/OOM+NodePort+List |
| 124 | |
| 125 | ingress: |
| 126 | enabled: false |
| 127 | service: |
| 128 | - baseaddr: "policygui.api" |
| 129 | name: "policygui" |
| 130 | port: 2443 |
| 131 | config: |
| 132 | ssl: "redirect" |
| 133 | |
| 134 | #resources: {} |
| 135 | # We usually recommend not to specify default resources and to leave this as a conscious |
| 136 | # choice for the user. This also increases chances charts run on environments with little |
| 137 | # resources, such as Minikube. If you do want to specify resources, uncomment the following |
| 138 | # lines, adjust them as necessary, and remove the curly braces after 'resources:'. |
| 139 | # |
| 140 | # Example: |
| 141 | # Configure resource requests and limits |
| 142 | # ref: http://kubernetes.io/docs/user-guide/compute-resources/ |
| 143 | # Minimum memory for development is 2 CPU cores and 4GB memory |
| 144 | # Minimum memory for production is 4 CPU cores and 8GB memory |
| 145 | resources: |
| 146 | small: |
| 147 | limits: |
| 148 | cpu: 1 |
| 149 | memory: 200Mi |
| 150 | requests: |
| 151 | cpu: 1m |
| 152 | memory: 50Mi |
| 153 | large: |
| 154 | limits: |
| 155 | cpu: 1 |
| 156 | memory: 500Mi |
| 157 | requests: |
| 158 | cpu: 10m |
| 159 | memory: 50Mi |
| 160 | unlimited: {} |
| 161 | |
| 162 | #Pods Service Account |
| 163 | serviceAccount: |
| 164 | nameOverride: policy-gui |
| 165 | roles: |
| 166 | - read |