David Bainbridge | 2f9b76f | 2019-05-15 13:48:11 -0700 | [diff] [blame^] | 1 | # Copyright 2019-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 | --- |
| 16 | apiVersion: apps/v1beta1 |
| 17 | kind: Deployment |
| 18 | metadata: |
| 19 | name: ofagent |
| 20 | serviceAccountName: {{ .Values.serviceaccount }} |
| 21 | spec: |
| 22 | replicas: {{ .Values.replicas.ofagent }} |
| 23 | template: |
| 24 | metadata: |
| 25 | labels: |
| 26 | app: ofagent |
| 27 | annotations: |
| 28 | cni: "calico" |
| 29 | spec: |
| 30 | terminationGracePeriodSeconds: 10 |
| 31 | serviceAccountName: {{ .Values.serviceaccount }} |
| 32 | containers: |
| 33 | - name: ofagent |
| 34 | image: {{ .Values.registry }}{{ .Values.images.ofagent.repository }}:{{ tpl .Values.images.ofagent.tag . }} |
| 35 | imagePullPolicy: {{ .Values.images.ofagent.pullPolicy }} |
| 36 | env: |
| 37 | - name: CONTROLLER_SERVICE |
| 38 | value: "{{ .Values.services.controller.service }}:{{ .Values.services.controller.port }}" |
| 39 | args: |
| 40 | - "/ofagent/ofagent/main.py" |
| 41 | - "-v" |
| 42 | - "--controller=$(CONTROLLER_SERVICE)" |
| 43 | - "--grpc-endpoint=voltha-api.{{ .Release.Namespace }}.svc.cluster.local:55555" |