Options to disable ingress objects

This commit is contained in:
Jan-Otto Kröpke 2018-06-23 19:37:59 +02:00 committed by Jan-Otto Kröpke
parent dd4c565aff
commit 668b2625e3
3 changed files with 6 additions and 0 deletions

View File

@ -211,6 +211,8 @@ The following tables lists the configurable parameters of the Harbor chart and t
| `notary.nodeSelector` | Node labels for pod assignment | `{}` |
| `notary.tolerations` | Tolerations for pod assignment | `[]` |
| `notary.affinity` | Node/Pod affinities | `{}` |
| **Ingress** |
| `ingress.enabled` | Enable ingress objects. | `true` |
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example:

View File

@ -1,3 +1,4 @@
{{ if .Values.ingress.enabled }}
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
@ -56,3 +57,5 @@ spec:
serviceName: {{ template "harbor.fullname" . }}-ui
servicePort: 80
{{ end }}

View File

@ -51,6 +51,7 @@ secretKey: not-a-secure-key
# These annotations allow the registry to work behind the nginx
# ingress controller.
ingress:
enabled: true
annotations:
ingress.kubernetes.io/ssl-redirect: "true"
ingress.kubernetes.io/proxy-body-size: "0"