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
name: influxdb
version: 4.10.7
version: 4.11.0
appVersion: 1.8.10
description: Scalable datastore for metrics, events, and real-time analytics.
keywords:
......
......@@ -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.externalIPs | A user-specified list of externalIPs to add to the service | 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.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 | |
......
......@@ -14,6 +14,9 @@ spec:
- name: api
port: {{ .Values.config.http.bind_address | default 8086 }}
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
port: {{ .Values.config.rpc.bind_address | default 8088 }}
targetPort: rpc
......
......@@ -41,7 +41,7 @@ startupProbe:
# periodSeconds: 5
# scheme: HTTP
## Specify a service type
## Specify a service type and optional port
## NodePort is default
## ref: http://kubernetes.io/docs/user-guide/services/
##
......@@ -51,6 +51,9 @@ service:
type: ClusterIP
# externalIPs: []
# externalTrafficPolicy: ""
# nodePort(s) value for the LoadBalancer and NodePort service types
nodePorts:
http: ""
## 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