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 |
| 20 | readinessRepository: oomk8s |
Mahendra Raghuwanshi | b76cb28 | 2019-04-09 10:13:07 +0000 | [diff] [blame] | 21 | readinessImage: readiness-check:2.0.2 |
jmac | 7c43467 | 2018-05-11 20:14:17 +0000 | [diff] [blame] | 22 | loggingRepository: docker.elastic.co |
| 23 | loggingImage: beats/filebeat:5.5.0 |
Krzysztof Opasiak | b9d50c9 | 2020-02-20 21:29:45 +0100 | [diff] [blame] | 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 |
Krzysztof Opasiak | 88e44bf | 2020-02-26 02:23:23 +0100 | [diff] [blame] | 49 | externalSecret: '{{ tpl (default "" .Values.config.restCredsExternalSecret) . }}' |
Krzysztof Opasiak | b9d50c9 | 2020-02-20 21:29:45 +0100 | [diff] [blame] | 50 | login: '{{ .Values.config.restUser }}' |
| 51 | password: '{{ .Values.config.restPassword }}' |
| 52 | passwordPolicy: required |
jmac | 7c43467 | 2018-05-11 20:14:17 +0000 | [diff] [blame] | 53 | |
| 54 | ################################################################# |
| 55 | # Application configuration defaults. |
| 56 | ################################################################# |
| 57 | # application image |
| 58 | repository: nexus3.onap.org:10001 |
Dan Timoney | 994bc30 | 2020-05-04 13:55:56 -0400 | [diff] [blame] | 59 | image: onap/sdnc-ansible-server-image:1.8.2 |
jmac | 7c43467 | 2018-05-11 20:14:17 +0000 | [diff] [blame] | 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 |
Krzysztof Opasiak | b9d50c9 | 2020-02-20 21:29:45 +0100 | [diff] [blame] | 69 | restUser: sdnc |
| 70 | restPassword: sdnc |
| 71 | # restCredsExternalSecret: some secret |
jmac | 7c43467 | 2018-05-11 20:14:17 +0000 | [diff] [blame] | 72 | |
Krzysztof Opasiak | b9d50c9 | 2020-02-20 21:29:45 +0100 | [diff] [blame] | 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 |
jmac | 7c43467 | 2018-05-11 20:14:17 +0000 | [diff] [blame] | 88 | |
| 89 | # default number of instances |
| 90 | replicaCount: 1 |
| 91 | |
| 92 | nodeSelector: {} |
| 93 | |
| 94 | affinity: {} |
| 95 | |
| 96 | # probe configuration parameters |
| 97 | liveness: |
BorislavG | 8d9337a | 2018-06-13 14:56:54 +0000 | [diff] [blame] | 98 | initialDelaySeconds: 180 |
jmac | 7c43467 | 2018-05-11 20:14:17 +0000 | [diff] [blame] | 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 | |
toshrajbhardwaj | 72b5f0f | 2018-09-13 02:45:22 +0000 | [diff] [blame] | 118 | #Resource Limit flavor -By default using small |
| 119 | flavor: small |
| 120 | |
| 121 | #Segregation for Different environment (Small and Large) |
| 122 | |
| 123 | resources: |
Mandeep Khinda | de04571 | 2018-09-19 18:11:57 +0000 | [diff] [blame] | 124 | small: |
| 125 | limits: |
| 126 | cpu: 1 |
| 127 | memory: 1Gi |
| 128 | requests: |
Mandeep Khinda | 3c13425 | 2018-09-19 23:56:37 +0000 | [diff] [blame] | 129 | cpu: 0.5 |
| 130 | memory: 500Mi |
Mandeep Khinda | de04571 | 2018-09-19 18:11:57 +0000 | [diff] [blame] | 131 | large: |
| 132 | limits: |
| 133 | cpu: 2 |
| 134 | memory: 2Gi |
| 135 | requests: |
Mandeep Khinda | 3c13425 | 2018-09-19 23:56:37 +0000 | [diff] [blame] | 136 | cpu: 1 |
| 137 | memory: 1Gi |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 138 | unlimited: {} |