Merge "[COMMON] Add custom certs into AAF truststore"
[oom.git] / kubernetes / sdc / components / sdc-onboarding-be / values.yaml
1 # Copyright © 2017 Amdocs, Bell Canada
2 # Modifications Copyright © 2018 AT&T, ZTE
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:
20   nodePortPrefix: 302
21   aafEnabled: true
22   persistence: {}
23   cassandra:
24     #This flag allows SDC to instantiate its own cluster, serviceName
25     #should be sdc-cs if this flag is enabled
26     localCluster: false
27     #The cassandra service name to connect to (default: shared cassandra service)
28     serviceName: cassandra
29     #Shared cassandra cluster replicaCount, should be changed if localCluster is enabled
30     #to match with its own cluster replica
31     replicaCount: 3
32     clusterName: cassandra
33     dataCenter: Pod
34
35 #################################################################
36 # AAF Part
37 #################################################################
38 certInitializer:
39   nameOverride: sdc-onboarding-be-cert-init
40   aafDeployFqi: deployer@people.osaaf.org
41   aafDeployPass: demo123456!
42   fqdn: sdc
43   fqi: sdc@sdc.onap.org
44   public_fqdn: sdc.onap.org
45   cadi_longitude: "0.0"
46   cadi_latitude: "0.0"
47   app_ns: org.osaaf.aaf
48   credsPath: /opt/app/osaaf/local
49   addconfig: true
50   keystoreFile: "org.onap.sdc.p12"
51   truststoreFile: "org.onap.sdc.trust.jks"
52   permission_user: 352070
53   permission_group: 35953
54   aaf_add_config: |
55     echo "cadi_keystore_password_p12=$cadi_keystore_password_p12" > {{ .Values.credsPath }}/mycreds.prop
56     echo "cadi_truststore_password=$cadi_truststore_password" >> {{ .Values.credsPath }}/mycreds.prop
57
58 #################################################################
59 # Application configuration defaults.
60 #################################################################
61 # application image
62 image: onap/sdc-onboard-backend:1.8.5
63 onboardingInitImage: onap/sdc-onboard-cassandra-init:1.8.5
64 pullPolicy: Always
65
66 # flag to enable debugging - application support required
67 debugEnabled: false
68
69 config:
70   javaOptions: "-Xmx1g -Xms1g"
71   cassandraSslEnabled: "false"
72
73 #environment file
74 env:
75   name: AUTO
76
77 # default number of instances
78 replicaCount: 1
79
80 nodeSelector: {}
81
82 affinity: {}
83
84 # probe configuration parameters
85 liveness:
86   initialDelaySeconds: 120
87   periodSeconds: 60
88   timeoutSeconds: 15
89   # necessary to disable liveness probe when setting breakpoints
90   # in debugger so K8s doesn't restart unresponsive container
91   enabled: true
92
93 readiness:
94   initialDelaySeconds: 120
95   periodSeconds: 60
96   timeoutSeconds: 15
97
98 service:
99   type: ClusterIP
100   name: sdc-onboarding-be
101   portName: sdc-onboarding-be
102   internalPort: 8445
103   externalPort: 8445
104   internalPort2: 8081
105   externalPort2: 8081
106
107 ## Persist data to a persitent volume
108 persistence:
109   enabled: true
110
111   ## A manually managed Persistent Volume and Claim
112   ## Requires persistence.enabled: true
113   ## If defined, PVC must be created manually before volume will be bound
114   # existingClaim:
115   volumeReclaimPolicy: Retain
116
117   ## database data Persistent Volume Storage Class
118   ## If defined, storageClassName: <storageClass>
119   ## If set to "-", storageClassName: "", which disables dynamic provisioning
120   ## If undefined (the default) or set to null, no storageClassName spec is
121   ##   set, choosing the default provisioner.  (gp2 on AWS, standard on
122   ##   GKE, AWS & OpenStack)
123   ##
124   # storageClass: "-"
125   accessMode: ReadWriteOnce
126   size: 2Gi
127   mountPath: /dockerdata-nfs
128   mountSubPath: /sdc/sdc-cs/CS
129
130 ##Certificate storage persistence
131 ##This is temporary solution for SDC-1980
132 cert:
133   certDir: /var/lib/jetty/cert
134   persistence:
135     enabled: true
136     size: 10Mi
137     accessMode: ReadWriteOnce
138     volumeReclaimPolicy: Retain
139     mountSubPath: /sdc/onbaording/cert
140
141 securityContext:
142   fsGroup: 35953
143   runAsUser: 352070
144
145 ingress:
146   enabled: false
147
148 # Resource Limit flavor -By Default using small
149 flavor: small
150 # Segregation for Different environment (Small and Large)
151 resources:
152   small:
153     limits:
154       cpu: 500m
155       memory: 2Gi
156     requests:
157       cpu: 40m
158       memory: 1Gi
159   large:
160     limits:
161       cpu: 1
162       memory: 4Gi
163     requests:
164       cpu: 80m
165       memory: 2Gi
166   unlimited: {}