| 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 | ports: |
| 21 | - containerPort: %(advertised-port)s |
| 22 | protocol: TCP |
| 23 | config: |
| 24 | ALLOW_ANONYMOUS_LOGIN: 'yes' |
| 25 | OSM_SERVER: %(nbi_host)s |
| 26 | OSMUI_SQL_DATABASE_URI: mysql://root:%(mysql_root_password)s@%(mysql_host)s:%(mysql_port)s/%(mysql_database)s |
| 27 | kubernetes: |
| 28 | readinessProbe: |
| 29 | tcpSocket: |
| 30 | port: %(advertised-port)s |
| 31 | periodSeconds: 10 |
| 32 | timeoutSeconds: 5 |
| 33 | successThreshold: 1 |
| 34 | failureThreshold: 3 |
| 35 | livenessProbe: |
| 36 | tcpSocket: |
| 37 | port: %(advertised-port)s |
| 38 | initialDelaySeconds: 30 |
| 39 | periodSeconds: 10 |
| 40 | timeoutSeconds: 5 |
| 41 | successThreshold: 1 |
| 42 | failureThreshold: 3 |