blob: 2077705e9a1abc05966522d6ed02a8684f78eb74 [file] [log] [blame]
Zack Williams2749ae52018-09-28 09:43:43 -07001---
Gopinath Tagete2dff4d2018-03-15 17:22:28 -07002# Copyright 2017-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16apiVersion: v1
17kind: Service
18metadata:
19 name: vcli
20 namespace: {{ .Values.global.namespace }}
21 serviceAccountName: {{ .Values.global.namespace }}-serviceaccount
22 labels:
23 name: vcli
24spec:
25 type: NodePort
26 ports:
27 - name: ssh
28 port: 5022
29 targetPort: 22
30 nodePort: {{ .Values.node_ports.vcli_port }}
31 selector:
32 app: vcli
33---
34apiVersion: apps/v1beta1
35kind: Deployment
36metadata:
37 name: vcli
38 namespace: {{ .Values.global.namespace }}
39 serviceAccountName: {{ .Values.global.namespace }}-serviceaccount
40spec:
Gopinath Tagetfff89342018-04-16 12:12:17 -070041 replicas: {{ .Values.replicas.vcli }}
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070042 template:
43 metadata:
44 labels:
45 app: vcli
46 annotations:
Gopinath Tagetf0b3ee82018-07-09 16:55:34 -070047 cni: "calico"
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070048 spec:
49 serviceAccountName: {{ .Values.global.namespace }}-serviceaccount
50 containers:
51 - name: vcli
Zack Williams2749ae52018-09-28 09:43:43 -070052 image: {{ .Values.global.registry }}{{ .Values.images.vcli.repository }}:{{ tpl .Values.images.vcli.tag . }}
53 imagePullPolicy: {{ .Values.images.vcli.pullPolicy }}
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070054 env:
55 - name: POD_IP
56 valueFrom:
57 fieldRef:
58 fieldPath: status.podIP
59 - name: NAMESPACE
60 valueFrom:
61 fieldRef:
62 fieldPath: metadata.namespace
63 args:
Zack Williams2749ae52018-09-28 09:43:43 -070064{{ toYaml .Values.vcli_args | indent 12 }}
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070065 ports:
66 - containerPort: 22
67 name: ssh-port
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070068
69