blob: 8a976cf8b567fa480799d24b398617cbed770c45 [file] [log] [blame]
vijaynag8339ed22019-07-25 17:10:58 +05301# 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
17apiVersion: v1
18kind: Service
19metadata:
20 name: keystone
21spec:
22 ports:
23 - port: 5000
24 protocol: TCP
25 targetPort: 5000
26 selector:
27 app: keystone
28 type: ClusterIP
29---
30apiVersion: apps/v1
31kind: Deployment
32metadata:
33 name: keystone
34 labels:
35 app: keystone
36spec:
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