| vijaynag | 8339ed2 | 2019-07-25 17:10:58 +0530 | [diff] [blame] | 1 | # Copyright 2019 TATA ELXSI |
| 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 |
| 12 | # implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License |
| 15 | # Author: Vijay Nag B S (vijaynag.bs@tataelxsi.co.in) |
| 16 | |
| 17 | apiVersion: v1 |
| 18 | kind: Service |
| 19 | metadata: |
| 20 | name: keystone |
| 21 | spec: |
| 22 | ports: |
| 23 | - port: 5000 |
| 24 | protocol: TCP |
| 25 | targetPort: 5000 |
| 26 | selector: |
| 27 | app: keystone |
| 28 | type: ClusterIP |
| 29 | --- |
| 30 | apiVersion: apps/v1 |
| 31 | kind: Deployment |
| 32 | metadata: |
| 33 | name: keystone |
| 34 | labels: |
| 35 | app: keystone |
| 36 | spec: |
| 37 | replicas: 1 |
| 38 | selector: |
| 39 | matchLabels: |
| 40 | app: keystone |
| 41 | template: |
| 42 | metadata: |
| 43 | labels: |
| 44 | app: keystone |
| 45 | spec: |
| 46 | containers: |
| 47 | - name: keystone |
| 48 | image: opensourcemano/keystone:latest |
| 49 | ports: |
| 50 | - containerPort: 5000 |
| 51 | protocol: TCP |
| 52 | env: |
| 53 | - name: DB_HOST |
| 54 | value: mysql |
| 55 | envFrom: |
| 56 | - secretRef: |
| 57 | name: keystone-secret |