blob: b63c210436a89e3f6943b234a7b3deb909496ea1 [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
David Garcia82c5ffa2020-03-09 08:38:17 +010015containers:
16 - name: %(name)s
17 image: %(docker_image)s
18 ports:
19 - containerPort: %(advertised-port)s
20 protocol: TCP
21 config:
22 ALLOW_ANONYMOUS_LOGIN: 'yes'
23 OSM_SERVER: %(nbi_host)s
24 OSMUI_SQL_DATABASE_URI: mysql://root:%(mysql_root_password)s@%(mysql_host)s:%(mysql_port)s/%(mysql_database)s
25 kubernetes:
26 readinessProbe:
27 tcpSocket:
28 port: %(advertised-port)s
29 periodSeconds: 10
30 timeoutSeconds: 5
31 successThreshold: 1
32 failureThreshold: 3
33 livenessProbe:
34 tcpSocket:
35 port: %(advertised-port)s
36 initialDelaySeconds: 30
37 periodSeconds: 10
38 timeoutSeconds: 5
39 successThreshold: 1
40 failureThreshold: 3