Skip to content

Commit 0b36e70

Browse files
committed
Adding value to set Nodeport number
1 parent d5e8db3 commit 0b36e70

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

charts/core/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ Parameter | Description | Default | Notes
7474
`controller.azureFileShare.secretName` | The name of the secret containing the Azure file share storage account name and key | `nil` |
7575
`controller.azureFileShare.shareName` | The name of the Azure file share to use | `nil` |
7676
`controller.apisvc.type` | Controller REST API service type | `nil` |
77+
`controller.apisvc.nodePort` | Controller REST API service NodePort number | `nil` |
7778
`controller.apisvc.annotations` | Add annotations to controller REST API service | `{}` |
7879
`controller.apisvc.route.enabled` | If true, create a OpenShift route to expose the Controller REST API service | `false` |
7980
`controller.apisvc.route.termination` | Specify TLS termination for OpenShift route for Controller REST API service. Possible passthrough, edge, reencrypt | `passthrough` |
@@ -178,6 +179,7 @@ Parameter | Description | Default | Notes
178179
` CUSTOM_PAGE_FOOTER_CONTENT` | max. 120 characters, base64 encoded. |
179180
` CUSTOM_PAGE_FOOTER_COLOR` | use color name (yellow) or value (#ffff00) |
180181
`manager.svc.type` | set manager service type for native Kubernetes | `NodePort`;<br>if it is OpenShift platform or ingress is enabled, then default is `ClusterIP` | set to LoadBalancer if using cloud providers, such as Azure, Amazon, Google
182+
`manager.svc.nodePort` | set manager service NodePort number | `nil` |
181183
`manager.svc.loadBalancerIP` | if manager service type is LoadBalancer, this is used to specify the load balancer's IP | `nil` |
182184
`manager.svc.annotations` | Add annotations to manager service | `{}` | see examples in [values.yaml](values.yaml)
183185
`manager.route.enabled` | If true, create a OpenShift route to expose the management console service | `true` |

charts/core/templates/controller-service.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ spec:
4040
ports:
4141
- port: 10443
4242
protocol: "TCP"
43+
{{- if .Values.controller.apisvc.nodePort }}
44+
nodePort: {{ .Values.controller.apisvc.nodePort }}
45+
{{- end }}
4346
name: "controller-api"
4447
appProtocol: HTTPS
4548
selector:

charts/core/templates/manager-service.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ spec:
2020
- port: 8443
2121
name: manager
2222
protocol: TCP
23+
{{- if .Values.manager.svc.nodePort }}
24+
nodePort: {{ .Values.manager.svc.nodePort }}
25+
{{- end }}
2326
{{- if or (.Capabilities.KubeVersion.GitVersion | contains "-eks") (.Capabilities.KubeVersion.GitVersion | contains "-gke") }}
2427
{{- if .Values.manager.env.ssl }}
2528
appProtocol: HTTPS

charts/core/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ controller:
112112
apisvc:
113113
type:
114114
annotations: {}
115+
nodePort:
115116
# OpenShift Route configuration
116117
# Controller supports HTTPS only, so edge termination not supported
117118
route:
@@ -366,6 +367,7 @@ manager:
366367
# value: "#FFFFFF"
367368
svc:
368369
type: NodePort # should be set to - ClusterIP
370+
nodePort:
369371
loadBalancerIP:
370372
annotations:
371373
{}

0 commit comments

Comments
 (0)