Prepare installer and pods for Rel TWELVE
[osm/devops.git] / installers / charm / pol-k8s / reactive / spec_template.yaml
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
17     imageDetails:
18       imagePath: %(image)s
19       username: %(image_username)s
20       password: %(image_password)s
21     ports:
22     # This is a fake port; lcm doesn't listen, since it's just reading
23     # and responding to the kafka bus. Fix this in post.
24     - containerPort: 80
25       protocol: TCP
26     config:
27       ALLOW_ANONYMOUS_LOGIN: 'yes'
28       OSMPOL_MESSAGE_DRIVER: kafka
29       OSMPOL_MESSAGE_HOST: %(kafka_host)s
30       OSMPOL_MESSAGE_PORT: %(kafka_port)s
31
32       OSMPOL_DATABASE_DRIVER: mongo
33       OSMPOL_DATABASE_URI: %(mongo_uri)s
34
35       OSMPOL_GLOBAL_LOGLEVEL: %(log_level)s
36     # kubernetes:
37     # readinessProbe:
38     #   exec:
39     #     command: ["sh", "-c", "osm-pol-healthcheck || exit 1"]
40     #   periodSeconds: 10
41     #   timeoutSeconds: 5
42     #   successThreshold: 1
43     #   failureThreshold: 3
44     # livenessProbe:
45     #   exec:
46     #     command: ["sh", "-c", "osm-pol-healthcheck || exit 1"]
47     #   initialDelaySeconds: 45
48     #   periodSeconds: 10
49     #   timeoutSeconds: 5
50     #   successThreshold: 1
51     #   failureThreshold: 3