Unverified Commit 54e52a36 authored by Brad Solomon's avatar Brad Solomon Committed by GitHub

Add service.nodePorts.http parameter to configure NodePort (#465)

* Add service.nodePorts.http parameter to configure NodePort Closes #425. * Remove extraneous dodePort: null * ensure int
parent 8614c432
apiVersion: v1 apiVersion: v1
name: influxdb name: influxdb
version: 4.10.7 version: 4.11.0
appVersion: 1.8.10 appVersion: 1.8.10
description: Scalable datastore for metrics, events, and real-time analytics. description: Scalable datastore for metrics, events, and real-time analytics.
keywords: keywords:
......
...@@ -62,6 +62,7 @@ The following table lists configurable parameters, their descriptions, and their ...@@ -62,6 +62,7 @@ The following table lists configurable parameters, their descriptions, and their
| service.loadBalancerIP | A user-specified IP address for service type LoadBalancer to use as External IP (if supported) | nil | | service.loadBalancerIP | A user-specified IP address for service type LoadBalancer to use as External IP (if supported) | nil |
| service.externalIPs | A user-specified list of externalIPs to add to the service | nil | | service.externalIPs | A user-specified list of externalIPs to add to the service | nil |
| service.externalTrafficPolicy | A user specified external traffic policy | nil | | service.externalTrafficPolicy | A user specified external traffic policy | nil |
| service.nodePorts.http | Node port to expose for HTTP API if `service.type=NodePort` or `service.type=LoadBalancer` | Random port from range 30000-32767 |
| persistence.enabled | Boolean to enable and disable persistance | true | | persistence.enabled | Boolean to enable and disable persistance | true |
| persistence.existingClaim | An existing PersistentVolumeClaim, ignored if enterprise.enabled=true | nil | | persistence.existingClaim | An existing PersistentVolumeClaim, ignored if enterprise.enabled=true | nil |
| persistence.storageClass | If set to "-", storageClassName: "", which disables dynamic provisioning. If undefined (the default) or set to null, no storageClassName spec is set, choosing the default provisioner. (gp2 on AWS, standard on GKE, AWS & OpenStack | | | persistence.storageClass | If set to "-", storageClassName: "", which disables dynamic provisioning. If undefined (the default) or set to null, no storageClassName spec is set, choosing the default provisioner. (gp2 on AWS, standard on GKE, AWS & OpenStack | |
......
...@@ -14,6 +14,9 @@ spec: ...@@ -14,6 +14,9 @@ spec:
- name: api - name: api
port: {{ .Values.config.http.bind_address | default 8086 }} port: {{ .Values.config.http.bind_address | default 8086 }}
targetPort: api targetPort: api
{{- if (and (or (eq .Values.service.type "NodePort") (eq .Values.service.type "LoadBalancer")) (not (empty .Values.service.nodePorts.http))) }}
nodePort: {{ .Values.service.nodePorts.http | int }}
{{- end }}
- name: rpc - name: rpc
port: {{ .Values.config.rpc.bind_address | default 8088 }} port: {{ .Values.config.rpc.bind_address | default 8088 }}
targetPort: rpc targetPort: rpc
......
...@@ -41,7 +41,7 @@ startupProbe: ...@@ -41,7 +41,7 @@ startupProbe:
# periodSeconds: 5 # periodSeconds: 5
# scheme: HTTP # scheme: HTTP
## Specify a service type ## Specify a service type and optional port
## NodePort is default ## NodePort is default
## ref: http://kubernetes.io/docs/user-guide/services/ ## ref: http://kubernetes.io/docs/user-guide/services/
## ##
...@@ -51,6 +51,9 @@ service: ...@@ -51,6 +51,9 @@ service:
type: ClusterIP type: ClusterIP
# externalIPs: [] # externalIPs: []
# externalTrafficPolicy: "" # externalTrafficPolicy: ""
# nodePort(s) value for the LoadBalancer and NodePort service types
nodePorts:
http: ""
## Persist data to a persistent volume ## Persist data to a persistent volume
## ##
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment