Merge "[AAI] Add model-loader tracing config"
[oom.git] / kubernetes / oof / components / oof-has / components / oof-has-api / values.yaml
1 # Copyright © 2017 Amdocs, AT&T, Bell Canada, VMware
2 # Copyright (C) 2020 Wipro Limited.
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 global: # global defaults
17   nodePortPrefix: 302
18   image:
19     optf_has: onap/optf-has:2.3.1
20
21 #################################################################
22 # secrets metaconfig
23 #################################################################
24 secrets:
25   - uid: oof-has-etcd-secret
26     name: &user-creds '{{ include "common.release" . }}-oof-has-etcd-secret'
27     type: basicAuth
28     externalSecret: '{{ tpl (default "" .Values.config.etcd.userCredentialsExternalSecret) . }}'
29     login: '{{ .Values.config.etcd.appUser }}'
30     password: '{{ .Values.config.etcd.appPassword }}'
31     passwordPolicy: required
32
33 config:
34   etcd:
35     appUser: user
36     appPassword: pass
37
38 service:
39   type: NodePort
40   name: oof-has-api
41   internalPort: 8091
42   ports:
43     - name: http
44       port: 8091
45       nodePort: '75'
46
47 #backend container info
48 uwsgi:
49   internalPort: 8080
50 replicaCount: 1
51 nodeSelector: {}
52 affinity: {}
53 # Resource Limit flavor -By Default using small
54 flavor: small
55 # Segregation for Different environment (Small and Large)
56 resources:
57   small:
58     limits:
59       cpu: "1"
60       memory: "1Gi"
61     requests:
62       cpu: "0.5"
63       memory: "1Gi"
64   large:
65     limits:
66       cpu: "2"
67       memory: "2Gi"
68     requests:
69       cpu: "1"
70       memory: "2Gi"
71   unlimited: {}
72 # probe configuration parameters
73 liveness:
74   initialDelaySeconds: 10
75   periodSeconds: 10
76   # necessary to disable liveness probe when setting breakpoints
77   # in debugger so K8s doesn't restart unresponsive container
78   enabled: true
79 readiness:
80   initialDelaySeconds: 10
81   periodSeconds: 10
82
83 ingress:
84   enabled: false
85   service:
86     - baseaddr: "oof-has-api"
87       name: "oof-has-api"
88       port: 8091
89   config:
90     ssl: "redirect"
91
92 readinessCheck:
93   wait_for:
94     apps:
95       - oof-has-controller
96
97 #Pods Service Account
98 serviceAccount:
99   nameOverride: oof-has-api
100   roles:
101     - read