Skip to content

Commit

Permalink
Add NodePort service for ONOS-GUI (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
woojoong88 authored Mar 19, 2020
1 parent 5eb32ed commit 37a9a1f
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions onos-gui/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
apiVersion: v1
kind: Service
metadata:
Expand All @@ -24,3 +25,27 @@ spec:
port: {{ $value.proxy }}
{{- end }}

---
apiVersion: v1
kind: Service
metadata:
name: {{ template "onos-gui.fullname" . }}-external
labels:
app: {{ template "onos-gui.fullname" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
{{- include "onos-gui.labels" . | nindent 4 }}
spec:
type: NodePort
selector:
name: {{ template "onos-gui.fullname" . }}
app: onos
type: gui
resource: {{ template "onos-gui.fullname" . }}
{{- include "onos-gui.selectorLabels" . | nindent 4 }}
ports:
- name: web
port: 80
nodePort: 31180
protocol: TCP

0 comments on commit 37a9a1f

Please sign in to comment.