add services for the progran ports
Change-Id: I8e938216e3ffc875a21c096c352093c8cd1b3e6f
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 }}
+