[HOLMES] Changed the way for MSB registration 66/133666/13
authorGuangrong Fu <fu.guangrong@zte.com.cn>
Wed, 15 Mar 2023 03:09:49 +0000 (11:09 +0800)
committerGuangrong Fu <fu.guangrong@zte.com.cn>
Mon, 27 Mar 2023 00:46:51 +0000 (08:46 +0800)
Register Holmes MSB through an annotation in the Helm chart.
Enable/Disable TLS via an env variable.
Added Ingress Configurations

Issue-ID: HOLMES-612
Signed-off-by: Guangrong Fu <fu.guangrong@zte.com.cn>
Change-Id: If1bd8a62ea3840943ccd04cbcc16442f65fd434b

kubernetes/holmes/components/holmes-engine-mgmt/templates/deployment.yaml
kubernetes/holmes/components/holmes-engine-mgmt/values.yaml
kubernetes/holmes/components/holmes-rule-mgmt/templates/deployment.yaml
kubernetes/holmes/components/holmes-rule-mgmt/values.yaml
kubernetes/holmes/values.yaml

index 9bf6f39..cdf5327 100644 (file)
@@ -56,6 +56,16 @@ spec:
           value: {{ .Values.config.pgConfig.dbHost }}
         - name: DB_PORT
           value: "{{ .Values.config.pgConfig.dbPort }}"
+        - name: AAI_ADDR
+          value: aai
+        - name: AAI_PORT
+          value: "{{ .Values.config.aai.aaiPort }}"
+        - name: AAI_USERNAME
+          value: {{ .Values.config.aai.username }}
+        - name: AAI_PASSWORD
+          value: {{ .Values.config.aai.password }}
+        - name: NAMESPACE
+          value: {{ include "common.namespace" . }}
         volumeMounts:
         - mountPath: /hemconfig
           name: {{ include "common.fullname" . }}-config
index d2ad0d4..c9c62e7 100644 (file)
@@ -30,7 +30,7 @@ global:
 # Application configuration defaults.
 #################################################################
 # application image
-image: onap/holmes/engine-management:11.0.0
+image: onap/holmes/engine-management:12.0.1
 consulLoaderImage: onap/org.onap.dcaegen2.deployments.consul-loader-container:1.0.0
 
 #################################################################
@@ -59,6 +59,13 @@ config:
     dbUser: admin
     dbUserPassword: admin
     # dbUserCredsExternalSecret
+  msb:
+    serviceName: msb-iag
+    port: 80
+  aai:
+    aaiPort: 80
+    username: AAI
+    password: AAI
 
 service:
   type: ClusterIP
@@ -66,6 +73,20 @@ service:
   ports:
   - name: http-rest
     port: &svc_port 9102
+  annotations:
+    msb.onap.org/service-info: |
+      {{ if .Values.global.msbEnabled -}}[
+        {
+          "serviceName": "holmes-engine-mgmt",
+          "version": "v1",
+          "url": "/api/holmes-engine-mgmt/v1",
+          "path":"/api/holmes-engine-mgmt/v1",
+          "protocol": "REST",
+          "visualRange":"0|1",
+          "port": "9102",
+          "enable_ssl": false
+        }
+      ]{{ end }}
 
 # probe configuration parameters
 liveness:
index 8b0cd84..05def92 100644 (file)
@@ -55,6 +55,8 @@ spec:
           value: {{ .Values.config.pgConfig.dbHost }}
         - name: DB_PORT
           value: "{{ .Values.config.pgConfig.dbPort }}"
+        - name: NAMESPACE
+          value: {{ include "common.namespace" . }}
         volumeMounts:
         - mountPath: /hrmconfig
           name: {{ include "common.fullname" . }}-general-config
index 2320095..bc6639f 100644 (file)
@@ -31,7 +31,7 @@ global:
 # Application configuration defaults.
 #################################################################
 # application image
-image: onap/holmes/rule-management:11.0.0
+image: onap/holmes/rule-management:12.0.0
 consulLoaderImage: onap/org.onap.dcaegen2.deployments.consul-loader-container:1.0.0
 
 #################################################################
@@ -71,16 +71,34 @@ service:
   - name: http-ui
     port: 9104
     nodePort: 93
+  annotations:
+    msb.onap.org/service-info: |
+      {{ if .Values.global.msbEnabled -}}[
+        {
+          "serviceName": "holmes-rule-mgmt",
+          "version": "v1",
+          "url": "/api/holmes-rule-mgmt/v1",
+          "path":"/api/holmes-rule-mgmt/v1",
+          "protocol": "REST",
+          "visualRange":"0|1",
+          "port": "9101",
+          "enable_ssl": false
+        }
+      ]{{ end }}
 
 ingress:
   enabled: false
   service:
-    - baseaddr: 'holmes-api'
-      name: 'holmes-rule-mgmt'
-      port: 9101
-    - baseaddr: 'holmes-ui'
-      name: 'holmes-rule-mgmt'
-      port: 9104
+    - baseaddr: "holmes-rule-mgmt"
+      name: "holmes-rule-mgmt"
+      path: "/api/holmes-rule-mgmt/v1"
+      plain_port: 9101
+    - baseaddr: "holmes-rule-mgmt-ui"
+      name: "holmes-rule-mgmt-ui"
+      path: "/iui/holmes"
+      plain_port: 9104
+  config:
+    ssl: "redirect"
 
 # probe configuration parameters
 liveness:
index a536380..e8eb53d 100644 (file)
@@ -43,7 +43,6 @@ secrets:
   password: '{{ .Values.postgres.config.pgUserPassword }}'
   passwordPolicy: generate
 
-
 #################################################################
 # Application configuration defaults.
 #################################################################