jmac | 7c43467 | 2018-05-11 20:14:17 +0000 | [diff] [blame] | 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 |
Sylvain Desbureaux | 1694e1d | 2020-08-21 09:58:25 +0200 | [diff] [blame] | 20 | readinessImage: onap/oom/readiness:3.0.1 |
jmac | 7c43467 | 2018-05-11 20:14:17 +0000 | [diff] [blame] | 21 | loggingRepository: docker.elastic.co |
| 22 | loggingImage: beats/filebeat:5.5.0 |
Krzysztof Opasiak | b9d50c9 | 2020-02-20 21:29:45 +0100 | [diff] [blame] | 23 | # envsusbt |
| 24 | envsubstImage: dibi/envsubst |
| 25 | mariadbGalera: |
| 26 | #This flag allows SO to instantiate its own mariadb-galera cluster |
| 27 | #If shared instance is used, this chart assumes that DB already exists |
| 28 | localCluster: false |
| 29 | service: mariadb-galera |
| 30 | internalPort: 3306 |
| 31 | nameOverride: mariadb-galera |
| 32 | |
| 33 | ################################################################# |
| 34 | # Secrets metaconfig |
| 35 | ################################################################# |
| 36 | secrets: |
| 37 | - uid: db-secret |
| 38 | name: &dbSecretName '{{ include "common.release" . }}-sdnc-ansible-server-db-secret' |
| 39 | type: basicAuth |
| 40 | # This is a nasty trick that allows you override this secret using external one |
| 41 | # with the same field that is used to pass this to subchart |
| 42 | externalSecret: '{{ ternary "" (tpl (default "" (index .Values "mariadb-galera" "config" "userCredentialsExternalSecret")) .) (hasSuffix "sdnc-ansible-server-db-secret" (index .Values "mariadb-galera" "config" "userCredentialsExternalSecret"))}}' |
| 43 | login: '{{ index .Values "mariadb-galera" "config" "userName" }}' |
| 44 | password: '{{ index .Values "mariadb-galera" "config" "userPassword" }}' |
| 45 | passwordPolicy: required |
| 46 | - uid: rest-creds |
| 47 | type: basicAuth |
Krzysztof Opasiak | 88e44bf | 2020-02-26 02:23:23 +0100 | [diff] [blame] | 48 | externalSecret: '{{ tpl (default "" .Values.config.restCredsExternalSecret) . }}' |
Krzysztof Opasiak | b9d50c9 | 2020-02-20 21:29:45 +0100 | [diff] [blame] | 49 | login: '{{ .Values.config.restUser }}' |
| 50 | password: '{{ .Values.config.restPassword }}' |
| 51 | passwordPolicy: required |
jmac | 7c43467 | 2018-05-11 20:14:17 +0000 | [diff] [blame] | 52 | |
| 53 | ################################################################# |
| 54 | # Application configuration defaults. |
| 55 | ################################################################# |
| 56 | # application image |
| 57 | repository: nexus3.onap.org:10001 |
Dan Timoney | dfe1ee0 | 2020-07-07 09:26:39 -0400 | [diff] [blame] | 58 | image: onap/sdnc-ansible-server-image:1.8.4 |
jmac | 7c43467 | 2018-05-11 20:14:17 +0000 | [diff] [blame] | 59 | pullPolicy: Always |
| 60 | |
| 61 | # flag to enable debugging - application support required |
| 62 | debugEnabled: false |
| 63 | |
| 64 | # application configuration |
| 65 | config: |
| 66 | sdncChartName: sdnc |
| 67 | configDir: /opt/onap/sdnc |
Krzysztof Opasiak | b9d50c9 | 2020-02-20 21:29:45 +0100 | [diff] [blame] | 68 | restUser: sdnc |
| 69 | restPassword: sdnc |
| 70 | # restCredsExternalSecret: some secret |
jmac | 7c43467 | 2018-05-11 20:14:17 +0000 | [diff] [blame] | 71 | |
Krzysztof Opasiak | b9d50c9 | 2020-02-20 21:29:45 +0100 | [diff] [blame] | 72 | mariadb-galera: |
| 73 | config: |
| 74 | userCredentialsExternalSecret: *dbSecretName |
| 75 | userName: sdnc |
| 76 | userPassword: sdnc |
| 77 | mysqlDatabase: ansible |
| 78 | nameOverride: ansible-server-galera |
| 79 | service: |
| 80 | name: ansible-server-galera |
| 81 | portName: ansible-server-galera |
| 82 | internalPort: 3306 |
| 83 | replicaCount: 1 |
| 84 | persistence: |
| 85 | enabled: true |
| 86 | mountSubPath: ansible-server/maria/data |
jmac | 7c43467 | 2018-05-11 20:14:17 +0000 | [diff] [blame] | 87 | |
| 88 | # default number of instances |
| 89 | replicaCount: 1 |
| 90 | |
| 91 | nodeSelector: {} |
| 92 | |
| 93 | affinity: {} |
| 94 | |
| 95 | # probe configuration parameters |
| 96 | liveness: |
BorislavG | 8d9337a | 2018-06-13 14:56:54 +0000 | [diff] [blame] | 97 | initialDelaySeconds: 180 |
jmac | 7c43467 | 2018-05-11 20:14:17 +0000 | [diff] [blame] | 98 | periodSeconds: 10 |
| 99 | # necessary to disable liveness probe when setting breakpoints |
| 100 | # in debugger so K8s doesn't restart unresponsive container |
| 101 | enabled: true |
| 102 | |
| 103 | readiness: |
| 104 | initialDelaySeconds: 60 |
| 105 | periodSeconds: 10 |
| 106 | |
| 107 | service: |
| 108 | type: ClusterIP |
| 109 | name: sdnc-ansible-server |
| 110 | portName: sdnc-ansible-server |
| 111 | internalPort: 8000 |
| 112 | externalPort: 8000 |
| 113 | |
| 114 | ingress: |
| 115 | enabled: false |
| 116 | |
toshrajbhardwaj | 72b5f0f | 2018-09-13 02:45:22 +0000 | [diff] [blame] | 117 | #Resource Limit flavor -By default using small |
| 118 | flavor: small |
| 119 | |
| 120 | #Segregation for Different environment (Small and Large) |
| 121 | |
| 122 | resources: |
Mandeep Khinda | de04571 | 2018-09-19 18:11:57 +0000 | [diff] [blame] | 123 | small: |
| 124 | limits: |
| 125 | cpu: 1 |
| 126 | memory: 1Gi |
| 127 | requests: |
Mandeep Khinda | 3c13425 | 2018-09-19 23:56:37 +0000 | [diff] [blame] | 128 | cpu: 0.5 |
| 129 | memory: 500Mi |
Mandeep Khinda | de04571 | 2018-09-19 18:11:57 +0000 | [diff] [blame] | 130 | large: |
| 131 | limits: |
| 132 | cpu: 2 |
| 133 | memory: 2Gi |
| 134 | requests: |
Mandeep Khinda | 3c13425 | 2018-09-19 23:56:37 +0000 | [diff] [blame] | 135 | cpu: 1 |
| 136 | memory: 1Gi |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 137 | unlimited: {} |