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