| vijaynag | 8339ed2 | 2019-07-25 17:10:58 +0530 | [diff] [blame] | 1 | # Copyright 2019 TATA ELXSI |
| bravof | c973b57 | 2020-10-21 16:58:50 -0300 | [diff] [blame] | 2 | # Copyright 2020 Whitestack |
| vijaynag | 8339ed2 | 2019-07-25 17:10:58 +0530 | [diff] [blame] | 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or |
| 13 | # implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License |
| bravof | c973b57 | 2020-10-21 16:58:50 -0300 | [diff] [blame] | 16 | # Author: Vijay Nag B S (vijaynag.bs@tataelxsi.co.in), Fabián Bravo(fbravo@whitestack.com) |
| vijaynag | 8339ed2 | 2019-07-25 17:10:58 +0530 | [diff] [blame] | 17 | |
| 18 | apiVersion: apps/v1 |
| 19 | kind: Deployment |
| 20 | metadata: |
| 21 | name: lcm |
| 22 | labels: |
| 23 | app: lcm |
| 24 | spec: |
| 25 | replicas: 1 |
| 26 | selector: |
| 27 | matchLabels: |
| 28 | app: lcm |
| 29 | template: |
| 30 | metadata: |
| 31 | labels: |
| 32 | app: lcm |
| 33 | spec: |
| Mark Beierl | abc56a9 | 2022-02-11 08:56:32 -0500 | [diff] [blame] | 34 | securityContext: |
| 35 | runAsUser: 1000 |
| 36 | runAsGroup: 1000 |
| 37 | fsGroup: 1000 |
| vijaynag | 8339ed2 | 2019-07-25 17:10:58 +0530 | [diff] [blame] | 38 | initContainers: |
| 39 | - name: kafka-ro-mongo-test |
| 40 | image: alpine:latest |
| David Garcia | a137601 | 2020-10-19 15:42:42 +0200 | [diff] [blame] | 41 | command: ["sh", "-c", "until (nc -zvw1 kafka 9092 && nc -zvw1 ro 9090 && nc -zvw1 mongodb-k8s 27017 ); do sleep 3; done; exit 0"] |
| vijaynag | 8339ed2 | 2019-07-25 17:10:58 +0530 | [diff] [blame] | 42 | containers: |
| 43 | - name: lcm |
| garciadeblas | 89c5f55 | 2022-11-24 20:16:57 +0100 | [diff] [blame] | 44 | image: opensourcemano/lcm:13 |
| vijaynag | 8339ed2 | 2019-07-25 17:10:58 +0530 | [diff] [blame] | 45 | env: |
| 46 | - name: OSMLCM_RO_HOST |
| 47 | value: ro |
| David Garcia | a137601 | 2020-10-19 15:42:42 +0200 | [diff] [blame] | 48 | - name: OSMLCM_DATABASE_URI |
| 49 | value: mongodb://mongodb-k8s:27017/?replicaSet=rs0 |
| vijaynag | 8339ed2 | 2019-07-25 17:10:58 +0530 | [diff] [blame] | 50 | - name: OSMLCM_MESSAGE_HOST |
| 51 | value: kafka |
| David Garcia | 1425183 | 2020-11-12 16:56:29 +0100 | [diff] [blame] | 52 | - name: OSMLCM_STORAGE_DRIVER |
| 53 | value: mongo |
| 54 | - name: OSMLCM_STORAGE_PATH |
| 55 | value: /app/storage |
| 56 | - name: OSMLCM_STORAGE_COLLECTION |
| 57 | value: files |
| 58 | - name: OSMLCM_STORAGE_URI |
| 59 | value: mongodb://mongodb-k8s:27017/?replicaSet=rs0 |
| vijaynag | 8339ed2 | 2019-07-25 17:10:58 +0530 | [diff] [blame] | 60 | envFrom: |
| 61 | - secretRef: |
| Mark Beierl | abc56a9 | 2022-02-11 08:56:32 -0500 | [diff] [blame] | 62 | name: lcm-secret |
| Gabriel Cuba | 0d4965f | 2022-11-06 19:39:02 -0500 | [diff] [blame] | 63 | volumeMounts: |
| 64 | - mountPath: /etc/ssl/certs/osm-ca.crt |
| 65 | name: osm-ca |
| 66 | readOnly: true |
| 67 | subPath: osm-ca.crt |
| 68 | volumes: |
| 69 | - name: osm-ca |
| 70 | secret: |
| 71 | defaultMode: 420 |
| 72 | items: |
| 73 | - key: tls.crt |
| 74 | path: osm-ca.crt |
| 75 | secretName: osm-ca |