Remove api_proxy from osm bundles
[osm/devops.git] / installers / charm / lcm-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     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: 9999
22       protocol: TCP
23     config:
24       ALLOW_ANONYMOUS_LOGIN: 'yes'
25       OSMLCM_RO_HOST: %(ro_host)s
26       OSMLCM_RO_PORT: %(ro_port)s
27       OSMLCM_RO_TENANT: osm
28
29       OSMLCM_MESSAGE_DRIVER: kafka
30       OSMLCM_MESSAGE_HOST: %(kafka_host)s
31       OSMLCM_MESSAGE_PORT: %(kafka_port)s
32       
33       OSMLCM_DATABASE_DRIVER: mongo
34       OSMLCM_DATABASE_URI: %(mongo_uri)s
35       OSMLCM_DATABASE_COMMONKEY: %(DATABASE_COMMONKEY)s
36
37       OSMLCM_STORAGE_DRIVER: mongo
38       OSMLCM_STORAGE_PATH: /app/storage
39       OSMLCM_STORAGE_COLLECTION: files
40       OSMLCM_STORAGE_URI: %(mongo_uri)s
41       
42       OSMLCM_VCA_HOST: %(vca_host)s
43       OSMLCM_VCA_PORT: %(vca_port)s
44       OSMLCM_VCA_USER: %(vca_user)s
45       OSMLCM_VCA_PUBKEY: %(vca_pubkey)s
46       OSMLCM_VCA_SECRET: %(vca_password)s
47       OSMLCM_VCA_CACERT: %(vca_cacert)s
48       OSMLCM_VCA_CLOUD: %(vca_cloud)s
49       OSMLCM_VCA_K8S_CLOUD: %(vca_k8s_cloud)s