diff --git a/charts/nextcloud/README.md b/charts/nextcloud/README.md index 5309f4a9..cc569c37 100644 --- a/charts/nextcloud/README.md +++ b/charts/nextcloud/README.md @@ -165,6 +165,7 @@ The following table lists the configurable parameters of the nextcloud chart and | `cronjob.securityContext` | Optional security context for cron jobs sidecar | `nil` | | `service.type` | Kubernetes Service type | `ClusterIP` | | `service.loadBalancerIP` | LoadBalancerIp for service type LoadBalancer | `""` | +| `service.annotations` | Annotations for service type | `{}` | | `service.nodePort` | NodePort for service type NodePort | `nil` | | `service.ipFamilies` | Set ipFamilies as in k8s service objects | `nil` | | `service.ipFamyPolicy` | define IP protocol bindings as in k8s service objects | `nil` | diff --git a/charts/nextcloud/templates/service.yaml b/charts/nextcloud/templates/service.yaml index 0c5d0327..2223c945 100644 --- a/charts/nextcloud/templates/service.yaml +++ b/charts/nextcloud/templates/service.yaml @@ -3,6 +3,10 @@ apiVersion: v1 kind: Service metadata: name: {{ template "nextcloud.fullname" . }} + {{- with .Values.service.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} labels: app.kubernetes.io/name: {{ include "nextcloud.name" . }} helm.sh/chart: {{ include "nextcloud.chart" . }} @@ -17,7 +21,7 @@ spec: {{- end }} {{- end }} {{- with .Values.service.ipFamilies }} - ipFamilies: + ipFamilies: {{- toYaml . | nindent 4 }} {{- end }} {{- with .Values.service.ipFamilyPolicy }} @@ -34,4 +38,4 @@ spec: selector: app.kubernetes.io/name: {{ include "nextcloud.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} - app.kubernetes.io/component: app + app.kubernetes.io/component: app \ No newline at end of file diff --git a/charts/nextcloud/values.yaml b/charts/nextcloud/values.yaml index 2e5d8df4..82de3596 100644 --- a/charts/nextcloud/values.yaml +++ b/charts/nextcloud/values.yaml @@ -410,6 +410,9 @@ service: port: 8080 loadBalancerIP: "" nodePort: nil + annotations: {} + ## Insert your annotations such as below + # test/test: pumuckel ## Enable persistence using Persistent Volume Claims ## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/