blob: de7d4a21949a8f061af0e47f32867b39c220ff61 [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
15containers:
16 - name: %(name)s
17 image: %(docker_image)s
18 ports:
19 # This is a fake port; lcm doesn't listen, since it's just reading
20 # and responding to the kafka bus. Fix this in post.
21 - containerPort: 80
22 protocol: TCP
23 config:
24 ALLOW_ANONYMOUS_LOGIN: 'yes'
25 OSMPOL_MESSAGE_DRIVER: kafka
26 OSMPOL_MESSAGE_HOST: %(kafka_host)s
27 OSMPOL_MESSAGE_PORT: %(kafka_port)s
28
29 OSMPOL_DATABASE_DRIVER: mongo
30 OSMPOL_DATABASE_URI: %(mongo_uri)s
31
32 OSMPOL_GLOBAL_LOGLEVEL: %(log_level)s
33 # kubernetes:
34 # readinessProbe:
35 # exec:
36 # command: ["sh", "-c", "osm-pol-healthcheck || exit 1"]
37 # periodSeconds: 10
38 # timeoutSeconds: 5
39 # successThreshold: 1
40 # failureThreshold: 3
41 # livenessProbe:
42 # exec:
43 # command: ["sh", "-c", "osm-pol-healthcheck || exit 1"]
44 # initialDelaySeconds: 45
45 # periodSeconds: 10
46 # timeoutSeconds: 5
47 # successThreshold: 1
48 # failureThreshold: 3