Remove namespace and assign in Jenkinsfile
Change-Id: I11a2a636375000fc18b00e26d10afe5b04f4ebc3
diff --git a/mcord/mcord-control-plane/templates/mme.yaml b/mcord/mcord-control-plane/templates/mme.yaml
index 7b85e55..2f2ebd4 100644
--- a/mcord/mcord-control-plane/templates/mme.yaml
+++ b/mcord/mcord-control-plane/templates/mme.yaml
@@ -17,7 +17,6 @@
apiVersion: v1
kind: Service
metadata:
- namespace: {{ .Values.namespace }}
name: mme
spec:
selector:
@@ -37,7 +36,6 @@
apiVersion: apps/v1
kind: StatefulSet
metadata:
- namespace: {{ .Values.namespace }}
name: mme
labels:
app: mme
@@ -49,7 +47,6 @@
serviceName: "mme"
template:
metadata:
- namespace: {{ .Values.namespace }}
labels:
app: mme
spec:
@@ -65,7 +62,7 @@
- NET_ADMIN
args:
- iptables -A OUTPUT -p sctp --sport {{ .Values.mme.ports.s1ap }} --chunk-types any ABORT -j DROP;
- until nslookup hss-0.hss.{{ .Values.namespace }}.svc.cluster.local;
+ until nslookup hss;
do echo waiting for hss; sleep 2; done;
containers:
- name: mme
@@ -73,7 +70,7 @@
imagePullPolicy: Always
env:
- name: SGW_S11_IP
- value: ngic-0.ngic-cp.{{ .Values.namespace }}.svc.cluster.local
+ value: ngic-cp
- name: MME_ETH0_IP
valueFrom:
fieldRef:
@@ -83,11 +80,11 @@
- name: ENB_S1AP_PORT
value: "{{ .Values.mme.ports.s1ap }}" #ng4t uses 32767
- name: CONNECT_PEER
- value: hss-0.hss.{{ .Values.namespace }}.svc.cluster.local
+ value: hss
- name: VAR_HSS_REALM
- value: hss.{{ .Values.namespace }}.svc.cluster.local
+ value: hss
- name: HSS_S6A_IP
- value: hss-0.hss.{{ .Values.namespace }}.svc.cluster.local
+ value: hss
- name: HSS_PORT
value: "{{ .Values.mme.ports.s6a }}"
stdin: true