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 |
Stephane Barbarie | 5e8d9e4 | 2018-02-07 16:15:05 -0500 | [diff] [blame] | 11 | annotations: |
| 12 | cni: "weave" |
Richard Jankowski | c9d8920 | 2018-01-25 10:25:10 -0500 | [diff] [blame] | 13 | spec: |
| 14 | terminationGracePeriodSeconds: 10 |
| 15 | affinity: |
| 16 | podAntiAffinity: |
| 17 | requiredDuringSchedulingIgnoredDuringExecution: |
| 18 | - labelSelector: |
| 19 | matchExpressions: |
| 20 | - key: app |
| 21 | operator: In |
| 22 | values: |
| 23 | - ofagent |
| 24 | topologyKey: kubernetes.io/hostname |
| 25 | containers: |
| 26 | - name: ofagent |
Richard Jankowski | c3c291c | 2018-02-02 13:57:33 -0500 | [diff] [blame] | 27 | image: voltha-ofagent |
Richard Jankowski | c9d8920 | 2018-01-25 10:25:10 -0500 | [diff] [blame] | 28 | imagePullPolicy: Never |
| 29 | env: |
| 30 | - name: NAMESPACE |
| 31 | valueFrom: |
| 32 | fieldRef: |
| 33 | fieldPath: metadata.namespace |
| 34 | args: |
| 35 | - "/ofagent/ofagent/main.py" |
| 36 | - "-v" |
| 37 | - "--consul=consul.$(NAMESPACE).svc.cluster.local:8500" |
| 38 | - "--fluentd=fluentd.$(NAMESPACE).svc.cluster.local:24224" |
| 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" |