Deploy loadbalancer service opening UEB port 41/29041/3
authorAlexis de Talhouët <adetalhouet89@gmail.com>
Wed, 24 Jan 2018 15:03:01 +0000 (10:03 -0500)
committerAlexis de Talhouët <alexis.de_talhouet@bell.ca>
Wed, 24 Jan 2018 16:36:56 +0000 (16:36 +0000)
With the support of DCAE added lately, some change was done
to accomadate the resolution of some ONAP service for DCAE.
Among other things, UEB configuration in SDC is now using
external resolution, no longer the internal K8S one. Hence
for deployement not deploying DCAEGEN2, we still have to deploy
the loadblancer service.

Change-Id: I93d0c01920755beed3eeb05d158530c05c255383
Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
Issue-ID: OOM-608

kubernetes/config/docker/init/config-init.sh
kubernetes/config/values.yaml
kubernetes/dcaegen2/templates/nginx-dep.yaml
kubernetes/dcaegen2/templates/nginx-service.yaml

index 3ce1942..8eebab1 100755 (executable)
@@ -255,12 +255,12 @@ then
     else
         find /config-init/$NAMESPACE/dcaegen2/heat/ -type f -exec sed -i -e "s,DCAE_FINAL_KEYSTONE_URL_HERE,$DCAE_OS_KEYSTONE_URL/$DCAE_OS_API_VERSION,g" {} \;
     fi
-
-    # Install kube-dns ip in the nginx conf
-    KUBE_DNS_IP=`kubectl get service -n kube-system kube-dns -o jsonpath='{.spec.clusterIP}'`
-    find /config-init/$NAMESPACE/dcaegen2/nginx/ -type f -exec sed -i -e "s/KUBE_DNS_IP_HERE/$KUBE_DNS_IP/g" {} \;
 fi
 
+# Install kube-dns ip in the nginx conf
+KUBE_DNS_IP=`kubectl get service -n kube-system kube-dns -o jsonpath='{.spec.clusterIP}'`
+find /config-init/$NAMESPACE/dcaegen2/nginx/ -type f -exec sed -i -e "s/KUBE_DNS_IP_HERE/$KUBE_DNS_IP/g" {} \;
+
 # Inject node ip for UEB config
 # There is actually two places where we need to inject this list, and one required to list to be comma seperated and quote separated,
 # and one requires to be only quote seperated.
index 6d0352f..7c76260 100644 (file)
@@ -3,5 +3,5 @@ nsPrefix: onap
 dockerSharePath: /dockerdata-nfs
 image:
   repository: oomk8s/config-init
-  tag: 1.1.6
+  tag: 1.1.7
   pullPolicy: Always
index 7d8832c..1809285 100644 (file)
@@ -1,4 +1,3 @@
-#{{ if not .Values.disableDcae }}
 apiVersion: extensions/v1beta1
 kind: Deployment
 metadata:
@@ -49,5 +48,4 @@ spec:
           hostPath:
             path: /dockerdata-nfs/{{ .Values.nsPrefix }}/dcaegen2/nginx/certs
       imagePullSecrets:
-      - name: "{{ .Values.nsPrefix }}-docker-registry-key"
-#{{ end }}
+      - name: "{{ .Values.nsPrefix }}-docker-registry-key"
\ No newline at end of file
index 21dbb04..ce16001 100644 (file)
@@ -1,4 +1,3 @@
-#{{ if not .Values.disableDcae }}
 apiVersion: v1
 kind: Service
 metadata:
@@ -35,5 +34,4 @@ spec:
   selector:
     app: nginx
   type: LoadBalancer
-  externalTrafficPolicy: Local
-#{{ end }}
\ No newline at end of file
+  externalTrafficPolicy: Local
\ No newline at end of file