Zack Williams | 41513bf | 2018-07-07 20:08:35 -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. |
Richard Jankowski | c9d8920 | 2018-01-25 10:25:10 -0500 | [diff] [blame] | 14 | apiVersion: apps/v1beta1 |
| 15 | kind: Deployment |
| 16 | metadata: |
| 17 | name: ofagent |
Richard Jankowski | d445438 | 2018-02-08 16:21:43 -0500 | [diff] [blame] | 18 | namespace: voltha |
Richard Jankowski | c9d8920 | 2018-01-25 10:25:10 -0500 | [diff] [blame] | 19 | spec: |
| 20 | replicas: 3 |
| 21 | template: |
| 22 | metadata: |
| 23 | labels: |
| 24 | app: ofagent |
Stephane Barbarie | 5e8d9e4 | 2018-02-07 16:15:05 -0500 | [diff] [blame] | 25 | annotations: |
Stephane Barbarie | 2d4e07f | 2018-03-26 16:46:45 -0400 | [diff] [blame] | 26 | cni: "calico" |
Richard Jankowski | c9d8920 | 2018-01-25 10:25:10 -0500 | [diff] [blame] | 27 | spec: |
| 28 | terminationGracePeriodSeconds: 10 |
Richard Jankowski | c9d8920 | 2018-01-25 10:25:10 -0500 | [diff] [blame] | 29 | containers: |
| 30 | - name: ofagent |
Richard Jankowski | c3c291c | 2018-02-02 13:57:33 -0500 | [diff] [blame] | 31 | image: voltha-ofagent |
Richard Jankowski | c9d8920 | 2018-01-25 10:25:10 -0500 | [diff] [blame] | 32 | imagePullPolicy: Never |
| 33 | env: |
| 34 | - name: NAMESPACE |
| 35 | valueFrom: |
| 36 | fieldRef: |
| 37 | fieldPath: metadata.namespace |
| 38 | args: |
| 39 | - "/ofagent/ofagent/main.py" |
| 40 | - "-v" |
| 41 | - "--consul=consul.$(NAMESPACE).svc.cluster.local:8500" |
Richard Jankowski | c9d8920 | 2018-01-25 10:25:10 -0500 | [diff] [blame] | 42 | - "--controller=onos:6653" |
| 43 | - "--grpc-endpoint=vcore.$(NAMESPACE).svc.cluster.local:50556" |
| 44 | - "--enable-tls" |
| 45 | - "--key-file=/ofagent/pki/voltha.key" |
| 46 | - "--cert-file=/ofagent/pki/voltha.crt" |