blob: 7b962c1c83812b7df1098372b20e73e8a78b8922 [file] [log] [blame]
Gopinath Tagete2dff4d2018-03-15 17:22:28 -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.
14
15apiVersion: v1
16kind: Service
17metadata:
18 name: vcli
19 namespace: {{ .Values.global.namespace }}
20 serviceAccountName: {{ .Values.global.namespace }}-serviceaccount
21 labels:
22 name: vcli
23spec:
24 type: NodePort
25 ports:
26 - name: ssh
27 port: 5022
28 targetPort: 22
29 nodePort: {{ .Values.node_ports.vcli_port }}
30 selector:
31 app: vcli
32---
33apiVersion: apps/v1beta1
34kind: Deployment
35metadata:
36 name: vcli
37 namespace: {{ .Values.global.namespace }}
38 serviceAccountName: {{ .Values.global.namespace }}-serviceaccount
39spec:
Gopinath Tagetfff89342018-04-16 12:12:17 -070040 replicas: {{ .Values.replicas.vcli }}
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070041 template:
42 metadata:
43 labels:
44 app: vcli
45 annotations:
Gopinath Tagetf0b3ee82018-07-09 16:55:34 -070046 cni: "calico"
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070047 spec:
48 serviceAccountName: {{ .Values.global.namespace }}-serviceaccount
49 containers:
50 - name: vcli
Matteo Scandolof6c28df2018-05-08 11:44:05 -070051 image: {{ .Values.vcliImage }}
52 imagePullPolicy: {{ .Values.imagePullPolicy }}
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070053 env:
54 - name: POD_IP
55 valueFrom:
56 fieldRef:
57 fieldPath: status.podIP
58 - name: NAMESPACE
59 valueFrom:
60 fieldRef:
61 fieldPath: metadata.namespace
62 args:
63{{ toYaml .Values.vcli_args | indent 12 }}
64 ports:
65 - containerPort: 22
66 name: ssh-port
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070067
68