fc93a6ea328ba628d32b7fea952d43bcd6d10e0c
[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   readinessRepository: oomk8s
21   readinessImage: readiness-check:2.0.2
22   loggingRepository: docker.elastic.co
23   loggingImage: beats/filebeat:5.5.0
24   # 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 #################################################################
37 secrets:
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
49     externalSecret: '{{ tpl (default "" .Values.config.restCredsExternalSecret) . }}'
50     login: '{{ .Values.config.restUser }}'
51     password: '{{ .Values.config.restPassword }}'
52     passwordPolicy: required
53
54 #################################################################
55 # Application configuration defaults.
56 #################################################################
57 # application image
58 repository: nexus3.onap.org:10001
59 image: onap/sdnc-ansible-server-image:1.8.4
60 pullPolicy: Always
61
62 # flag to enable debugging - application support required
63 debugEnabled: false
64
65 # application configuration
66 config:
67   sdncChartName: sdnc
68   configDir: /opt/onap/sdnc
69   restUser: sdnc
70   restPassword: sdnc
71   # restCredsExternalSecret: some secret
72
73 mariadb-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
88
89 # default number of instances
90 replicaCount: 1
91
92 nodeSelector: {}
93
94 affinity: {}
95
96 # probe configuration parameters
97 liveness:
98   initialDelaySeconds: 180
99   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
104 readiness:
105   initialDelaySeconds: 60
106   periodSeconds: 10
107
108 service:
109   type: ClusterIP
110   name: sdnc-ansible-server
111   portName: sdnc-ansible-server
112   internalPort: 8000
113   externalPort: 8000
114
115 ingress:
116   enabled: false
117
118 #Resource Limit flavor -By default using small
119 flavor: small
120
121 #Segregation for Different environment (Small and Large)
122
123 resources:
124   small:
125     limits:
126       cpu: 1
127       memory: 1Gi
128     requests:
129       cpu: 0.5
130       memory: 500Mi
131   large:
132     limits:
133       cpu: 2
134       memory: 2Gi
135     requests:
136       cpu: 1
137       memory: 1Gi
138   unlimited: {}