Merge "[DCAEMOD] Uses new tpls for repos / images"
[oom.git] / kubernetes / platform / components / oom-cert-service / values.yaml
1 # Copyright © 2020, Nokia
2 # Modifications Copyright  © 2020, Nordix Foundation, Orange
3 # Modifications Copyright © 2020 Nokia
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 # Global
18 global:
19   nodePortPrefix: 302
20   persistence:
21     enabled: true
22   # Standard OOM
23   pullPolicy: "Always"
24   repository: "nexus3.onap.org:10001"
25   offlineDeploymentBuild: false
26
27
28 # Service configuration
29 service:
30   type: ClusterIP
31   ports:
32     - name: http
33       port: 8443
34       port_protocol: http
35
36 # Certificates generation configuration
37 certificateGenerationImage: onap/integration-java11:7.1.0
38
39 # Deployment configuration
40 repository: "nexus3.onap.org:10001"
41 image: onap/org.onap.oom.platform.cert-service.oom-certservice-api:2.1.0
42 pullPolicy: Always
43 replicaCount: 1
44
45 liveness:
46   initialDelaySeconds: 60
47   periodSeconds: 10
48   command: curl https://localhost:$HTTPS_PORT/actuator/health --cacert $ROOT_CERT --cert-type p12 --cert $KEYSTORE_P12_PATH --pass $KEYSTORE_PASSWORD
49 readiness:
50   initialDelaySeconds: 30
51   periodSeconds: 10
52   command: curl https://localhost:$HTTPS_PORT/ready --cacert $ROOT_CERT --cert-type p12 --cert $KEYSTORE_P12_PATH --pass $KEYSTORE_PASSWORD
53
54 flavor: small
55 resources:
56   small:
57     limits:
58       cpu: 0.5
59       memory: 1Gi
60     requests:
61       cpu: 0.2
62       memory: 512Mi
63   large:
64     limits:
65       cpu: 1
66       memory: 2Gi
67     requests:
68       cpu: 0.4
69       memory: 1Gi
70   unlimited: {}
71
72
73 # Application configuration
74 cmpServers:
75   secret:
76     name: oom-cert-service-secret
77   volume:
78     name: oom-cert-service-volume
79     mountPath: /etc/onap/oom/certservice
80
81 tls:
82   server:
83     secret:
84       name: oom-cert-service-server-tls-secret
85     volume:
86       name: oom-cert-service-server-tls-volume
87       mountPath: /etc/onap/oom/certservice/certs/
88   client:
89     secret:
90       defaultName: oom-cert-service-client-tls-secret
91
92 envs:
93   keystore:
94     jksName: certServiceServer-keystore.jks
95     p12Name: certServiceServer-keystore.p12
96   truststore:
97     jksName: truststore.jks
98     crtName: root.crt
99   httpsPort: 8443
100
101 # External secrets with credentials can be provided to override default credentials defined below,
102 # by uncommenting and filling appropriate *ExternalSecret value
103 credentials:
104   tls:
105     keystorePassword: secret
106     truststorePassword: secret
107     #keystorePasswordExternalSecret:
108     #truststorePasswordExternalSecret:
109   # Below cmp values contain credentials for EJBCA test instance and are relevant only if global addTestingComponents flag is enabled
110   cmp:
111     # Used only if cmpv2 testing is enabled
112     clientIakExternalSecret: '{{ include "common.release" . }}-ejbca-client-iak'
113     #clientRvExternalSecret:
114     raIakExternalSecret: '{{ include "common.release" . }}-ejbca-ra-iak'
115     #raRvExternalSecret:
116     client: {}
117       # iak: mypassword
118       # rv: unused
119     ra: {}
120       # iak: mypassword
121       # rv: unused
122
123 secrets:
124   - uid: keystore-password
125     name: '{{ include "common.release" . }}-keystore-password'
126     type: password
127     externalSecret: '{{ tpl (default "" .Values.credentials.tls.keystorePasswordExternalSecret) . }}'
128     password: '{{ .Values.credentials.tls.keystorePassword }}'
129     passwordPolicy: required
130   - uid: truststore-password
131     name: '{{ include "common.release" . }}-truststore-password'
132     type: password
133     externalSecret: '{{ tpl (default "" .Values.credentials.tls.truststorePasswordExternalSecret) . }}'
134     password: '{{ .Values.credentials.tls.truststorePassword }}'
135     passwordPolicy: required
136   # Below values are relevant only if global addTestingComponents flag is enabled
137   - uid: ejbca-server-client-iak
138     type: password
139     externalSecret: '{{ tpl (default "" .Values.credentials.cmp.clientIakExternalSecret) . }}'
140     password: '{{ .Values.credentials.cmp.client.iak }}'
141   - uid: cmp-config-client-rv
142     type: password
143     externalSecret: '{{ tpl (default "" .Values.credentials.cmp.clientRvExternalSecret) . }}'
144     password: '{{ .Values.credentials.cmp.client.rv }}'
145   - uid: ejbca-server-ra-iak
146     type: password
147     externalSecret: '{{ tpl (default "" .Values.credentials.cmp.raIakExternalSecret) . }}'
148     password: '{{ .Values.credentials.cmp.ra.iak }}'
149   - uid: cmp-config-ra-rv
150     type: password
151     externalSecret: '{{ tpl (default "" .Values.credentials.cmp.raRvExternalSecret) . }}'
152     password: '{{ .Values.credentials.cmp.ra.rv }}'