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: vcore |
| 19 | namespace: {{ .Values.global.namespace }} |
| 20 | serviceAccountName: {{ .Values.global.namespace }}-serviceaccount |
| 21 | labels: |
| 22 | name: vcore |
| 23 | spec: |
| 24 | clusterIP: None |
| 25 | ports: |
| 26 | - name: rest |
| 27 | port: 8880 |
| 28 | targetPort: 8880 |
| 29 | - name: mystery |
| 30 | port: 18880 |
| 31 | targetPort: 18880 |
| 32 | - name: grpc |
| 33 | port: 50556 |
| 34 | targetPort: 50556 |
| 35 | selector: |
| 36 | app: vcore |
| 37 | --- |
Gopinath Taget | 7f357cf | 2018-07-03 12:34:38 -0700 | [diff] [blame] | 38 | apiVersion: apps/v1 |
| 39 | kind: StatefulSet |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 40 | metadata: |
| 41 | name: vcore |
| 42 | namespace: {{ .Values.global.namespace }} |
| 43 | serviceAccountName: {{ .Values.global.namespace }}-serviceaccount |
| 44 | spec: |
Gopinath Taget | 7f357cf | 2018-07-03 12:34:38 -0700 | [diff] [blame] | 45 | serviceName: vcore |
Gopinath Taget | fff8934 | 2018-04-16 12:12:17 -0700 | [diff] [blame] | 46 | replicas: {{ .Values.replicas.vcore }} |
Gopinath Taget | 7f357cf | 2018-07-03 12:34:38 -0700 | [diff] [blame] | 47 | updateStrategy: |
| 48 | type: RollingUpdate |
| 49 | selector: |
| 50 | matchLabels: |
| 51 | app: vcore |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 52 | template: |
| 53 | metadata: |
| 54 | labels: |
| 55 | app: vcore |
| 56 | annotations: |
Gopinath Taget | 7f357cf | 2018-07-03 12:34:38 -0700 | [diff] [blame] | 57 | cni: "calico" |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 58 | spec: |
Gopinath Taget | 7f357cf | 2018-07-03 12:34:38 -0700 | [diff] [blame] | 59 | terminationGracePeriodSeconds: 0 |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 60 | serviceAccountName: {{ .Values.global.namespace }}-serviceaccount |
| 61 | containers: |
| 62 | - name: voltha |
Matteo Scandolo | f6c28df | 2018-05-08 11:44:05 -0700 | [diff] [blame] | 63 | image: {{ .Values.vcoreImage }} |
| 64 | imagePullPolicy: {{ .Values.imagePullPolicy }} |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 65 | env: |
| 66 | - name: NAMESPACE |
| 67 | valueFrom: |
| 68 | fieldRef: |
| 69 | fieldPath: metadata.namespace |
| 70 | args: |
Gopinath Taget | 5e49fe3 | 2018-06-25 17:02:05 -0700 | [diff] [blame] | 71 | {{ include "voltha-vcore.cmd" . | indent 12 }} |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 72 | ports: |
| 73 | - containerPort: 8880 |
| 74 | name: rest-port |
| 75 | - containerPort: 18880 |
| 76 | name: mystery-port |
| 77 | - containerPort: 50556 |
| 78 | name: grpc-port |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 79 | |
| 80 | |