-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose 6653 port on each node through NodePort to allow OF Master/Sta…
…ndby connection (#201) * [VOL-3415] exposing openflow on all ONOS replicas through nodeports * Fixing the selector * Using only nodeports with pod name as selector * fixing selector and adding values to expose nodeports * Bumping the chart version * Defaulting exposeNodePorts to false * Changing flag name
- Loading branch information
1 parent
a5cd39f
commit fbaef1e
Showing
5 changed files
with
34 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
.idea/ | ||
build/release | ||
build/_output | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,51 @@ | ||
--- | ||
{{- if .Values.onosOfPort }} | ||
{{- if .Values.onosApiPort }} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: onos-of | ||
name: onos-api | ||
spec: | ||
type: NodePort | ||
ports: | ||
- name: onos-of | ||
port: 6653 | ||
nodePort: {{ .Values.onosOfPort }} | ||
- name: onos-api | ||
port: 8181 | ||
nodePort: {{ .Values.onosApiPort }} | ||
selector: | ||
app: {{ template "fullname" . }} | ||
{{- end}} | ||
{{- end}} | ||
--- | ||
{{- if .Values.onosApiPort }} | ||
{{- if .Values.onosSshPort }} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: onos-api | ||
name: onos-ssh | ||
spec: | ||
type: NodePort | ||
ports: | ||
- name: onos-api | ||
port: 8181 | ||
nodePort: {{ .Values.onosApiPort }} | ||
- name: onos-ssh | ||
port: 8101 | ||
nodePort: {{ .Values.onosSshPort }} | ||
selector: | ||
app: {{ template "fullname" . }} | ||
{{- end}} | ||
{{- end}} | ||
|
||
# workaround for . not working, see | ||
# https://github.com/helm/helm/issues/1311 | ||
{{- if .Values.individualOpenFlowNodePorts }} | ||
{{- $root := . -}} | ||
{{ range $k, $index := until (atoi (quote .Values.replicas) | default 3) }} | ||
--- | ||
{{- if .Values.onosSshPort }} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: onos-ssh | ||
name: onos-of-{{ $index }} | ||
spec: | ||
type: NodePort | ||
ports: | ||
- name: onos-ssh | ||
port: 8101 | ||
nodePort: {{ .Values.onosSshPort }} | ||
- name: onos-of-{{ $index }} | ||
port: 6653 | ||
nodePort: {{ add $index 31653 }} | ||
selector: | ||
app: {{ template "fullname" . }} | ||
statefulset.kubernetes.io/pod-name: onos-onos-classic-{{ $index }} | ||
{{ end }} | ||
{{- end}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters