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 | --- |
| 34 | apiVersion: apps/v1beta1 |
| 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 }} |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 42 | template: |
| 43 | metadata: |
| 44 | labels: |
| 45 | app: vcli |
| 46 | annotations: |
Gopinath Taget | f0b3ee8 | 2018-07-09 16:55:34 -0700 | [diff] [blame] | 47 | cni: "calico" |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 48 | spec: |
| 49 | serviceAccountName: {{ .Values.global.namespace }}-serviceaccount |
| 50 | containers: |
| 51 | - name: vcli |
Zack Williams | 2749ae5 | 2018-09-28 09:43:43 -0700 | [diff] [blame] | 52 | image: {{ .Values.global.registry }}{{ .Values.images.vcli.repository }}:{{ tpl .Values.images.vcli.tag . }} |
| 53 | imagePullPolicy: {{ .Values.images.vcli.pullPolicy }} |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 54 | 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 Williams | 2749ae5 | 2018-09-28 09:43:43 -0700 | [diff] [blame] | 64 | {{ toYaml .Values.vcli_args | indent 12 }} |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 65 | ports: |
| 66 | - containerPort: 22 |
| 67 | name: ssh-port |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 68 | |
| 69 | |