Zack Williams | 2749ae5 | 2018-09-28 09:43:43 -0700 | [diff] [blame] | 1 | --- |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 2 | # 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 | |
| 16 | apiVersion: v1 |
| 17 | kind: Service |
| 18 | metadata: |
| 19 | name: vcli |
| 20 | namespace: {{ .Values.global.namespace }} |
| 21 | serviceAccountName: {{ .Values.global.namespace }}-serviceaccount |
| 22 | labels: |
| 23 | name: vcli |
| 24 | spec: |
| 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 Scandolo | 5628d4b | 2021-01-11 11:46:12 -0800 | [diff] [blame] | 34 | apiVersion: apps/v1 |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 35 | kind: Deployment |
| 36 | metadata: |
| 37 | name: vcli |
| 38 | namespace: {{ .Values.global.namespace }} |
| 39 | serviceAccountName: {{ .Values.global.namespace }}-serviceaccount |
| 40 | spec: |
Gopinath Taget | fff8934 | 2018-04-16 12:12:17 -0700 | [diff] [blame] | 41 | replicas: {{ .Values.replicas.vcli }} |
Matteo Scandolo | 5628d4b | 2021-01-11 11:46:12 -0800 | [diff] [blame] | 42 | selector: |
| 43 | matchLabels: |
| 44 | name: device-management |
| 45 | release: {{ .Release.Name }} |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 46 | template: |
| 47 | metadata: |
| 48 | labels: |
| 49 | app: vcli |
| 50 | annotations: |
Gopinath Taget | f0b3ee8 | 2018-07-09 16:55:34 -0700 | [diff] [blame] | 51 | cni: "calico" |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 52 | spec: |
| 53 | serviceAccountName: {{ .Values.global.namespace }}-serviceaccount |
| 54 | containers: |
| 55 | - name: vcli |
Zack Williams | 2749ae5 | 2018-09-28 09:43:43 -0700 | [diff] [blame] | 56 | image: {{ .Values.global.registry }}{{ .Values.images.vcli.repository }}:{{ tpl .Values.images.vcli.tag . }} |
| 57 | imagePullPolicy: {{ .Values.images.vcli.pullPolicy }} |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 58 | 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 Williams | 2749ae5 | 2018-09-28 09:43:43 -0700 | [diff] [blame] | 68 | {{ toYaml .Values.vcli_args | indent 12 }} |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 69 | ports: |
| 70 | - containerPort: 22 |
| 71 | name: ssh-port |