ebeb9ffd563758d820f137925ae7dfbe947caa23
[oom.git] / kubernetes / sdnc / components / sdnc-web / values.yaml
1 # Copyright © 2020 highstreet technologies GmbH
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #       http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 #################################################################
16 # Global configuration defaults.
17 #################################################################
18 global:
19   aafEnabled: true
20   nodePortPrefix: 322
21   readinessRepository: oomk8s
22   readinessImage: readiness-check:2.0.2
23   loggingRepository: docker.elastic.co
24   loggingImage: beats/filebeat:5.5.0
25   k8scluster: svc.cluster.local
26 #################################################################
27 # Application configuration defaults.
28 #################################################################
29 # application image
30 repository: nexus3.onap.org:10001
31 image: "onap/sdnc-web-image:1.8.3"
32 pullPolicy: Always
33
34 config:
35   sdncChartName: sdnc
36   webProtocol: HTTPS
37   webPort: 8443
38   #sdnrProtocol: HTTPS
39   sdnrProtocol: HTTPS
40   #sdnrHost: "sdnc.onap"
41   sdnrHost: "sdnc"
42   sdnrPort: "8443"
43   sslCertDir: "/opt/app/osaaf/local/certs"
44   sslCertiticate: "cert.pem"
45   sslCertKey: "key.pem"
46
47
48 #################################################################
49 # aaf configuration defaults.
50 #################################################################
51 certInitializer:
52   nameOverride: sdnc-web-cert-initializer
53   fqdn: "sdnc"
54   app_ns: "org.osaaf.aaf"
55   fqi: "sdnc@sdnc.onap.org"
56   fqi_namespace: "org.onap.sdnc"
57   public_fqdn: "sdnc.onap.org"
58   aafDeployFqi: "deployer@people.osaaf.org"
59   aafDeployPass: demo123456!
60   cadi_latitude: "38.0"
61   cadi_longitude: "-72.0"
62   credsPath: /opt/app/osaaf/local
63   aaf_add_config: >
64     cd /opt/app/osaaf/local;
65     mkdir -p certs;
66     export $(/opt/app/aaf_config/bin/agent.sh local showpass | grep '^c' | xargs -0);
67     keytool -exportcert -rfc -file certs/cacert.pem -keystore {{ .Values.fqi_namespace }}.trust.jks -alias ca_local_0 -storepass $cadi_truststore_password;
68     openssl pkcs12 -in {{ .Values.fqi_namespace }}.p12 -out certs/cert.pem -passin pass:$cadi_keystore_password_p12 -passout pass:$cadi_keystore_password_p12;
69     cp {{ .Values.fqi_namespace }}.key certs/key.pem;
70     chmod -R 755 certs;
71
72 # default number of instances
73 replicaCount: 1
74
75 nodeSelector: {}
76
77 affinity: {}
78
79 # probe configuration parameters
80 liveness:
81   initialDelaySeconds: 180
82   periodSeconds: 10
83   # necessary to disable liveness probe when setting breakpoints
84   # in debugger so K8s doesn't restart unresponsive container
85   enabled: true
86
87 readiness:
88   initialDelaySeconds: 60
89   periodSeconds: 10
90
91 service:
92   name: sdnc-web
93   suffix: service
94   type: NodePort
95   sessionAffinity: ClientIP
96   # for liveness and readiness probe only
97   # internalPort:
98   internalPort: 8443
99   ports:
100   - name: "sdnc-web"
101     port: "8443"
102     nodePort: "05"
103
104 #ingress:
105 #  enabled: false
106
107 #Resource limit flavor -By default using small
108 flavor: small
109 #segregation for different environment (small and large)
110 resources:
111   small:
112     limits:
113       cpu: 1
114       memory: 1Gi
115     requests:
116       cpu: 0.5
117       memory: 500Mi
118   large:
119     limits:
120       cpu: 2
121       memory: 2Gi
122     requests:
123       cpu: 1
124       memory: 1Gi
125   unlimited: {}