Richard Jankowski | d7921b7 | 2018-02-20 16:55:12 -0500 | [diff] [blame] | 1 | apiVersion: apps/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | name: ofagent |
| 5 | namespace: voltha |
| 6 | spec: |
| 7 | replicas: 1 |
| 8 | template: |
| 9 | metadata: |
| 10 | labels: |
| 11 | app: ofagent |
| 12 | annotations: |
| 13 | cni: "weave" |
| 14 | spec: |
| 15 | terminationGracePeriodSeconds: 10 |
| 16 | containers: |
| 17 | - name: ofagent |
| 18 | image: voltha-ofagent |
| 19 | imagePullPolicy: Never |
| 20 | env: |
| 21 | - name: NAMESPACE |
| 22 | valueFrom: |
| 23 | fieldRef: |
| 24 | fieldPath: metadata.namespace |
| 25 | args: |
| 26 | - "/ofagent/ofagent/main.py" |
| 27 | - "-v" |
| 28 | - "--consul=consul.$(NAMESPACE).svc.cluster.local:8500" |
Richard Jankowski | d7921b7 | 2018-02-20 16:55:12 -0500 | [diff] [blame] | 29 | - "--controller=onos:6653" |
| 30 | - "--grpc-endpoint=vcore.$(NAMESPACE).svc.cluster.local:50556" |
| 31 | - "--enable-tls" |
| 32 | - "--key-file=/ofagent/pki/voltha.key" |
| 33 | - "--cert-file=/ofagent/pki/voltha.crt" |