| 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 | containers: |
| 16 | - name: %(name)s |
| David Garcia | fa75eca | 2020-11-04 18:34:41 +0100 | [diff] [blame] | 17 | imageDetails: |
| 18 | imagePath: %(image)s |
| 19 | username: %(image_username)s |
| 20 | password: %(image_password)s |
| David Garcia | 82c5ffa | 2020-03-09 08:38:17 +0100 | [diff] [blame] | 21 | ports: |
| 22 | - containerPort: %(advertised-port)s |
| 23 | protocol: TCP |
| 24 | config: |
| 25 | ALLOW_ANONYMOUS_LOGIN: 'yes' |
| 26 | OSMMON_MESSAGE_DRIVER: kafka |
| 27 | OSMMON_MESSAGE_HOST: %(kafka_host)s |
| 28 | OSMMON_MESSAGE_PORT: %(kafka_port)s |
| 29 | |
| 30 | OSMMON_DATABASE_DRIVER: mongo |
| 31 | OSMMON_DATABASE_URI: %(mongo_uri)s |
| 32 | |
| 33 | OSMMON_OPENSTACK_DEFAULT_GRANULARITY: %(OSMMON_OPENSTACK_DEFAULT_GRANULARITY)s |
| 34 | OSMMON_GLOBAL_REQUEST_TIMEOUT: %(OSMMON_GLOBAL_REQUEST_TIMEOUT)s |
| 35 | OSMMON_GLOBAL_LOGLEVEL: %(OSMMON_GLOBAL_LOGLEVEL)s |
| 36 | OSMMON_VCA_HOST: %(vca_host)s |
| 37 | OSMMON_VCA_USER: %(vca_user)s |
| 38 | OSMMON_VCA_SECRET: %(vca_password)s |
| 39 | OSMMON_VCA_CACERT: %(vca_cacert)s |
| 40 | OSMMON_DATABASE_COMMONKEY: %(OSMMON_DATABASE_COMMONKEY)s |
| 41 | OSMMON_COLLECTOR_INTERVAL: %(OSMMON_COLLECTOR_INTERVAL)s |
| 42 | OSMMON_EVALUATOR_INTERVAL: %(OSMMON_EVALUATOR_INTERVAL)s |
| 43 | OSMMON_PROMETHEUS_URL: http://%(prometheus_url)s |
| David Garcia | d4f66da | 2020-11-12 15:30:56 +0100 | [diff] [blame] | 44 | OSMMON_GRAFANA_URL: %(grafana_url)s |
| 45 | OSMMON_GRAFANA_USER: %(grafana_user)s |
| 46 | OSMMON_GRAFANA_PASSWORD: %(grafana_password)s |
| David Garcia | 82c5ffa | 2020-03-09 08:38:17 +0100 | [diff] [blame] | 47 | kubernetes: |
| 48 | readinessProbe: |
| 49 | tcpSocket: |
| 50 | port: %(advertised-port)s |
| 51 | periodSeconds: 10 |
| 52 | timeoutSeconds: 5 |
| 53 | successThreshold: 1 |
| 54 | failureThreshold: 3 |
| 55 | livenessProbe: |
| 56 | tcpSocket: |
| 57 | port: %(advertised-port)s |
| 58 | initialDelaySeconds: 45 |
| 59 | periodSeconds: 10 |
| 60 | timeoutSeconds: 5 |
| 61 | successThreshold: 1 |
| 62 | failureThreshold: 3 |