Using centralip to get IP address from etcd
Change-Id: I9786f02efb400559748dc394fa27105c1fcde0fb
diff --git a/mcord/cni-config/03-network-definition.yaml b/mcord/cni-config/03-network-definition.yaml
index 5b0b62f..719dd79 100644
--- a/mcord/cni-config/03-network-definition.yaml
+++ b/mcord/cni-config/03-network-definition.yaml
@@ -25,11 +25,10 @@
"type": "sriov",
"name": "s1u-net",
"ipam": {
- "type": "host-local",
- "subnet": "119.0.0.0/24",
- "routes": [
- { "dst": "0.0.0.0/0" }
- ]
+ "type": "centralip",
+ "ipType": "cluster",
+ "etcdURL": "http://node1:32379",
+ "network": "119.0.0.0/24"
}
}'
---
@@ -44,10 +43,9 @@
"type": "sriov",
"name": "sgi-net",
"ipam": {
- "type": "host-local",
- "subnet": "13.1.1.0/24",
- "routes": [
- { "dst": "0.0.0.0/0" }
- ]
+ "type": "centralip",
+ "ipType": "cluster",
+ "etcdURL": "http://node1:32379",
+ "network": "13.1.1.0/24"
}
}'
diff --git a/mcord/mcord-control-plane/templates/mme.yaml b/mcord/mcord-control-plane/templates/mme.yaml
index ea92acd..476265a 100644
--- a/mcord/mcord-control-plane/templates/mme.yaml
+++ b/mcord/mcord-control-plane/templates/mme.yaml
@@ -22,7 +22,7 @@
spec:
selector:
app: mme
- type: NodePort
+ clusterIP: None
ports:
- name: s11
port: {{ .Values.mme.ports.s11 }}