Merge "[SDC] Simplify cert retrieval script"
[oom.git] / kubernetes / sdc / components / sdc-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   cassandra:
23     #This flag allows SDC to instantiate its own cluster, serviceName
24     #should be sdc-cs if this flag is enabled
25     localCluster: false
26     #The cassandra service name to connect to (default: shared cassandra service)
27     serviceName: cassandra
28     #Shared cassandra cluster replicaCount, should be changed if localCluster is enabled
29     #to match with its own cluster replica
30     replicaCount: 3
31     clusterName: cassandra
32     dataCenter: Pod
33
34 #################################################################
35 # Application configuration defaults.
36 #################################################################
37 # application image
38 image: onap/sdc-backend-all-plugins:1.8.5
39 backendInitImage: onap/sdc-backend-init:1.8.5
40
41 pullPolicy: Always
42
43 # flag to enable debugging - application support required
44 debugEnabled: false
45
46 #environment file
47 env:
48   name: AUTO
49
50 certInitializer:
51   nameOverride: sdc-be-cert-init
52   aafDeployFqi: deployer@people.osaaf.org
53   aafDeployPass: demo123456!
54   fqdn: sdc
55   fqi: sdc@sdc.onap.org
56   public_fqdn: sdc.onap.org
57   cadi_longitude: "0.0"
58   cadi_latitude: "0.0"
59   app_ns: org.osaaf.aaf
60   credsPath: /opt/app/osaaf/local
61   addconfig: true
62   keystoreFile: "org.onap.sdc.p12"
63   truststoreFile: "org.onap.sdc.trust.jks"
64   permission_user: 352070
65   permission_group: 35953
66   aaf_add_config: |
67     echo "cadi_keystore_password_p12=$cadi_keystore_password_p12" > {{ .Values.credsPath }}/mycreds.prop
68     echo "cadi_truststore_password=$cadi_truststore_password" >> {{ .Values.credsPath }}/mycreds.prop
69
70 #################################################################
71 # SDC Config part
72 #################################################################
73 config:
74   javaOptions: "-Xmx1536m -Xms1536m"
75   cassandraSslEnabled: "false"
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: 10
88   timeoutSeconds: 5
89   # necessary to disable liveness probe when setting breakpoints
90   # in debugger so K8s doesn't restart unresponsive container
91   port: api
92   enabled: true
93
94 readiness:
95   initialDelaySeconds: 60
96   periodSeconds: 10
97   timeoutSeconds: 5
98
99 service:
100   type: NodePort
101   name: sdc-be
102   both_tls_and_plain: true
103   msb:
104     - port: 8443
105       url: "/sdc/v1"
106       version: "v1"
107       protocol: "REST"
108       visualRange: "1"
109       serviceName: sdc
110       enable_ssl: true
111     - port: 8080
112       url: "/sdc/v1"
113       version: "v1"
114       protocol: "REST"
115       visualRange: "1"
116       serviceName: sdc-deprecated
117   ports:
118     - name: api
119       port: 8443
120       plain_port: 8080
121       port_protocol: http
122       nodePort: '04'
123
124 ingress:
125   enabled: false
126   service:
127     - baseaddr: "sdc.api.be"
128       name: "sdc-be"
129       port: 8443
130   config:
131     ssl: "redirect"
132
133
134 # Resource Limit flavor -By Default using small
135 flavor: small
136 # Segregation for Different environment (Small and Large)
137 resources:
138   small:
139     limits:
140       cpu: 1
141       memory: 2Gi
142     requests:
143       cpu: 100m
144       memory: 1Gi
145   large:
146     limits:
147       cpu: 2
148       memory: 4Gi
149     requests:
150       cpu: 200m
151       memory: 2Gi
152   unlimited: {}