blob: b25d94a590f5cecb435da99378b33b7e70416a45 [file] [log] [blame]
Richard Jankowskiab8e2532018-11-30 16:17:00 -05001# Copyright 2018 the original author or authors.
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
15apiVersion: v1
16kind: Service
17metadata:
18 name: rw-core
19 namespace: voltha
20spec:
21 clusterIP: None
22 ports:
23 - name: grpc
24 port: 50057
25 targetPort: 50057
26 selector:
27 app: rw-core
28---
29apiVersion: apps/v1
30kind: Deployment
31metadata:
32 name: rw-core
33 namespace: voltha
34spec:
35 replicas: 1
36 selector:
37 matchLabels:
38 app: rw-core
39 template:
40 metadata:
41 labels:
42 app: rw-core
43 annotations:
44 cni: "calico"
45 spec:
46 containers:
47 - name: voltha
48 image: voltha-rw-core
49 env:
50 - name: NAMESPACE
51 valueFrom:
52 fieldRef:
53 fieldPath: metadata.namespace
54 - name: POD_IP
55 valueFrom:
56 fieldRef:
57 fieldPath: status.podIP
58 args:
59 - "/app/rw_core"
60 - "-kv_store_type=etcd"
61 - "-kv_store_host=etcd.$(NAMESPACE).svc.cluster.local"
62 - "-kv_store_port=2379"
Richard Jankowskiab8e2532018-11-30 16:17:00 -050063 - "-grpc_port=50057"
64 - "-banner=true"
65 - "-kafka_adapter_host=kafka.$(NAMESPACE).svc.cluster.local"
66 - "-kafka_adapter_port=9092"
67 - "-kafka_cluster_host=kafka.$(NAMESPACE).svc.cluster.local"
68 - "-kafka_cluster_port=9092"
69 - "-rw_core_topic=rwcore"
Richard Jankowski1b299922019-03-05 15:49:24 -050070 - "-kv_store_data_prefix=service/voltha"
71 - "-in_competing_mode=false"
72 - "-timeout_long_request=5000"
Richard Jankowskiab8e2532018-11-30 16:17:00 -050073 - "-log_level=0"
74 ports:
75 - containerPort: 50057
76 name: grpc-port
77 imagePullPolicy: IfNotPresent
78
79
80