| David Garcia | 82c5ffa | 2020-03-09 08:38:17 +0100 | [diff] [blame] | 1 | # Copyright 2020 Canonical Ltd. |
| 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 | version: 2 |
| 15 | service: |
| 16 | scalePolicy: serial |
| 17 | containers: |
| 18 | - name: %(name)s |
| 19 | image: %(docker_image)s |
| 20 | kubernetes: |
| 21 | readinessProbe: |
| 22 | httpGet: |
| 23 | path: /openmano/tenants |
| 24 | port: %(advertised-port)s |
| 25 | periodSeconds: 10 |
| 26 | timeoutSeconds: 5 |
| 27 | successThreshold: 1 |
| 28 | failureThreshold: 3 |
| 29 | livenessProbe: |
| 30 | tcpSocket: |
| 31 | port: %(advertised-port)s |
| 32 | initialDelaySeconds: 600 |
| 33 | periodSeconds: 10 |
| 34 | timeoutSeconds: 5 |
| 35 | successThreshold: 1 |
| 36 | failureThreshold: 3 |
| 37 | ports: |
| 38 | - containerPort: %(advertised-port)s |
| 39 | protocol: TCP |
| 40 | config: |
| 41 | ALLOW_ANONYMOUS_LOGIN: 'yes' |
| 42 | RO_DB_HOST: %(mysql_host)s |
| 43 | RO_DB_PORT: %(mysql_port)s |
| 44 | RO_DB_NAME: %(ro_database)s |
| 45 | RO_DB_USER: %(mysql_user)s |
| 46 | RO_DB_ROOT_PASSWORD: %(mysql_root_password)s |
| 47 | RO_DB_PASSWORD: %(mysql_password)s |
| 48 | |
| 49 | RO_DB_OVIM_PASSWORD: %(mysql_password)s |
| 50 | RO_DB_OVIM_HOST: %(mysql_host)s |
| 51 | RO_DB_OVIM_PORT: %(mysql_port)s |
| 52 | RO_DB_OVIM_USER: %(mysql_user)s |
| 53 | RO_DB_OVIM_ROOT_PASSWORD: %(mysql_root_password)s |
| 54 | RO_DB_OVIM_NAME: %(vim_database)s |
| 55 | OPENMANO_TENANT: %(OPENMANO_TENANT)s |