Make Voltha envoy service a node port
Change-Id: I2e240a6e8f08340b1a0cc46f920e12c60b020d7a
diff --git a/voltha/templates/envoy_for_etcd.yaml b/voltha/templates/envoy_for_etcd.yaml
index 38e9585..59bacdb 100644
--- a/voltha/templates/envoy_for_etcd.yaml
+++ b/voltha/templates/envoy_for_etcd.yaml
@@ -21,20 +21,8 @@
labels:
name: voltha
spec:
- clusterIP: None
- ports:
- - name: rest
- port: 8882
- targetPort: 8882
- - name: mystery
- port: 8001
- targetPort: 8001
- - name: mystery2
- port: 8443
- targetPort: 8443
- - name: grpc
- port: 50555
- targetPort: 50555
+ type: {{ .Values.services.envoy.serviceType }}
+{{ toYaml .Values.services.envoy.serviceInfo | indent 2 }}
selector:
app: voltha
---
diff --git a/voltha/values.yaml b/voltha/values.yaml
index 13b23c5..3c13bc8 100644
--- a/voltha/values.yaml
+++ b/voltha/values.yaml
@@ -28,6 +28,25 @@
node_ports:
vcli_port: 30110
+services:
+ envoy:
+ serviceType: NodePort
+ serviceInfo:
+ ports:
+ - name: rest
+ port: 8882
+ targetPort: 8882
+ nodePort: 30125
+ - name: mystery
+ port: 8001
+ targetPort: 8001
+ - name: mystery2
+ port: 8443
+ targetPort: 8443
+ - name: grpc
+ port: 50555
+ targetPort: 50555
+
etcd-operator:
customResources:
createEtcdClusterCRD: true