Implement M-CORD Services in Multi-cluster's configuration
Change-Id: Ie7b6cf0c4d010edd75efd4049bc8ac8fbb41cfc4
diff --git a/mcord/mcord-control-plane/templates/cp.yaml b/mcord/mcord-control-plane/templates/cp.yaml
index 35fbe20..2197347 100644
--- a/mcord/mcord-control-plane/templates/cp.yaml
+++ b/mcord/mcord-control-plane/templates/cp.yaml
@@ -31,6 +31,20 @@
port: {{ .Values.ngic_cp.ports.sx }}
protocol: UDP
---
+apiVersion: v1
+kind: Service
+metadata:
+ name: ngic-cp-external
+spec:
+ selector:
+ app: ngic-cp
+ type: NodePort
+ ports:
+ - name: sx
+ port: {{ .Values.ngic_cp.ports.sx }}
+ nodePort: {{ .Values.ngic_cp.ports.sx_external }}
+ protocol: UDP
+---
apiVersion: apps/v1
kind: StatefulSet
metadata:
@@ -48,6 +62,8 @@
labels:
app: ngic-cp
spec:
+ nodeSelector:
+ kubernetes.io/hostname: "node2"
initContainers:
- name: init-iptables
image: {{ .Values.ngic_cp.images.init }}