blob: 0e27457df90a833186efa7233f371ac4ddd24fb5 [file] [log] [blame]
Zack Williams41513bf2018-07-07 20:08:35 -07001# Copyright 2017-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.
Richard Jankowskid7921b72018-02-20 16:55:12 -050014apiVersion: v1
15kind: Service
16metadata:
17 name: vcli
18 namespace: voltha
19 labels:
20 name: vcli
21spec:
22 ports:
23 - name: ssh
24 port: 5022
25 targetPort: 22
26 selector:
27 app: vcli
28---
29apiVersion: apps/v1beta1
30kind: Deployment
31metadata:
32 name: vcli
33 namespace: voltha
34spec:
35 replicas: 1
36 template:
37 metadata:
38 labels:
39 app: vcli
40 annotations:
Stephane Barbarie2d4e07f2018-03-26 16:46:45 -040041 cni: "calico"
Richard Jankowskid7921b72018-02-20 16:55:12 -050042 spec:
43 containers:
44 - name: vcli
45 image: voltha-cli
46 env:
47 - name: POD_IP
48 valueFrom:
49 fieldRef:
50 fieldPath: status.podIP
51 - name: NAMESPACE
52 valueFrom:
53 fieldRef:
54 fieldPath: metadata.namespace
55 args:
56 - "/cli/cli/setup.sh"
57 - "-C consul:8500"
58 - "-g voltha:50555"
59 - "-s voltha:18880"
60 - "-G"
61 ports:
62 - containerPort: 22
63 name: ssh-port
64 imagePullPolicy: Never
65
66