Skip to content

Commit

Permalink
Add optional NodePorts for services that might need to be exposed (#71)
Browse files Browse the repository at this point in the history
outside the cluster
  • Loading branch information
jonohart authored Apr 25, 2020
1 parent 253d3df commit 039b134
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions onos-classic/templates/nodeports.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
{{- if .Values.onosOfPort }}
apiVersion: v1
kind: Service
metadata:
name: onos-of
spec:
type: NodePort
ports:
- name: onos-of
port: 6653
nodePort: {{ .Values.onosOfPort }}
selector:
app: {{ template "fullname" . }}
{{- end}}
---
{{- if .Values.onosApiPort }}
apiVersion: v1
kind: Service
metadata:
name: onos-api
spec:
type: NodePort
ports:
- name: onos-api
port: 8181
nodePort: {{ .Values.onosApiPort }}
selector:
app: {{ template "fullname" . }}
{{- end}}
---
{{- if .Values.onosSshPort }}
apiVersion: v1
kind: Service
metadata:
name: onos-ssh
spec:
type: NodePort
ports:
- name: onos-ssh
port: 8101
nodePort: {{ .Values.onosSshPort }}
selector:
app: {{ template "fullname" . }}
{{- end}}

0 comments on commit 039b134

Please sign in to comment.