Merge "[UUI] Fix for MSB registration entries"
[oom.git] / kubernetes / uui / values.yaml
1 # Copyright © 2017 Amdocs, Bell Canada
2 # Copyright (c) 2022 Nordix Foundation.
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 # Default values for uui.
17 # This is a YAML-formatted file.
18 # Declare variables to be passed into your templates.
19 global:
20   uuiPortPrefix: 303
21
22 subChartsOnly:
23   enabled: true
24
25 flavor: small
26
27 # application image
28 image: onap/usecase-ui:5.1.2
29 pullPolicy: Always
30
31 # application configuration
32
33 msbaddr: msb-iag.{{include "common.namespace" .}}:80
34 mraddr: message-router.{{include "common.namespace" .}}:3904
35
36 # flag to enable debugging - application support required
37 debugEnabled: false
38
39 # default number of instances
40 replicaCount: 1
41
42 nodeSelector: {}
43
44 affinity: {}
45
46 # probe configuration parameters
47 liveness:
48   initialDelaySeconds: 10
49   periodSeconds: 10
50   # necessary to disable liveness probe when setting breakpoints
51   # in debugger so K8s doesn't restart unresponsive container
52   enabled: true
53
54 readiness:
55   initialDelaySeconds: 10
56   periodSeconds: 10
57
58 service:
59   type: NodePort
60   name: uui
61   internalPort: 8080
62   ports:
63     - name: http
64       port: 8080
65       nodePort: '98'
66   annotations:
67     msb.onap.org/service-info: |
68       {{ if .Values.global.msbEnabled -}}[
69         {
70           "serviceName": "usecaseui-ui",
71           "version": "v1",
72           "url": "/usecase-ui",
73           "path":"/iui/usecaseui",
74           "protocol": "UI",
75           "visualRange":"1",
76           "port": "{{ include "common.getPort" (dict "global" . "name" "http" "getPlain" true) }}",
77           "enable_ssl": false
78         }
79       ]{{ end }}
80
81 ingress:
82   enabled: false
83   service:
84     - baseaddr: "uui-ui"
85       name: "uui"
86       port: 8080
87   config:
88     ssl: "redirect"
89
90   # We usually recommend not to specify default resources and to leave this as a conscious
91   # choice for the user. This also increases chances charts run on environments with little
92   # resources, such as Minikube. If you do want to specify resources, uncomment the following
93   # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
94   #
95   # Example:
96   # Configure resource requests and limits
97   # ref: http://kubernetes.io/docs/user-guide/compute-resources/
98   # Minimum memory for development is 2 CPU cores and 4GB memory
99   # Minimum memory for production is 4 CPU cores and 8GB memory
100 resources:
101   small:
102     limits:
103       cpu: 250m
104       memory: 1Gi
105     requests:
106       cpu: 250m
107       memory: 1Gi
108   large:
109     limits:
110       cpu: 500m
111       memory: 1Gi
112     requests:
113       cpu: 500m
114       memory: 1Gi
115   unlimited: {}