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: |
| 13 | cni: "weave" |
Richard Jankowski | c9d8920 | 2018-01-25 10:25:10 -0500 | [diff] [blame] | 14 | spec: |
| 15 | terminationGracePeriodSeconds: 10 |
| 16 | affinity: |
| 17 | podAntiAffinity: |
| 18 | requiredDuringSchedulingIgnoredDuringExecution: |
| 19 | - labelSelector: |
| 20 | matchExpressions: |
| 21 | - key: app |
| 22 | operator: In |
| 23 | values: |
| 24 | - ofagent |
| 25 | topologyKey: kubernetes.io/hostname |
| 26 | containers: |
| 27 | - name: ofagent |
Richard Jankowski | c3c291c | 2018-02-02 13:57:33 -0500 | [diff] [blame] | 28 | image: voltha-ofagent |
Richard Jankowski | c9d8920 | 2018-01-25 10:25:10 -0500 | [diff] [blame] | 29 | imagePullPolicy: Never |
| 30 | env: |
| 31 | - name: NAMESPACE |
| 32 | valueFrom: |
| 33 | fieldRef: |
| 34 | fieldPath: metadata.namespace |
| 35 | args: |
| 36 | - "/ofagent/ofagent/main.py" |
| 37 | - "-v" |
| 38 | - "--consul=consul.$(NAMESPACE).svc.cluster.local:8500" |
Richard Jankowski | c9d8920 | 2018-01-25 10:25:10 -0500 | [diff] [blame] | 39 | - "--controller=onos:6653" |
| 40 | - "--grpc-endpoint=vcore.$(NAMESPACE).svc.cluster.local:50556" |
| 41 | - "--enable-tls" |
| 42 | - "--key-file=/ofagent/pki/voltha.key" |
| 43 | - "--cert-file=/ofagent/pki/voltha.crt" |