blob: 985ccf235da317ff484ee36449f5be76940fcd66 [file] [log] [blame]
David Garcia82c5ffa2020-03-09 08:38:17 +01001# 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.
14version: 2
15service:
16 scalePolicy: serial
17containers:
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'
tiernoedc193b2020-11-25 13:25:08 +000042
43 OSMRO_MESSAGE_DRIVER: kafka
44 OSMRO_MESSAGE_HOST: %(kafka_host)s
45 OSMRO_MESSAGE_PORT: %(kafka_port)s
David Garcia82c5ffa2020-03-09 08:38:17 +010046
tiernoedc193b2020-11-25 13:25:08 +000047 OSMRO_DATABASE_DRIVER: mongo
48 OSMRO_DATABASE_URI: %(mongo_uri)s
49 OSMRO_DATABASE_COMMONKEY: %(DATABASE_COMMONKEY)s
50
51