blob: bd9e38f082eeac6c627b5a641b5b5256489049b2 [file] [log] [blame]
Richard Jankowski00a04662019-02-05 12:18:53 -05001# Copyright 2019-present Open Networking Foundation
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: vcli
19 namespace: voltha
20 labels:
21 name: vcli
22spec:
23 ports:
24 - name: ssh
25 port: 5022
26 targetPort: 22
27 selector:
28 app: vcli
29---
30apiVersion: apps/v1beta1
31kind: Deployment
32metadata:
33 name: vcli
34 namespace: voltha
35spec:
36 replicas: 1
37 template:
38 metadata:
39 labels:
40 app: vcli
41 annotations:
42 cni: "calico"
43 spec:
44 containers:
45 - name: vcli
46 image: voltha-cli
47 env:
48 - name: POD_IP
49 valueFrom:
50 fieldRef:
51 fieldPath: status.podIP
52 - name: NAMESPACE
53 valueFrom:
54 fieldRef:
55 fieldPath: metadata.namespace
56 args:
57 - "/voltha/python/cli/setup.sh"
58 - "-g afrouter.$(NAMESPACE).svc.cluster.local:55555"
59 ports:
60 - containerPort: 22
61 name: ssh-port
62 imagePullPolicy: IfNotPresent
63
64