From c91652e2876271e4e020fe3756d84b13375c49b6 Mon Sep 17 00:00:00 2001 From: Matt Brewster <4481019+brewsteropsdev@users.noreply.github.com> Date: Fri, 1 May 2020 14:48:30 -0600 Subject: [PATCH] [stable/nextcloud] support statically assigning nodePort (#22225) * Add support for statically assigning nodePort and update documentation accordingly Signed-off-by: Matt Brewster * * [stable/nextcloud] Updated the version to 1.9.4 Signed-off-by: Matt Brewster * * [stable/nextcloud] Re-adding mistakenly deleted requirements.lock Signed-off-by: Matt Brewster --- stable/nextcloud/Chart.yaml | 2 +- stable/nextcloud/README.md | 1 + stable/nextcloud/templates/service.yaml | 3 +++ stable/nextcloud/values.yaml | 1 + 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/stable/nextcloud/Chart.yaml b/stable/nextcloud/Chart.yaml index 82e8eec99f..6842caf80c 100644 --- a/stable/nextcloud/Chart.yaml +++ b/stable/nextcloud/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: nextcloud -version: 1.9.3 +version: 1.9.4 appVersion: 17.0.0 description: A file sharing server that puts the control and security of your own data back into your hands. keywords: diff --git a/stable/nextcloud/README.md b/stable/nextcloud/README.md index f758f97850..45ce6e8083 100644 --- a/stable/nextcloud/README.md +++ b/stable/nextcloud/README.md @@ -121,6 +121,7 @@ The following table lists the configurable parameters of the nextcloud chart and | `cronjob.affinity` | Cronjob affinity | `nil` | | `service.type` | Kubernetes Service type | `ClusterIp` | | `service.loadBalancerIP` | LoadBalancerIp for service type LoadBalancer | `nil` | +| `service.nodePort` | NodePort for service type NodePort | `nil` | | `persistence.enabled` | Enable persistence using PVC | `false` | | `persistence.annotations` | PVC annotations | `{}` | | `persistence.storageClass` | PVC Storage Class for nextcloud volume | `nil` (uses alpha storage class annotation) | diff --git a/stable/nextcloud/templates/service.yaml b/stable/nextcloud/templates/service.yaml index 290098051a..3f788185dc 100644 --- a/stable/nextcloud/templates/service.yaml +++ b/stable/nextcloud/templates/service.yaml @@ -17,5 +17,8 @@ spec: targetPort: http protocol: TCP name: http + {{- if eq .Values.service.type "NodePort" }} + nodePort: {{ default "" .Values.service.nodePort}} + {{- end }} selector: app.kubernetes.io/name: {{ include "nextcloud.name" . }} diff --git a/stable/nextcloud/values.yaml b/stable/nextcloud/values.yaml index c98fa04f09..3740186dfb 100644 --- a/stable/nextcloud/values.yaml +++ b/stable/nextcloud/values.yaml @@ -258,6 +258,7 @@ service: type: ClusterIP port: 8080 loadBalancerIP: nil + nodePort: nil ## Enable persistence using Persistent Volume Claims ## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/