add services for the progran ports
Change-Id: I8e938216e3ffc875a21c096c352093c8cd1b3e6f
diff --git a/onos-progran/Chart.yaml b/onos-progran/Chart.yaml
index 295649b..742f5bb 100644
--- a/onos-progran/Chart.yaml
+++ b/onos-progran/Chart.yaml
@@ -15,7 +15,7 @@
name: onos-progran
description: ONOS with progran APP
-version: 1.2.2
+version: 1.2.3
icon: https://guide.opencord.org/logos/onos.svg
appVersion: 0.1.8
diff --git a/onos-progran/templates/onos-progran-deployment.yaml b/onos-progran/templates/onos-progran-deployment.yaml
index 7c089e7..9e30bce 100644
--- a/onos-progran/templates/onos-progran-deployment.yaml
+++ b/onos-progran/templates/onos-progran-deployment.yaml
@@ -63,6 +63,12 @@
containerPort: {{ .Values.services.cluster.port }}
- name: debugger
containerPort: {{ .Values.services.debugger.port }}
+ - name: port22
+ containerPort: {{ .Values.services.port22.port }}
+ - name: port9876
+ containerPort: {{ .Values.services.port9876.port }}
+ - name: port4010
+ containerPort: {{ .Values.services.port4010.port }}
resources:
{{ toYaml .Values.resources | indent 12 }}
volumeMounts:
diff --git a/onos-progran/templates/onos-progran-port22-service.yaml b/onos-progran/templates/onos-progran-port22-service.yaml
new file mode 100644
index 0000000..a99fbda
--- /dev/null
+++ b/onos-progran/templates/onos-progran-port22-service.yaml
@@ -0,0 +1,33 @@
+# Copyright 2017-present Open Networking Foundation
+#
+# 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.
+
+apiVersion: v1
+kind: Service
+metadata:
+ name: {{ template "onos.fullname" . }}-progran-port22
+ namespace: {{ .Values.namespace }}
+ labels:
+ app: {{ template "onos.name" . }}
+ chart: {{ template "onos.chart" . }}
+ release: {{ .Release.Name }}
+ heritage: {{ .Release.Service }}
+spec:
+ type: {{ .Values.services.progranPort22ServiceType }}
+ ports:
+ - name: port22
+{{ toYaml .Values.services.port22 | indent 4 }}
+ selector:
+ app: {{ template "onos.name" . }}
+ release: {{ .Release.Name }}
+
diff --git a/onos-progran/templates/onos-progran-port4010-service.yaml b/onos-progran/templates/onos-progran-port4010-service.yaml
new file mode 100644
index 0000000..6547b7c
--- /dev/null
+++ b/onos-progran/templates/onos-progran-port4010-service.yaml
@@ -0,0 +1,33 @@
+# Copyright 2017-present Open Networking Foundation
+#
+# 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.
+
+apiVersion: v1
+kind: Service
+metadata:
+ name: {{ template "onos.fullname" . }}-progran-port4010
+ namespace: {{ .Values.namespace }}
+ labels:
+ app: {{ template "onos.name" . }}
+ chart: {{ template "onos.chart" . }}
+ release: {{ .Release.Name }}
+ heritage: {{ .Release.Service }}
+spec:
+ type: {{ .Values.services.progranPort4010ServiceType }}
+ ports:
+ - name: port4010
+{{ toYaml .Values.services.port4010 | indent 4 }}
+ selector:
+ app: {{ template "onos.name" . }}
+ release: {{ .Release.Name }}
+
diff --git a/onos-progran/templates/onos-progran-port9876-service.yaml b/onos-progran/templates/onos-progran-port9876-service.yaml
new file mode 100644
index 0000000..5eadee3
--- /dev/null
+++ b/onos-progran/templates/onos-progran-port9876-service.yaml
@@ -0,0 +1,33 @@
+# Copyright 2017-present Open Networking Foundation
+#
+# 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.
+
+apiVersion: v1
+kind: Service
+metadata:
+ name: {{ template "onos.fullname" . }}-progran-port9876
+ namespace: {{ .Values.namespace }}
+ labels:
+ app: {{ template "onos.name" . }}
+ chart: {{ template "onos.chart" . }}
+ release: {{ .Release.Name }}
+ heritage: {{ .Release.Service }}
+spec:
+ type: {{ .Values.services.progranPort9876ServiceType }}
+ ports:
+ - name: port9876
+{{ toYaml .Values.services.port9876 | indent 4 }}
+ selector:
+ app: {{ template "onos.name" . }}
+ release: {{ .Release.Name }}
+
diff --git a/onos-progran/values.yaml b/onos-progran/values.yaml
index ea00a1c..5fd6be5 100644
--- a/onos-progran/values.yaml
+++ b/onos-progran/values.yaml
@@ -67,18 +67,18 @@
port: 5005
nodePort: 30556
- progranPort1ServiceType: NodePort
- port1:
+ progranPort22ServiceType: NodePort
+ port22:
port: 22
nodePort: 30022
- progranPort2ServiceType: NodePort
- port2:
+ progranPort9876ServiceType: NodePort
+ port9876:
port: 9876
nodePort: 30876
- progranPort3ServiceType: NodePort
- port3:
+ progranPort4010ServiceType: NodePort
+ port4010:
port: 4010
nodePort: 30010