[VOL-3090] Exposing profiler service for ofagent-go
Change-Id: I3120d6426389306fd46c5469ad700306d48ab028
diff --git a/voltha/Chart.yaml b/voltha/Chart.yaml
index f47ccbc..dc435be 100644
--- a/voltha/Chart.yaml
+++ b/voltha/Chart.yaml
@@ -17,7 +17,7 @@
description: A Helm chart for Voltha based on K8S resources in Voltha project
icon: https://guide.opencord.org/logos/cord.svg
-version: 2.4.5
+version: 2.4.6
# app version applies to multiple components with potentially different
# container image versions
diff --git a/voltha/templates/ofagent-go.yaml b/voltha/templates/ofagent-go.yaml
index 283f986..324850d 100644
--- a/voltha/templates/ofagent-go.yaml
+++ b/voltha/templates/ofagent-go.yaml
@@ -13,6 +13,23 @@
# See the License for the specific language governing permissions and
# limitations under the License.
{{- $log_level := tpl .Values.ofagent.log_level . | upper }}
+{{- if .Values.profiler.enabled }}
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: voltha-of-agent-profiler
+ serviceAccountName: {{ .Values.serviceaccount }}
+spec:
+ serviceAccountName: {{ .Values.serviceaccount }}
+ clusterIP: None
+ ports:
+ - name: ofagent-profiler
+ port: 6060
+ targetPort: 6060
+ selector:
+ app: ofagent
+{{- end }}
---
apiVersion: apps/v1beta1
kind: Deployment
diff --git a/voltha/templates/rw-core.yaml b/voltha/templates/rw-core.yaml
index 6127e23..3e71aa7 100644
--- a/voltha/templates/rw-core.yaml
+++ b/voltha/templates/rw-core.yaml
@@ -52,7 +52,7 @@
serviceAccountName: {{ .Values.serviceaccount }}
clusterIP: None
ports:
- - name: profiler
+ - name: rw-core-profiler
port: 6060
targetPort: 6060
selector: