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