Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 1 | # 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 | |
| 15 | apiVersion: v1 |
| 16 | kind: Service |
| 17 | metadata: |
| 18 | name: vcli |
| 19 | namespace: {{ .Values.global.namespace }} |
| 20 | serviceAccountName: {{ .Values.global.namespace }}-serviceaccount |
| 21 | labels: |
| 22 | name: vcli |
| 23 | spec: |
| 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 | --- |
| 33 | apiVersion: apps/v1beta1 |
| 34 | kind: Deployment |
| 35 | metadata: |
| 36 | name: vcli |
| 37 | namespace: {{ .Values.global.namespace }} |
| 38 | serviceAccountName: {{ .Values.global.namespace }}-serviceaccount |
| 39 | spec: |
Gopinath Taget | fff8934 | 2018-04-16 12:12:17 -0700 | [diff] [blame] | 40 | replicas: {{ .Values.replicas.vcli }} |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 41 | template: |
| 42 | metadata: |
| 43 | labels: |
| 44 | app: vcli |
| 45 | annotations: |
Gopinath Taget | f0b3ee8 | 2018-07-09 16:55:34 -0700 | [diff] [blame] | 46 | cni: "calico" |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 47 | spec: |
| 48 | serviceAccountName: {{ .Values.global.namespace }}-serviceaccount |
| 49 | containers: |
| 50 | - name: vcli |
Matteo Scandolo | f6c28df | 2018-05-08 11:44:05 -0700 | [diff] [blame] | 51 | image: {{ .Values.vcliImage }} |
| 52 | imagePullPolicy: {{ .Values.imagePullPolicy }} |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 53 | 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 Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 67 | |
| 68 | |