Merge "[AAI] Add model-loader tracing config"
[oom.git] / kubernetes / sdnc / components / sdnc-ansible-server / values.yaml
1 # Copyright © 2017 Amdocs, Bell Canada
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   nodePortPrefix: 302
20   mariadbGalera:
21     # flag to enable the DB creation via mariadb-operator
22     useOperator: true
23     #This flag allows SO to instantiate its own mariadb-galera cluster
24     #If shared instance is used, this chart assumes that DB already exists
25     localCluster: false
26     service: mariadb-galera
27     internalPort: 3306
28     nameOverride: mariadb-galera
29
30 #################################################################
31 # Secrets metaconfig
32 #################################################################
33 secrets:
34   - uid: db-secret
35     name: &dbSecretName '{{ include "common.release" . }}-sdnc-ansible-server-db-secret'
36     type: basicAuth
37     # This is a nasty trick that allows you override this secret using external one
38     # with the same field that is used to pass this to subchart
39     externalSecret: '{{ ternary "" (tpl (default "" (index .Values "mariadb-galera" "config" "userCredentialsExternalSecret")) .) (hasSuffix "sdnc-ansible-server-db-secret" (index .Values "mariadb-galera" "config" "userCredentialsExternalSecret"))}}'
40     login: '{{ index .Values "mariadb-galera" "config" "userName" }}'
41     password: '{{ index .Values "mariadb-galera" "config" "userPassword" }}'
42     passwordPolicy: required
43   - uid: rest-creds
44     type: basicAuth
45     externalSecret: '{{ tpl (default "" .Values.config.restCredsExternalSecret) . }}'
46     login: '{{ .Values.config.restUser }}'
47     password: '{{ .Values.config.restPassword }}'
48     passwordPolicy: required
49
50 #################################################################
51 # Application configuration defaults.
52 #################################################################
53 # application image
54 image: onap/sdnc-ansible-server-image:2.5.5
55 pullPolicy: Always
56
57 # flag to enable debugging - application support required
58 debugEnabled: false
59
60 # application configuration
61 config:
62   sdncChartName: sdnc
63   configDir: /opt/onap/sdnc
64   restUser: sdnc
65   restPassword: sdnc
66   # restCredsExternalSecret: some secret
67
68 mariadb-galera:
69   config:
70     userCredentialsExternalSecret: *dbSecretName
71     userName: sdnc
72     userPassword: sdnc
73     mysqlDatabase: ansible
74   nameOverride: ansible-server-galera
75   service:
76     name: ansible-server-galera
77     portName: ansible-server-galera
78     internalPort: 3306
79   replicaCount: 1
80   persistence:
81     enabled: true
82     mountSubPath: ansible-server/maria/data
83   mariadbOperator:
84     galera:
85       enabled: false
86
87 # default number of instances
88 replicaCount: 1
89
90 nodeSelector: {}
91
92 affinity: {}
93
94 # probe configuration parameters
95 liveness:
96   initialDelaySeconds: 180
97   periodSeconds: 10
98   # necessary to disable liveness probe when setting breakpoints
99   # in debugger so K8s doesn't restart unresponsive container
100   enabled: true
101
102 readiness:
103   initialDelaySeconds: 60
104   periodSeconds: 10
105
106 service:
107   type: ClusterIP
108   name: sdnc-ansible-server
109   internalPort: 8000
110   ports:
111     - name: http
112       port: 8000
113
114 ingress:
115   enabled: false
116
117 serviceMesh:
118   authorizationPolicy:
119     authorizedPrincipals: []
120
121 #Resource Limit flavor -By default using small
122 flavor: small
123
124 #Segregation for Different environment (Small and Large)
125
126 resources:
127   small:
128     limits:
129       cpu: "1"
130       memory: "500Mi"
131     requests:
132       cpu: "0.5"
133       memory: "500Mi"
134   large:
135     limits:
136       cpu: "2"
137       memory: "1Gi"
138     requests:
139       cpu: "1"
140       memory: "1Gi"
141   unlimited: {}
142
143 #Pods Service Account
144 serviceAccount:
145   nameOverride: sdnc-ansible-server
146   roles:
147     - read