[acumos-adapter] Add ingress path in deployment
[dcaegen2/platform.git] / adapter / acumos-deployment / values.yaml
1 #============LICENSE_START========================================================
2 #=================================================================================
3 # Copyright (c) 2020 AT&T Intellectual Property. All rights reserved.
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 # ============LICENSE_END=========================================================
17
18 #################################################################
19 # Global configuration defaults.
20 #################################################################
21 global:
22   persistence: {}
23   nodePortPrefix: 302
24   nodePortPrefixExt: 304
25   readinessRepository: oomk8s
26   readinessImage: readiness-check:2.0.0
27
28   ingress:
29     enabled: true
30     virtualhost:
31         enabled: true
32         baseurl: "simpledemo.onap.org"
33
34 config:
35   distributorAPIURL: /distributor
36
37
38 # application image
39 repository: nexus3.onap.org:10001
40 image: onap/org.onap.dcaegen2.platform.adapter.acumos:1.0.2
41 dindRepository: docker.io
42 dindImage: docker:dind
43
44 service:
45   type: ClusterIP
46   name: dcae-acumos-adapter
47   ports:
48     - name: http
49       port: 9000
50
51 ingress:
52   enabled: true
53   service:
54     - baseaddr: "dcaemod"
55       name: "dcae-acumos-adapter"
56       port: 9000
57       path: "/acumos-adapter"
58   annotations:
59     nginx.ingress.kubernetes.io/ssl-redirect: "false"
60   # Adapter can take a long time to respond, since
61   # it's building and pushing a Docker image
62   # Override default ingress controller timeouts
63     nginx.ingress.kubernetes.io/proxy-connect-timeout: "60"
64     nginx.ingress.kubernetes.io/proxy-send-timeout: "900"
65     nginx.ingress.kubernetes.io/proxy-read-timeout: "900"
66   # Want to set ssl-redirect to false with the values below,
67   # but template doesn't expand properly
68   #config:
69   #  ssl: "none"
70
71 liveness:
72   initialDelaySeconds: 90
73   periodSeconds: 30
74   # necessary to disable liveness probe when setting breakpoints
75   # in debugger so K8s doesn't restart unresponsive container
76   enabled: false
77   port: http
78
79 readiness:
80   initialDelaySeconds: 60
81   periodSeconds: 20
82   port: http
83
84 secrets:
85   - uid: "certs"
86     type: genericKV
87     envs:
88     - name: cert.pem
89       value: '{{ tpl .Values.acumosCert . }}'
90   - uid: "docker"
91     type: genericKV
92     envs:
93     - name: dpass
94       value: '{{ tpl .Values.dockerPass . }}'
95
96 # Resource Limit flavor -By Default using small
97 flavor: small
98 # Segregation for Different environment (Small and Large)
99 resources:
100   small:
101     limits:
102       cpu: 2
103       memory: 2Gi
104     requests:
105       cpu: 1
106       memory: 1Gi
107   large:
108     limits:
109       cpu: 4
110       memory: 4Gi
111     requests:
112       cpu: 2
113       memory: 2Gi
114   unlimited: {}