image:
name: ric-plt-vespamgr
tag: 0.0.1
+ prometheusurl: "http://rec-prometheus-server.default"
+
# the service for redirecting to AUX cluster
extsvcplt:
rules:
- http:
paths:
- - path: /vescollector
+ - path: {{ include "common.kongpath.aux.vescollector" . }}
backend:
serviceName: {{ include "common.servicename.ves.http" . }}
servicePort: {{ include "common.serviceport.ves.http" . }}
apiVersion: v1
description: Common templates for inclusion in other charts
name: ric-common
-version: 2.0.4
+version: 2.0.5
{{- printf "configmap-%s" $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
+{{- define "common.configmapname.vespamgr" -}}
+ {{- $name := ( include "common.fullname.vespamgr" . ) -}}
+ {{- printf "configmap-%s" $name | trunc 63 | trimSuffix "-" -}}
+{{- end -}}
{{- define "common.configmapname.nexus" -}}
{{- $name := ( include "common.fullname.nexus" . ) -}}
--- /dev/null
+################################################################################
+# Copyright (c) 2019 AT&T Intellectual Property. #
+# Copyright (c) 2019 Nokia. #
+# #
+# Licensed under the Apache License, Version 2.0 (the "License"); #
+# you may not use this file except in compliance with the License. #
+# You may obtain a copy of the License at #
+# #
+# http://www.apache.org/licenses/LICENSE-2.0 #
+# #
+# Unless required by applicable law or agreed to in writing, software #
+# distributed under the License is distributed on an "AS IS" BASIS, #
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
+# See the License for the specific language governing permissions and #
+# limitations under the License. #
+################################################################################
+
+{{/*
+ This file defines the URL paths that kong proxies for different servicess.
+*/}}
+
+{{- define "common.kongpath.aux.vescollector" -}}/vescollector{{- end -}}
+{{- define "common.kongpath.aux.helm" -}}/helm{{- end -}}
+{{- define "common.kongpath.ric.appmgr" -}}/appmgr{{- end -}}
+{{- define "common.kongpath.ric.a1mediator" -}}/a1mediator{{- end -}}
+{{- define "common.kongpath.ric.e2mgr" -}}/e2mgr{{- end -}}
rules:
- http:
paths:
- - path: /a1mediator
+ - path: {{ include "common.kongpath.ric.a1mediator" . }}
backend:
serviceName: {{ include "common.servicename.a1mediator.http" . }}
servicePort: {{ include "common.serviceport.a1mediator.http" . }}
rules:
- http:
paths:
- - path: /appmgr
+ - path: {{ include "common.kongpath.ric.appmgr" . }}
backend:
serviceName: {{ include "common.servicename.appmgr.http" . }}
servicePort: {{ include "common.serviceport.appmgr.http" . }}
rules:
- http:
paths:
- - path: /e2mgr
+ - path: {{ include "common.kongpath.ric.e2mgr" . }}
backend:
serviceName: {{ include "common.servicename.e2mgr.http" . }}
servicePort: {{ include "common.serviceport.e2mgr.http" . }}
- name: http
containerPort: {{ include "common.serviceport.vespamgr.http" . }}
protocol: TCP
- #envFrom:
- # - configMapRef:
- # name: vespa-config
- # - secretRef:
- # name: vespa-secrets
+ envFrom:
+ - configMapRef:
+ name: {{ include "common.configmapname.vespamgr" . }}
+ - secretRef:
+ name: vespa-secrets
--- /dev/null
+apiVersion: v1
+kind: Secret
+metadata:
+ name: vespa-secrets
+type: Opaque
+data:
+ VESMGR_PRICOLLECTOR_USER: ""
+ VESMGR_PRICOLLECTOR_PASSWORD: ""
+
--- /dev/null
+apiVersion: v1
+kind: ConfigMap
+metadata:
+ name: {{ include "common.configmapname.vespamgr" . }}
+ namespace: {{ include "common.namespace.platform" . }}
+data:
+ VESMGR_HB_INTERVAL: "60s"
+ VESMGR_MEAS_INTERVAL: "30s"
+ VESMGR_PRICOLLECTOR_ADDR: {{ include "common.ingressurl.aux" . | quote }}
+ VESMGR_PRICOLLECTOR_SERVERROOT: {{ include "common.kongpath.aux.vescollector" . | quote }}
+ VESMGR_PRICOLLECTOR_PORT: {{ include "common.ingresshttpsport" . | quote }}
+ VESMGR_PRICOLLECTOR_SECURE: "false"
+ VESMGR_PROMETHEUS_ADDR: {{ .Values.vespamgr.prometheusurl }}
# 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.
+
+ prometheusurl: "http://rec-prometheus-server.default"