Richard Jankowski | c9d8920 | 2018-01-25 10:25:10 -0500 | [diff] [blame] | 1 | apiVersion: apps/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | name: ofagent |
Richard Jankowski | d445438 | 2018-02-08 16:21:43 -0500 | [diff] [blame] | 5 | namespace: voltha |
Richard Jankowski | c9d8920 | 2018-01-25 10:25:10 -0500 | [diff] [blame] | 6 | spec: |
| 7 | replicas: 3 |
| 8 | template: |
| 9 | metadata: |
| 10 | labels: |
| 11 | app: ofagent |
Stephane Barbarie | 5e8d9e4 | 2018-02-07 16:15:05 -0500 | [diff] [blame] | 12 | annotations: |
Stephane Barbarie | 2d4e07f | 2018-03-26 16:46:45 -0400 | [diff] [blame] | 13 | cni: "calico" |
Richard Jankowski | c9d8920 | 2018-01-25 10:25:10 -0500 | [diff] [blame] | 14 | spec: |
| 15 | terminationGracePeriodSeconds: 10 |
Richard Jankowski | c9d8920 | 2018-01-25 10:25:10 -0500 | [diff] [blame] | 16 | containers: |
| 17 | - name: ofagent |
Richard Jankowski | c3c291c | 2018-02-02 13:57:33 -0500 | [diff] [blame] | 18 | image: voltha-ofagent |
Richard Jankowski | c9d8920 | 2018-01-25 10:25:10 -0500 | [diff] [blame] | 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 | c9d8920 | 2018-01-25 10:25:10 -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" |