[COMMON] Add custom certs into AAF truststore
[oom.git] / kubernetes / policy / components / policy-clamp-fe / 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   centralizedLoggingEnabled: true
22   #AAF service
23   aafEnabled: true
24
25 #################################################################
26 # AAF part
27 #################################################################
28 certInitializer:
29   permission_user: 1000
30   permission_group: 999
31   addconfig: true
32   keystoreFile: "org.onap.clamp.p12"
33   truststoreFile: "org.onap.clamp.trust.jks"
34   keyFile: "org.onap.clamp.keyfile"
35   truststoreFileONAP: "truststoreONAPall.jks"
36   clamp_key: "clamp.key"
37   clamp_pem: "clamp.pem"
38   clamp_ca_certs_pem: "clamp-ca-certs.pem"
39   nameOverride: clamp-cert-initializer
40   aafDeployFqi: deployer@people.osaaf.org
41   aafDeployPass: demo123456!
42   # aafDeployCredsExternalSecret: some secret
43   fqdn: clamp
44   fqi: clamp@clamp.onap.org
45   public_fqdn: clamp.onap.org
46   cadi_longitude: "0.0"
47   cadi_latitude: "0.0"
48   app_ns: org.osaaf.aaf
49   credsPath: /opt/app/osaaf/local
50   aaf_add_config: >
51     /opt/app/aaf_config/bin/agent.sh local showpass {{.Values.fqi}} {{ .Values.fqdn }} > {{ .Values.credsPath }}/mycreds.prop;
52     export $(/opt/app/aaf_config/bin/agent.sh local showpass | grep '^c' | xargs -0);
53     cd {{ .Values.credsPath }};
54     openssl pkcs12 -in {{ .Values.keystoreFile }} -nocerts -nodes -passin pass:$cadi_keystore_password_p12 > {{ .Values.clamp_key }};
55     openssl pkcs12 -in {{ .Values.keystoreFile }} -clcerts -nokeys -passin pass:$cadi_keystore_password_p12 > {{ .Values.clamp_pem }};
56     openssl pkcs12 -in {{ .Values.keystoreFile }} -cacerts -nokeys -chain -passin pass:$cadi_keystore_password_p12 > {{ .Values.clamp_ca_certs_pem }};
57     chmod a+rx *;
58
59 subChartsOnly:
60   enabled: true
61
62 flavor: small
63
64 # application image
65 image: onap/policy-clamp-frontend: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/nginx/
74
75 #################################################################
76 # Application configuration defaults.
77 #################################################################
78 config:
79   log:
80     logstashServiceName: log-ls
81     logstashPort: 5044
82   dataRootDir: /dockerdata-nfs
83
84 # default number of instances
85 replicaCount: 1
86
87 nodeSelector: {}
88
89 affinity: {}
90
91 # probe configuration parameters
92 liveness:
93   initialDelaySeconds: 120
94   periodSeconds: 10
95   timeoutSeconds: 3
96   # necessary to disable liveness probe when setting breakpoints
97   # in debugger so K8s doesn't restart unresponsive container
98   enabled: true
99
100 readiness:
101   initialDelaySeconds: 10
102   periodSeconds: 10
103   timeoutSeconds: 3
104
105 service:
106   type: NodePort
107   name: policy-clamp-fe
108   portName: policy-clamp-fe
109   internalPort: 2443
110   nodePort: 58
111
112   # as of 20180904 port 58 is reserved for clamp from log/logdemonode
113   # see https://wiki.onap.org/display/DW/OOM+NodePort+List
114
115 ingress:
116   enabled: false
117   service:
118     - baseaddr: "clamp.api"
119       name: "clamp"
120       port: 2443
121   config:
122     ssl: "redirect"
123
124 #resources: {}
125   # We usually recommend not to specify default resources and to leave this as a conscious
126   # choice for the user. This also increases chances charts run on environments with little
127   # resources, such as Minikube. If you do want to specify resources, uncomment the following
128   # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
129   #
130   # Example:
131   # Configure resource requests and limits
132   # ref: http://kubernetes.io/docs/user-guide/compute-resources/
133   # Minimum memory for development is 2 CPU cores and 4GB memory
134   # Minimum memory for production is 4 CPU cores and 8GB memory
135 resources:
136   small:
137     limits:
138       cpu: 1
139       memory: 200Mi
140     requests:
141       cpu: 1m
142       memory: 50Mi
143   large:
144     limits:
145       cpu: 1
146       memory: 500Mi
147     requests:
148       cpu: 10m
149       memory: 50Mi
150   unlimited: {}