blob: 621048a9d7d6f507f48e6a637182429ce27e1bab [file] [log] [blame]
jmac7c434672018-05-11 20:14:17 +00001# 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#################################################################
18global:
19 nodePortPrefix: 302
20 readinessRepository: oomk8s
Mahendra Raghuwanshib76cb282019-04-09 10:13:07 +000021 readinessImage: readiness-check:2.0.2
jmac7c434672018-05-11 20:14:17 +000022 loggingRepository: docker.elastic.co
23 loggingImage: beats/filebeat:5.5.0
Krzysztof Opasiakb9d50c92020-02-20 21:29:45 +010024 # envsusbt
25 envsubstImage: dibi/envsubst
26 mariadbGalera:
27 #This flag allows SO to instantiate its own mariadb-galera cluster
28 #If shared instance is used, this chart assumes that DB already exists
29 localCluster: false
30 service: mariadb-galera
31 internalPort: 3306
32 nameOverride: mariadb-galera
33
34#################################################################
35# Secrets metaconfig
36#################################################################
37secrets:
38 - uid: db-secret
39 name: &dbSecretName '{{ include "common.release" . }}-sdnc-ansible-server-db-secret'
40 type: basicAuth
41 # This is a nasty trick that allows you override this secret using external one
42 # with the same field that is used to pass this to subchart
43 externalSecret: '{{ ternary "" (tpl (default "" (index .Values "mariadb-galera" "config" "userCredentialsExternalSecret")) .) (hasSuffix "sdnc-ansible-server-db-secret" (index .Values "mariadb-galera" "config" "userCredentialsExternalSecret"))}}'
44 login: '{{ index .Values "mariadb-galera" "config" "userName" }}'
45 password: '{{ index .Values "mariadb-galera" "config" "userPassword" }}'
46 passwordPolicy: required
47 - uid: rest-creds
48 type: basicAuth
Krzysztof Opasiak88e44bf2020-02-26 02:23:23 +010049 externalSecret: '{{ tpl (default "" .Values.config.restCredsExternalSecret) . }}'
Krzysztof Opasiakb9d50c92020-02-20 21:29:45 +010050 login: '{{ .Values.config.restUser }}'
51 password: '{{ .Values.config.restPassword }}'
52 passwordPolicy: required
jmac7c434672018-05-11 20:14:17 +000053
54#################################################################
55# Application configuration defaults.
56#################################################################
57# application image
58repository: nexus3.onap.org:10001
Dan Timoneyd0f6ad72020-03-06 11:58:23 -050059image: onap/sdnc-ansible-server-image:1.8.0
jmac7c434672018-05-11 20:14:17 +000060pullPolicy: Always
61
62# flag to enable debugging - application support required
63debugEnabled: false
64
65# application configuration
66config:
67 sdncChartName: sdnc
68 configDir: /opt/onap/sdnc
Krzysztof Opasiakb9d50c92020-02-20 21:29:45 +010069 restUser: sdnc
70 restPassword: sdnc
71 # restCredsExternalSecret: some secret
jmac7c434672018-05-11 20:14:17 +000072
Krzysztof Opasiakb9d50c92020-02-20 21:29:45 +010073mariadb-galera:
74 config:
75 userCredentialsExternalSecret: *dbSecretName
76 userName: sdnc
77 userPassword: sdnc
78 mysqlDatabase: ansible
79 nameOverride: ansible-server-galera
80 service:
81 name: ansible-server-galera
82 portName: ansible-server-galera
83 internalPort: 3306
84 replicaCount: 1
85 persistence:
86 enabled: true
87 mountSubPath: ansible-server/maria/data
jmac7c434672018-05-11 20:14:17 +000088
89# default number of instances
90replicaCount: 1
91
92nodeSelector: {}
93
94affinity: {}
95
96# probe configuration parameters
97liveness:
BorislavG8d9337a2018-06-13 14:56:54 +000098 initialDelaySeconds: 180
jmac7c434672018-05-11 20:14:17 +000099 periodSeconds: 10
100 # necessary to disable liveness probe when setting breakpoints
101 # in debugger so K8s doesn't restart unresponsive container
102 enabled: true
103
104readiness:
105 initialDelaySeconds: 60
106 periodSeconds: 10
107
108service:
109 type: ClusterIP
110 name: sdnc-ansible-server
111 portName: sdnc-ansible-server
112 internalPort: 8000
113 externalPort: 8000
114
115ingress:
116 enabled: false
117
toshrajbhardwaj72b5f0f2018-09-13 02:45:22 +0000118#Resource Limit flavor -By default using small
119flavor: small
120
121#Segregation for Different environment (Small and Large)
122
123resources:
Mandeep Khindade045712018-09-19 18:11:57 +0000124 small:
125 limits:
126 cpu: 1
127 memory: 1Gi
128 requests:
Mandeep Khinda3c134252018-09-19 23:56:37 +0000129 cpu: 0.5
130 memory: 500Mi
Mandeep Khindade045712018-09-19 18:11:57 +0000131 large:
132 limits:
133 cpu: 2
134 memory: 2Gi
135 requests:
Mandeep Khinda3c134252018-09-19 23:56:37 +0000136 cpu: 1
137 memory: 1Gi
Mandeep Khinda60d36d42018-09-24 15:15:48 +0000138 unlimited: {}