Merge "Kong ingress controller The Nonrtric deployment script will not install Kong...
authorJohn Keeney <john.keeney@est.tech>
Fri, 18 Jun 2021 09:21:21 +0000 (09:21 +0000)
committerGerrit Code Review <gerrit@o-ran-sc.org>
Fri, 18 Jun 2021 09:21:21 +0000 (09:21 +0000)
1  2 
nonrtric/RECIPE_EXAMPLE/example_recipe.yaml
nonrtric/helm/enrichmentservice/templates/ingress.yaml

  # Global common setting
  #-------------------------------------------------------------------------
  
 +
 +# Here you can enable inclusion or exclusion of each component. A not installd component will not be installed.
 +nonrtric:
 +  installPms: true
 +  installA1controller: false
 +  installA1simulator: false
 +  installControlpanel: false
 +  installEnrichmentservice: true
 +  installRappcatalogueservice: false
 +  installNonrtricgateway: false
 +
  common:
    releasePrefix: r2-dev-nonrtric
  # Change the namespaces using the following options
    namespace:
      nonrtric: nonrtric
    ingressClassName: kong
 -# any nonrtric chart can be installed: nonrtric (all components), controlpanel, a1controller, a1simulator, policymanagementservice, 
 -# enrichmentservice, rappcatalogueservice, nonrtricgateway
 -component: nonrtric
 +
  
  # A1 Conttroller may take few more minutes to start. Increase the initialDelaySeconds in liveness to avoid container restart.
  a1controller:
@@@ -146,6 -137,8 +146,8 @@@ policymanagementservice
        size: 2Gi
        mountPath: /dockerdata-nfs
        mountSubPath: nonrtric/policymanagementservice
+     ingress:
+       enabled: false
  
  enrichmentservice:
    enrichmentservice:
        size: 2Gi
        mountPath: /dockerdata-nfs
        mountSubPath: nonrtric/enrichmentservice
+     ingress:
+       enabled: false
  
  rappcatalogueservice:
    rappcatalogueservice:
@@@ -1,3 -1,4 +1,4 @@@
+ {{/*
  ################################################################################
  #   Copyright (c) 2021 Nordix Foundation.                                      #
  #                                                                              #
@@@ -13,7 -14,9 +14,9 @@@
  #   See the License for the specific language governing permissions and        #
  #   limitations under the License.                                             #
  ################################################################################
+ */}}
  
+ {{- if .Values.enrichmentservice.ingress.enabled -}}
  apiVersion: networking.k8s.io/v1
  kind: Ingress
  metadata:
@@@ -25,17 -28,18 +28,18 @@@ spec
    rules:
      - http:
          paths:
 -          - path: "/ei-producer"
 +          - path: "/data-producer"
              backend:
                service:
                  name: {{ include "common.name.enrichmentservice" . }}
-                 port: 
+                 port:
                    number: {{ .Values.enrichmentservice.service.internalPort1 }}
              pathType: Prefix
              path: "/data-consumer"
              backend:
                service:
                  name: {{ include "common.name.enrichmentservice" . }}
-                 port: 
+                 port:
                    number: {{ .Values.enrichmentservice.service.internalPort1 }}
              pathType: Prefix
+ {{- end -}}