diff --git a/charts/portainer/Chart.yaml b/charts/portainer/Chart.yaml index ad1399f..68257f6 100644 --- a/charts/portainer/Chart.yaml +++ b/charts/portainer/Chart.yaml @@ -16,7 +16,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. -version: 1.0.2 +version: 1.0.3 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. diff --git a/charts/portainer/README.md b/charts/portainer/README.md index 2e30f78..d7f6af4 100644 --- a/charts/portainer/README.md +++ b/charts/portainer/README.md @@ -68,6 +68,7 @@ The following table lists the configurable parameters of the Portainer chart and | `service.httpNodePort` | Static NodePort for accessing Portainer Web. Specify only if the type is NodePort | `30777` | | `service.edgePort` | TCP port for accessing Portainer Edge | `8000` | | `service.edgeNodePort` | Static NodePort for accessing Portainer Edge. Specify only if the type is NodePort | `30776` | +| `service.annotations` | Annotations to add to the service | `{}` | | `ingress.enabled` | Create an ingress for Portainer | `false` | | `ingress.annotations` | Annotations to add to the ingress. For instane, `kubernetes.io/ingress.class: nginx` | `{}` | | `ingress.hosts.host` | URL for Portainer Web. For instance, `portainer.example.io` | `nil` | diff --git a/charts/portainer/templates/service.yaml b/charts/portainer/templates/service.yaml index c9292fe..9e35d77 100644 --- a/charts/portainer/templates/service.yaml +++ b/charts/portainer/templates/service.yaml @@ -6,6 +6,12 @@ metadata: labels: io.portainer.kubernetes.application.stack: portainer {{- include "portainer.labels" . | nindent 4 }} + {{- if .Values.service.annotations }} + annotations: + {{- range $key, $value := .Values.service.annotations }} + {{ $key }}: {{ $value | quote }} + {{- end }} + {{- end }} spec: type: {{ .Values.service.type }} ports: diff --git a/charts/portainer/values.yaml b/charts/portainer/values.yaml index 703d708..aa5b0d3 100644 --- a/charts/portainer/values.yaml +++ b/charts/portainer/values.yaml @@ -24,6 +24,7 @@ service: httpNodePort: 30777 edgePort: 8000 edgeNodePort: 30776 + annotations: {} ingress: enabled: false