diff --git a/README.md b/README.md index f76fad7..9f386c9 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,7 @@ See values.yaml for full documentation | `service.annotations` | Service annotations | `{}` | | `ingress.enabled` | Enables Ingress | `false` | | `ingress.annotations` | Ingress annotations | `{}` | +| `ingress.labels` | Ingress extra labels | `{}` | | `ingress.hosts.host` | Ingress accepted hostnames | `privatebin.local` | | `ingress.hosts.paths` | Ingress paths | `[]` | | `ingress.hosts.paths.0.path` | Ingress path | `/` | diff --git a/charts/privatebin/templates/ingress.yaml b/charts/privatebin/templates/ingress.yaml index d58dd6a..0d59466 100644 --- a/charts/privatebin/templates/ingress.yaml +++ b/charts/privatebin/templates/ingress.yaml @@ -22,6 +22,9 @@ metadata: helm.sh/chart: {{ include "privatebin.chart" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} + {{- with .Values.ingress.labels }} + {{- toYaml . | nindent 4 }} + {{- end }} {{- with .Values.ingress.annotations }} annotations: {{- toYaml . | nindent 4 }} diff --git a/charts/privatebin/values.yaml b/charts/privatebin/values.yaml index 40d855f..094a31d 100644 --- a/charts/privatebin/values.yaml +++ b/charts/privatebin/values.yaml @@ -30,6 +30,7 @@ service: type: ClusterIP port: 80 portName: http + labels: {} annotations: {} ## Limit load balancer source ips to list of CIDRs (where available) # loadBalancerSourceRanges: []