blob: 9bbdf6372b08ce202527b68d2c45aead5b4a4e21 [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---
Matteo Scandolo5628d4b2021-01-11 11:46:12 -080034apiVersion: apps/v1
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070035kind: 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 }}
Matteo Scandolo5628d4b2021-01-11 11:46:12 -080042 selector:
43 matchLabels:
44 name: device-management
45 release: {{ .Release.Name }}
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070046 template:
47 metadata:
48 labels:
49 app: vcli
50 annotations:
Gopinath Tagetf0b3ee82018-07-09 16:55:34 -070051 cni: "calico"
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070052 spec:
53 serviceAccountName: {{ .Values.global.namespace }}-serviceaccount
54 containers:
55 - name: vcli
Zack Williams2749ae52018-09-28 09:43:43 -070056 image: {{ .Values.global.registry }}{{ .Values.images.vcli.repository }}:{{ tpl .Values.images.vcli.tag . }}
57 imagePullPolicy: {{ .Values.images.vcli.pullPolicy }}
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070058 env:
59 - name: POD_IP
60 valueFrom:
61 fieldRef:
62 fieldPath: status.podIP
63 - name: NAMESPACE
64 valueFrom:
65 fieldRef:
66 fieldPath: metadata.namespace
67 args:
Zack Williams2749ae52018-09-28 09:43:43 -070068{{ toYaml .Values.vcli_args | indent 12 }}
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070069 ports:
70 - containerPort: 22
71 name: ssh-port