Richard Jankowski | c9d8920 | 2018-01-25 10:25:10 -0500 | [diff] [blame] | 1 | apiVersion: apps/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | name: ofagent |
| 5 | spec: |
| 6 | replicas: 3 |
| 7 | template: |
| 8 | metadata: |
| 9 | labels: |
| 10 | app: ofagent |
| 11 | spec: |
| 12 | terminationGracePeriodSeconds: 10 |
| 13 | affinity: |
| 14 | podAntiAffinity: |
| 15 | requiredDuringSchedulingIgnoredDuringExecution: |
| 16 | - labelSelector: |
| 17 | matchExpressions: |
| 18 | - key: app |
| 19 | operator: In |
| 20 | values: |
| 21 | - ofagent |
| 22 | topologyKey: kubernetes.io/hostname |
| 23 | containers: |
| 24 | - name: ofagent |
Richard Jankowski | c3c291c | 2018-02-02 13:57:33 -0500 | [diff] [blame] | 25 | image: voltha-ofagent |
Richard Jankowski | c9d8920 | 2018-01-25 10:25:10 -0500 | [diff] [blame] | 26 | imagePullPolicy: Never |
| 27 | env: |
| 28 | - name: NAMESPACE |
| 29 | valueFrom: |
| 30 | fieldRef: |
| 31 | fieldPath: metadata.namespace |
| 32 | args: |
| 33 | - "/ofagent/ofagent/main.py" |
| 34 | - "-v" |
| 35 | - "--consul=consul.$(NAMESPACE).svc.cluster.local:8500" |
| 36 | - "--fluentd=fluentd.$(NAMESPACE).svc.cluster.local:24224" |
| 37 | - "--controller=onos:6653" |
| 38 | - "--grpc-endpoint=vcore.$(NAMESPACE).svc.cluster.local:50556" |
| 39 | - "--enable-tls" |
| 40 | - "--key-file=/ofagent/pki/voltha.key" |
| 41 | - "--cert-file=/ofagent/pki/voltha.crt" |