Merge "Drop the submodule nexus-repository-helm"
authorZhe Huang <zhehuang@research.att.com>
Mon, 29 Jul 2019 18:19:05 +0000 (18:19 +0000)
committerGerrit Code Review <gerrit@o-ran-sc.org>
Mon, 29 Jul 2019 18:19:05 +0000 (18:19 +0000)
37 files changed:
RECIPE_EXAMPLE/RIC_AUX_RECIPE_EXAMPLE
RECIPE_EXAMPLE/RIC_PLATFORM_RECIPE_EXAMPLE
ric-aux/80-Auxiliary-Functions/helm/dashboard/templates/appconfig.yaml
ric-aux/80-Auxiliary-Functions/helm/dashboard/templates/deployment.yaml
ric-aux/80-Auxiliary-Functions/helm/dashboard/templates/service.yaml
ric-aux/80-Auxiliary-Functions/helm/dashboard/values.yaml
ric-aux/80-Auxiliary-Functions/helm/kong-aux/values.yaml
ric-aux/80-Auxiliary-Functions/helm/ves/templates/ingress-ves.yaml
ric-aux/80-Auxiliary-Functions/helm/ves/templates/ves-deployment.yaml
ric-aux/80-Auxiliary-Functions/helm/ves/templates/ves-service.yaml
ric-aux/85-Ext-Services/bin/install
ric-aux/85-Ext-Services/bin/uninstall
ric-aux/85-Ext-Services/helm/extsvcaux/Chart.yaml [moved from ric-aux/85-Ext-Services/helm/ext/Chart.yaml with 86% similarity]
ric-aux/85-Ext-Services/helm/extsvcaux/requirements.yaml [moved from ric-aux/85-Ext-Services/helm/ext/requirements.yaml with 100% similarity]
ric-aux/85-Ext-Services/helm/extsvcaux/templates/services-docker.yaml [moved from ric-platform/55-Ext-Services/helm/ext/templates/services-docker.yaml with 98% similarity]
ric-aux/85-Ext-Services/helm/extsvcaux/templates/services-helm.yaml [moved from ric-platform/55-Ext-Services/helm/ext/templates/services-helm.yaml with 98% similarity]
ric-aux/85-Ext-Services/helm/extsvcaux/templates/services-platform.yaml [moved from ric-aux/85-Ext-Services/helm/ext/templates/services-platform.yaml with 98% similarity]
ric-aux/85-Ext-Services/helm/extsvcaux/templates/services-xapp.yaml [moved from ric-aux/85-Ext-Services/helm/ext/templates/services-xapp.yaml with 98% similarity]
ric-aux/85-Ext-Services/helm/extsvcaux/values.yaml [moved from ric-aux/85-Ext-Services/helm/ext/values.yaml with 89% similarity]
ric-common/Common-Template/helm/ric-common/templates/_ingresscontroller.tpl
ric-infra/00-Kubernetes/heat/scripts/k8s_vm_install.sh
ric-infra/10-Nexus/bin/install
ric-infra/15-Chartmuseum/bin/install
ric-platform/50-RIC-Platform/helm/kong-platform/values.yaml
ric-platform/55-Ext-Services/bin/install
ric-platform/55-Ext-Services/bin/uninstall
ric-platform/55-Ext-Services/helm/extsvcplt/Chart.yaml [moved from ric-platform/55-Ext-Services/helm/ext/Chart.yaml with 86% similarity]
ric-platform/55-Ext-Services/helm/extsvcplt/requirements.yaml [moved from ric-platform/55-Ext-Services/helm/ext/requirements.yaml with 100% similarity]
ric-platform/55-Ext-Services/helm/extsvcplt/templates/services-aux.yaml [moved from ric-platform/55-Ext-Services/helm/ext/templates/services-aux.yaml with 97% similarity]
ric-platform/55-Ext-Services/helm/extsvcplt/templates/services-docker.yaml [moved from ric-aux/85-Ext-Services/helm/ext/templates/services-docker.yaml with 98% similarity]
ric-platform/55-Ext-Services/helm/extsvcplt/templates/services-helm.yaml [moved from ric-aux/85-Ext-Services/helm/ext/templates/services-helm.yaml with 98% similarity]
ric-platform/55-Ext-Services/helm/extsvcplt/values.yaml [moved from ric-platform/55-Ext-Services/helm/ext/values.yaml with 89% similarity]
ric-xapps/90-xApps/bin/install
ric-xapps/90-xApps/helm/xapp-std/templates/appconfig.yaml
ric-xapps/90-xApps/helm/xapp-std/templates/deployment.yaml
ric-xapps/90-xApps/helm/xapp-std/templates/service-rmr.yaml
ric-xapps/90-xApps/helm/xapp-std/values.yaml

index f1a6290..68c8e74 100644 (file)
@@ -70,6 +70,10 @@ dashboard:
       mock:
         rannames: "ABCD123456, EFGH123456"
 
-ext:
-  ip:
-    192.168.130.110
+extsvcaux:
+  ricip:
+    # The ip address of the ric cluster ingress controller
+    <IP_ADDRESS of the RIC cluster>
+  auxip:
+    # The ip address of the aux cluster ingress controller
+    <IP_ADDRESS of the AUX cluster>
index cf40fa5..d883d05 100644 (file)
@@ -131,7 +131,10 @@ submgr:
     tag: v0.1.0
 
 # the service for redirecting to AUX cluster
-ext:
-  ip:
+extsvcplt:
+  auxip:
     # The ip address of the aux cluster ingress controller
-    IP_ADDRESS
+    <IP_ADDRESS of the AUX cluster>
+  ricip:
+    # The ip address of the ric cluster ingress controller
+    <IP_ADDRESS of the RIC cluster>
index e6358c5..b2ec787 100644 (file)
@@ -25,7 +25,7 @@ data:
   # this key becomes the filename when mounted
   application.properties: |
     # appconfig.yaml
-    server.port = {{ .Values.dashboard.service.http.containerPort }}
+    server.port = {{ include "common.serviceport.dashboard.container" . }}
     a1med.url.prefix =   {{ include "dashboard.prefix.a1mediator" . }}
     a1med.url.suffix =   {{ .Values.dashboard.properties.a1med.url.suffix   }}
     anrxapp.url.prefix = {{ include "dashboard.prefix.anrxapp" . }}
index adacef2..efe0106 100644 (file)
@@ -46,7 +46,7 @@ spec:
           imagePullPolicy: {{ include "common.pullPolicy" . }}
           ports:
             - name: http
-              containerPort: {{ .Values.dashboard.service.http.containerPort }}
+              containerPort: {{ include "common.serviceport.dashboard.container" . }}
               protocol: TCP
           volumeMounts:
             - name: application-config
index b35e408..88dc203 100644 (file)
@@ -28,10 +28,10 @@ metadata:
 spec:
   type: NodePort
   ports:
-    - port: {{ .Values.dashboard.service.http.containerPort }}
-      nodePort: {{ .Values.dashboard.service.http.nodeport }}
-      targetPort: http
-      protocol: TCP
+    - port: {{ include "common.serviceport.dashboard.container" . }}
+      nodePort: {{ include "common.serviceport.dashboard.http" . }}
+      protocol: "TCP"
+      targetPort: "http"
   selector:
     app: {{ include "common.namespace.aux" . }}-{{ include "common.name.dashboard" . }}
     release: {{ .Release.Name }}
index 77a3a5c..45dc0a1 100644 (file)
@@ -26,11 +26,12 @@ dashboard:
     name: ric-dashboard
     tag: 1.2.0
   replicaCount: 1
-  service:
-    http:
-      nodeport: 30080
-      # Tomcat listens here
-      containerPort: 8080
+
+  # Service ports are now defined in 
+  # ric-common/Common-Template/helm/ric-common/templates/_ports.tpl file.
+  # If need to change a service port, make the code change necessary, then
+  # update the _ports.tpl file with the new port number.
+
   # config URLs must be specified at deployment
   properties:
     # The URL prefixes use K8S/Kong service names
index f55709b..02d9719 100644 (file)
@@ -16,4 +16,9 @@ kong:
     http:
       nodePort: 32080
     tls:
-      nodePort: 32443
\ No newline at end of file
+      nodePort: 32443
+  # These port numbers MUST matche with what's in
+  # ric-common/Common-Template/helm/ric-common/templates/_ingresscontroller.tpl file.
+  # If need to change a proxy port here, do not forget to update the 
+  # _ingresscontroller.tpl file with the new port number.
+
index 7a91f7d..6db96de 100644 (file)
@@ -9,4 +9,4 @@ spec:
       - path: /vescollector
         backend:
           serviceName: xdcae-ves-collector
-          servicePort: 8080
+          servicePort: {{ include "common.serviceport.ves.http.container" . }}
index e730cf6..6d79ac7 100644 (file)
@@ -58,9 +58,9 @@ spec:
       - name: {{ include "common.namespace" . }}-{{include "common.name" . }}\r
         image: {{ .Values.ves.onapRepository }}/{{ .Values.ves.image.name }}:{{ .Values.ves.image.tag }}\r
         ports:\r
-        - containerPort: 8080\r
+        - containerPort: {{ include "common.serviceport.ves.http.container" . }}\r
           protocol: TCP\r
-        - containerPort: 8443\r
+        - containerPort: {{ include "common.serviceport.ves.https.container" . }}\r
           protocol: TCP\r
         env:\r
         - name: CONSUL_HOST\r
@@ -82,7 +82,7 @@ spec:
         readinessProbe:\r
           httpGet:\r
             path: "/healthcheck"\r
-            port: 8080\r
+            port: {{ include "common.serviceport.ves.http.container" . }}\r
             scheme: HTTP\r
           initialDelaySeconds: 5\r
           timeoutSeconds: 1\r
index 718cd41..cc66510 100644 (file)
@@ -30,14 +30,14 @@ spec:
   ports:\r
   - name: xport-t-8080\r
     protocol: TCP\r
-    port: 8080\r
-    targetPort: 8080\r
-    nodePort: 30235\r
+    port: {{ include "common.serviceport.ves.http.container" . }}\r
+    targetPort: {{ include "common.serviceport.ves.http.container" . }}\r
+    nodePort: {{ include "common.serviceport.ves.http" . }}\r
   - name: xport-t-8443\r
     protocol: TCP\r
-    port: 8443\r
-    targetPort: 8443\r
-    nodePort: 30417\r
+    port: {{ include "common.serviceport.ves.https.container" . }}\r
+    targetPort: {{ include "common.serviceport.ves.https.container" . }}\r
+    nodePort: {{ include "common.serviceport.ves.https" . }}\r
   selector:\r
     app: dcae-ves-collector\r
   type: NodePort\r
index 39ca0ea..59f01ca 100755 (executable)
@@ -58,7 +58,7 @@ else
    COMMON_OVERRIDE=$RIC_COMMON_OVERRIDE
 fi
 
-RICAUX_COMPONENTS="ext"
+RICAUX_COMPONENTS="extsvcaux"
 
 echo "Deploying RIC AUX components [$RICAUX_COMPONENTS]"
 echo "Helm Release Name: $RELEASE_NAME"
index fd51c57..ad8dac6 100755 (executable)
@@ -30,7 +30,7 @@ else
    RELEASE_NAME=$RICAUX_RELEASE_NAME
 fi
 
-RICAUX_COMPONENTS="ext"
+RICAUX_COMPONENTS="extsvcaux"
 
 echo "Undeploying RIC AUX components [$RICAUX_COMPONENTS]"
 echo "Helm Release Name: $RELEASE_NAME"
@@ -17,7 +17,7 @@
 
 apiVersion: v1
 appVersion: "1.0"
-description: A Helm chart for setting up external endpoints as k8s services
-name: ext
-version: 0.1.0
+description: A Helm chart for setting up services with endpoints referencing external services so that these external services can be accessed as if they are in the same namespace.
+name: extsvcaux
+version: 0.2.0
 
@@ -37,7 +37,7 @@ metadata:
   namespace: {{ include "common.namespace" . }}
 subsets: 
   - addresses:
-      - ip: "{{ .Values.ext.ip }}"
+      - ip: "{{ .Values.extsvcaux.auxip }}"
     ports:
       - port: {{ include "common.ingresshttpport.ricinfra" . }}
         name: {{ include "common.ingressurl.localdocker" . }}-http-ingress-port
@@ -37,7 +37,7 @@ metadata:
   namespace: {{ include "common.namespace" . }}
 subsets: 
   - addresses:
-      - ip: "{{ .Values.ext.ip }}"
+      - ip: "{{ .Values.extsvcaux.auxip }}"
     ports:
       - port: {{ include "common.ingresshttpport.ricinfra" . }}
         name: {{ include "common.ingressurl.localhelm" . }}-http-ingress-port
@@ -37,7 +37,7 @@ metadata:
   namespace: {{ include "common.namespace" . }}
 subsets: 
   - addresses:
-      - ip: "{{ .Values.ext.ip }}"
+      - ip: "{{ .Values.extsvcaux.ricip }}"
     ports:
       - port: {{ include "common.ingresshttpport.ricplt" . }}
         name: {{ include "common.ingressurl.ricplt" . }}-http-ingress-port
@@ -37,7 +37,7 @@ metadata:
   namespace: {{ include "common.namespace" . }}
 subsets: 
   - addresses:
-      - ip: "{{ .Values.ext.ip }}"
+      - ip: "{{ .Values.extsvcaux.ricip }}"
     ports:
       - port: {{ include "common.ingresshttpport.ricxapp" . }}
         name: {{ include "common.ingressurl.ricxapp" . }}-http-ingress-port
 #   limitations under the License.                                             #
 ################################################################################
 
-
-# Default values for ves.
-# This is a YAML-formatted file.
-# Declare variables to be passed into your templates.
-
-ext:
-  ip: "192.168.130.84"
\ No newline at end of file
+extsvcaux:
+  # The IP address of the RIC cluster
+  ricip: "0.0.0.0"
+  # The IP address of the AUX cluster
+  auxip: "0.0.0.0"
\ No newline at end of file
index f3fcab0..af110ab 100644 (file)
 ## agree with the values in the kong helm charts values.yaml files.                        #
 ############################################################################################  
 {{- define "common.ingresshttpport.ricplt" -}}
-  {{- printf "30080" -}}
+  {{- printf "30180" -}}
 {{- end -}}
 
 {{- define "common.ingresshttpsport.ricplt" -}}
-  {{- printf "30443" -}}
+  {{- printf "30543" -}}
 {{- end -}}
 
 
index e1e9615..25550a1 100644 (file)
@@ -127,7 +127,13 @@ echo 'deb http://apt.kubernetes.io/ kubernetes-xenial main' > /etc/apt/sources.l
 
 # install low latency kernel, docker.io, and kubernetes
 apt-get update
-apt-get install -y linux-image-4.15.0-45-lowlatency curl jq netcat docker.io=${DOCKERVERSION}
+apt-get install -y virt-what
+if ! echo $(virt-what) | grep "virtualbox"; then
+  # this version of low latency kernel causes virtualbox VM to hand.  
+  # install if identifying the VM not being a virtualbox VM.
+  apt-get install -y linux-image-4.15.0-45-lowlatency
+fi
+apt-get install -y curl jq netcat docker.io=${DOCKERVERSION}
 apt-get install -y kubernetes-cni=${CNIVERSION}
 apt-get install -y --allow-unauthenticated kubeadm=${KUBEVERSION} kubelet=${KUBEVERSION} kubectl=${KUBEVERSION}
 apt-mark hold docker.io kubernetes-cni kubelet kubeadm kubectl
index f1ca83a..cacb3a9 100755 (executable)
@@ -65,7 +65,7 @@ echo "Helm Release: $RELEASE_NAME"
 NODENAME=$(kubectl get node | awk 'NR==2{print $1}')
 kubectl label --overwrite nodes $NODENAME nexus-node=enable
 
-. ./clear_nexus_data_path
+. "$DIR/clear_nexus_data_path"
 
 
 
@@ -74,6 +74,8 @@ helm package -d /tmp $DIR/../../../ric-common/Common-Template/helm/ric-common
 
 
 mkdir -p  $DIR/../helm/charts/
+mkdir -p /tmp/nexus3-data
+
 cp /tmp/ric-common-$COMMON_CHART_VERSION.tgz $DIR/../helm/charts/
 
 if [ -z $OVERRIDEYAML ]; then
index f1a3bb8..ae097fe 100755 (executable)
@@ -64,11 +64,12 @@ NODENAME=$(kubectl get node | awk 'NR==2{print $1}')
 kubectl label --overwrite nodes $NODENAME helm-node=enable
 
 DIRTEMP=$DIR
-. ./clear_data_path
+. "$DIR/clear_data_path"
 DIR=$DIRTEMP
 
 
 RICINFRA_COMPONENTS="chartmuseum"
+mkdir -p /tmp/chartmuseum-data
 
 echo "Deploying RIC infra components [$RICINFRA_COMPONENTS]"
 echo "Helm Release Name: $RELEASE_NAME"
@@ -79,11 +80,10 @@ helm package -d /tmp $DIR/../../../ric-common/Common-Template/helm/ric-common
 
 
 
-
-
 for component in $RICINFRA_COMPONENTS; do
 
   mkdir -p $DIR/../helm/$component/charts/
+
   cp /tmp/ric-common-$COMMON_CHART_VERSION.tgz $DIR/../helm/$component/charts/
 
   if [ -z $OVERRIDEYAML ]; then
index c0b83f3..cd658c4 100644 (file)
@@ -14,9 +14,9 @@ kong:
 
   proxy:
     http:
-      nodePort: 30080
+      nodePort: 30180
     tls:
-      nodePort: 30443
+      nodePort: 30543
   # These port numbers MUST matche with what's in
   # ric-common/Common-Template/helm/ric-common/templates/_ingresscontroller.tpl file.
   # If need to change a proxy port here, do not forget to update the 
index 68fb4dc..cf5a6db 100755 (executable)
@@ -24,10 +24,10 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
 
 source $DIR/../etc/ext.conf
 
-if [ -z "$RICAUX_RELEASE_NAME" ];then
+if [ -z "$RICPLT_RELEASE_NAME" ];then
    RELEASE_NAME=$helm_release_name
 else
-   RELEASE_NAME=$RICAUX_RELEASE_NAME
+   RELEASE_NAME=$RICPLT_RELEASE_NAME
 fi
 # Namespace configuration
 if [ -z "$RICPLT_NAMESPACE" ];then
@@ -58,9 +58,9 @@ else
    COMMON_OVERRIDE=$RIC_COMMON_OVERRIDE
 fi
 
-RICAUX_COMPONENTS="ext"
+RICPLT_COMPONENTS="extsvcplt"
 
-echo "Deploying RIC AUX components [$RICAUX_COMPONENTS]"
+echo "Deploying RIC Platform components [$RICPLT_COMPONENTS]"
 echo "Helm Release Name: $RELEASE_NAME"
 
 
@@ -69,7 +69,7 @@ COMMON_CHART_VERSION=$(cat $DIR/../../../ric-common/Common-Template/helm/ric-com
 helm package -d /tmp $DIR/../../../ric-common/Common-Template/helm/ric-common
 
 
-for component in $RICAUX_COMPONENTS; do
+for component in $RICPLT_COMPONENTS; do
   echo "Preparing chart for comonent $component"
   mkdir -p  $DIR/../helm/$component/charts/
   cp /tmp/ric-common-$COMMON_CHART_VERSION.tgz $DIR/../helm/$component/charts/
index 97edfa2..751c157 100755 (executable)
@@ -24,25 +24,24 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
 
 source $DIR/../etc/ext.conf
 
-if [ -z "$RICAUX_RELEASE_NAME" ];then
+if [ -z "$RICPLT_RELEASE_NAME" ];then
    RELEASE_NAME=$helm_release_name
 else
-   RELEASE_NAME=$RICAUX_RELEASE_NAME
+   RELEASE_NAME=$RICPLT_RELEASE_NAME
 fi
-if [ -z "$RICAUX_NAMESPACE" ];then
+if [ -z "$RICPLT_NAMESPACE" ];then
    NAMESPACE=$namespace
 else
-   NAMESPACE=$RICAUX_NAMESPACE
+   NAMESPACE=$RICPLT_NAMESPACE
 fi
 
-RICAUX_COMPONENTS="ext"
+RICPLT_COMPONENTS="extsvcplt"
 
-echo "Undeploying RIC AUX components [$RICAUX_COMPONENTS]"
+echo "Undeploying RIC Platform components [$RICPLT_COMPONENTS]"
 echo "Platform Namespace: $NAMESPACE"
 echo "Helm Release Name: $RELEASE_NAME"
 
 
-
-for component in $RICAUX_COMPONENTS; do
+for component in $RICPLT_COMPONENTS; do
   helm delete --purge  "${RELEASE_NAME}-$component" 
 done
@@ -17,7 +17,7 @@
 
 apiVersion: v1
 appVersion: "1.0"
-description: A Helm chart for setting up external endpoints as k8s services
-name: ext
-version: 0.1.0
+description: A Helm chart for setting up services with endpoints referencing external services so that these external services can be accessed as if they are in the same namespace.
+name: extsvcplt
+version: 0.2.0
 
@@ -37,7 +37,7 @@ metadata:
   namespace: {{ include "common.namespace" . }}
 subsets: 
   - addresses:
-      - ip: "{{ .Values.ext.ip }}"
+      - ip: "{{ .Values.extsvcplt.auxip }}"
     ports:
       - port: {{ include "common.ingresshttpport.ricaux" . }}
         name: {{ include "common.ingressurl.ricaux" . }}-http-ingress-port
@@ -66,7 +66,7 @@ metadata:
   namespace: {{ include "common.namespace" . }}
 subsets: 
   - addresses:
-      - ip: "{{ .Values.ext.ip }}"
+      - ip: "{{ .Values.extsvcplt.auxip }}"
     ports:
       - port: {{ include "common.ingresshttpport.ricinfra" . }}
         name: {{ include "common.ingressurl.ricinfra" . }}-http-ingress-port
@@ -37,7 +37,7 @@ metadata:
   namespace: {{ include "common.namespace" . }}
 subsets: 
   - addresses:
-      - ip: "{{ .Values.ext.ip }}"
+      - ip: "{{ .Values.extsvcplt.auxip }}"
     ports:
       - port: {{ include "common.ingresshttpport.ricinfra" . }}
         name: {{ include "common.ingressurl.localdocker" . }}-http-ingress-port
@@ -37,7 +37,7 @@ metadata:
   namespace: {{ include "common.namespace" . }}
 subsets: 
   - addresses:
-      - ip: "{{ .Values.ext.ip }}"
+      - ip: "{{ .Values.extsvcplt.auxip }}"
     ports:
       - port: {{ include "common.ingresshttpport.ricinfra" . }}
         name: {{ include "common.ingressurl.localhelm" . }}-http-ingress-port
 #   limitations under the License.                                             #
 ################################################################################
 
-
-# Default values for ves.
-# This is a YAML-formatted file.
-# Declare variables to be passed into your templates.
-
-ext:
-  ip: "192.168.130.118"
+extsvcplt:
+  # The IP address of the RIC cluster
+  ricip: "0.0.0.0"
+  # The IP address of the AUX cluster
+  auxip: "0.0.0.0"
\ No newline at end of file
index 08f4563..3ed7fe6 100755 (executable)
@@ -155,7 +155,8 @@ else
 fi
 
 
-
+mkdir /tmp/$CHART_NAME/config/
+mkdir /tmp/$CHART_NAME/descriptors/
 
 cp $CONFIG_JSON_PATH /tmp/$CHART_NAME/config/
 cp $DESCRIPTOR_PATH /tmp/$CHART_NAME/descriptors/
index e08ecc8..ab8c294 100644 (file)
@@ -29,4 +29,4 @@ data:
 {{- $rtmgrrmrservice := .Values.ricplt.rtmgrRMRService | quote -}}
 {{- $a1mediatorrmrservice := .Values.ricplt.a1mediatorRMRService | quote -}}
 
-{{ (.Files.Glob "config/*").AsConfig | replace "__DBAAS_SERVICE__" $dbaasservice | replace "__PLT_INGRESS_URL__" $pltingressurl | replace "__XAPP_INGRESS_URL__" $xappingressurl | replace "__APPMGR_RMR_SERVICE__" $appmgrrmrservice | replace "__E2MGR_RMR_SERVICE__" $e2mgrrmrservice | replace "__E2TERM_RMR_SERVICE__" $e2termrmrservice | replace "__RTMGR_RMR_SERVICE__" $rtmgrrmrservice | replace "__A1MEDIATOR_RMR_SERVICE__" $a1mediatorrmrservice | indent 2 }}
+{{- (.Files.Glob "config/*").AsConfig | replace "__DBAAS_SERVICE__" $dbaasservice | replace "__PLT_INGRESS_URL__" $pltingressurl | replace "__XAPP_INGRESS_URL__" $xappingressurl | replace "__APPMGR_RMR_SERVICE__" $appmgrrmrservice | replace "__E2MGR_RMR_SERVICE__" $e2mgrrmrservice | replace "__E2TERM_RMR_SERVICE__" $e2termrmrservice | replace "__RTMGR_RMR_SERVICE__" $rtmgrrmrservice | replace "__A1MEDIATOR_RMR_SERVICE__" $a1mediatorrmrservice | nindent 2 }}
index 28bd23b..b539b9b 100644 (file)
@@ -46,10 +46,10 @@ spec:
             - name: http
               containerPort: {{ .Values.ricxapp.service.http.containerPort }}
               protocol: TCP
-            - name: rmrRoute
+            - name: rmrroute
               containerPort: {{ .Values.ricxapp.service.rmr.route.port }}
               protocol: TCP
-            - name: rmrData
+            - name: rmrdata
               containerPort: {{ .Values.ricxapp.service.rmr.data.port }}
               protocol: TCP
           volumeMounts:
@@ -58,18 +58,14 @@ spec:
           envFrom:
             - configMapRef:
                 name: {{ include "ricxapp.configmapname" . }}-appenv
+          {{- if .Values.ricxapp.livenessProbe }}
           livenessProbe:
-            httpGet:
-              path: {{ .Values.ricxapp.probes.healthAliveCheckEndpoint }}
-              port: {{ .Values.ricxapp.service.http.containerPort }}
-            initialDelaySeconds: 5
-            periodSeconds: 15
+            {{- .Values.ricxapp.livenessProbe | nindent 12 -}}
+          {{ end }}
+          {{- if .Values.ricxapp.readinessProbe }}
           readinessProbe:
-            httpGet:
-              path: {{ .Values.ricxapp.probes.healthReadyCheckEndpoint }}
-              port: {{ .Values.ricxapp.service.http.containerPort }}
-            initialDelaySeconds: 5
-            periodSeconds: 15
+            {{- .Values.ricxapp.readinessProbe | nindent 12 -}}
+          {{ end }}
           restartPolicy: Always
       volumes:
         - name: config-volume
index ee1670b..14a7572 100644 (file)
@@ -29,13 +29,13 @@ spec:
   type: ClusterIP
   ports:
     - port: {{ .Values.ricxapp.service.rmr.data.port }}
-      targetPort: rmrData
+      targetPort: rmrdata
       protocol: TCP
-      name: rmrData
+      name: rmrdata
     - port: {{ .Values.ricxapp.service.rmr.route.port }}
-      targetPort: rmrRoute
+      targetPort: rmrroute
       protocol: TCP
-      name: rmrRoute
+      name: rmrroute
   selector:
     app: {{ include "ricxapp.namespace" . }}-{{ include "ricxapp.name" . }}
     release: {{ .Release.Name }}
index bf9be32..50eab3c 100644 (file)
@@ -53,9 +53,20 @@ ricxapp:
       data:
         port: 4560
 
-  probes:
-    healthAliveCheckEndpoint: ric/v1/health/alive
-    healthReadyCheckEndpoint: ric/v1/health/ready
+  livenessProbe: |-
+    httpGet:
+      path: ric/v1/health/alive
+      port: 8080
+    initialDelaySeconds: 5
+    periodSeconds: 15
+
+  readinessProbe: |-
+    httpGet:
+      path: ric/v1/health/ready
+      port: 8080
+    initialDelaySeconds: 5
+    periodSeconds: 15
+
 
   appconfig:
     path: /opt/ric/config