Richard Jankowski | bbe1e09 | 2018-01-18 13:48:20 -0500 | [diff] [blame] | 1 | apiVersion: v1 |
| 2 | kind: Service |
| 3 | metadata: |
| 4 | name: netconf |
| 5 | spec: |
| 6 | selector: |
| 7 | app: netconf |
| 8 | clusterIP: None |
| 9 | ports: |
| 10 | - port: 830 |
| 11 | targetPort: 830 |
| 12 | --- |
| 13 | apiVersion: apps/v1beta1 |
| 14 | kind: Deployment |
| 15 | metadata: |
| 16 | name: netconf |
| 17 | spec: |
| 18 | replicas: 3 |
| 19 | template: |
| 20 | metadata: |
| 21 | labels: |
| 22 | app: netconf |
| 23 | spec: |
| 24 | terminationGracePeriodSeconds: 10 |
| 25 | affinity: |
| 26 | podAntiAffinity: |
| 27 | requiredDuringSchedulingIgnoredDuringExecution: |
| 28 | - labelSelector: |
| 29 | matchExpressions: |
| 30 | - key: app |
| 31 | operator: In |
| 32 | values: |
| 33 | - netconf |
| 34 | topologyKey: kubernetes.io/hostname |
| 35 | containers: |
| 36 | - name: netconf |
Richard Jankowski | c3c291c | 2018-02-02 13:57:33 -0500 | [diff] [blame] | 37 | image: voltha-netconf |
Richard Jankowski | bbe1e09 | 2018-01-18 13:48:20 -0500 | [diff] [blame] | 38 | imagePullPolicy: Never |
| 39 | ports: |
| 40 | - containerPort: 830 |
| 41 | env: |
| 42 | - name: NETCONF_PORT |
| 43 | value: "830" |
| 44 | args: |
| 45 | - "/netconf/netconf/main.py" |
| 46 | - "-v" |
| 47 | - "--consul=consul:8500" |
| 48 | - "--fluentd=fluentd:24224" |
| 49 | - "--grpc-endpoint=voltha:50555" |