Merge "[COMMON] Add custom certs into AAF truststore"
[oom.git] / kubernetes / policy / components / policy-clamp-be / values.yaml
1 # Copyright © 2017 Amdocs, Bell Canada
2 # Modifications Copyright © 2018-2021 AT&T
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 #################################################################
17 # Global configuration defaults.
18 #################################################################
19 global: # global defaults
20   nodePortPrefix: 302
21   persistence: {}
22   centralizedLoggingEnabled: true
23   #AAF service
24   aafEnabled: true
25
26 #################################################################
27 # AAF part
28 #################################################################
29 certInitializer:
30   permission_user: 1000
31   permission_group: 999
32   keystoreFile: 'org.onap.clamp.p12'
33   truststoreFile: 'org.onap.clamp.trust.jks'
34   keyFile: 'org.onap.clamp.keyfile'
35   truststoreFileONAP: 'truststoreONAPall.jks'
36   nameOverride: clamp-backend-cert-initializer
37   aafDeployFqi: deployer@people.osaaf.org
38   aafDeployPass: demo123456!
39   fqdn: clamp
40   fqi: clamp@clamp.onap.org
41   public_fqdn: clamp.onap.org
42   cadi_longitude: '-72.0'
43   cadi_latitude: '38.0'
44   app_ns: org.osaaf.aaf
45   credsPath: /opt/app/osaaf/local
46   aaf_add_config: >
47     echo "$cadi_truststore_password" > {{ .Values.credsPath }}/cadi_truststore_password.pwd;
48     echo "$cadi_key_password" > {{ .Values.credsPath }}/cadi_key_password.pwd;
49     echo "$cadi_keystore_password" > {{ .Values.credsPath }}/cadi_keystore_password.pwd;
50     echo "$cadi_keystore_password_p12" > {{ .Values.credsPath }}/cadi_keystore_password_p12.pwd;
51     cd {{ .Values.credsPath }};
52     chmod a+rx *;
53
54 secrets:
55   - uid: db-creds
56     type: basicAuth
57     externalSecret: '{{ tpl (default "" .Values.db.credsExternalSecret) . }}'
58     login: '{{ .Values.db.user }}'
59     password: '{{ .Values.db.password }}'
60     passwordPolicy: required
61
62 flavor: small
63
64 # application image
65 image: onap/policy-clamp-backend:6.0.2
66 pullPolicy: Always
67
68 # flag to enable debugging - application support required
69 debugEnabled: false
70
71 # log configuration
72 log:
73   path: /var/log/onap
74
75 #################################################################
76 # Application configuration defaults.
77 #################################################################
78
79 #####dummy values for db user and password to pass lint!!!#######
80
81 db:
82   user: policy_user
83   password: policy_user
84   image: mariadb:10.5.8
85   service:
86     name: policy-mariadb
87     internalPort: 3306
88
89 config:
90   log:
91     logstashServiceName: log-ls
92     logstashPort: 5044
93   mysqlPassword: strong_pitchou
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: ClusterIP
119   name: policy-clamp-be
120   portName: policy-clamp-be
121   internalPort: 8443
122   externalPort: 8443
123
124 ingress:
125   enabled: false
126
127 #resources: {}
128 # We usually recommend not to specify default resources and to leave this as a conscious
129 # choice for the user. This also increases chances charts run on environments with little
130 # resources, such as Minikube. If you do want to specify resources, uncomment the following
131 # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
132 #
133 # Example:
134 # Configure resource requests and limits
135 # ref: http://kubernetes.io/docs/user-guide/compute-resources/
136 # Minimum memory for development is 2 CPU cores and 4GB memory
137 # Minimum memory for production is 4 CPU cores and 8GB memory
138 resources:
139   small:
140     limits:
141       cpu: 1
142       memory: 1Gi
143     requests:
144       cpu: 1m
145       memory: 1Gi
146   large:
147     limits:
148       cpu: 1
149       memory: 3Gi
150     requests:
151       cpu: 10m
152       memory: 3Gi
153   unlimited: {}