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