5,321
edits
Line 329: | Line 329: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
}} | }} | ||
To set settings per-ingress, add the | To set settings per-ingress, add the annotation to your ingress definition: | ||
{{hidden | example ingress | | {{hidden | example ingress | | ||
<syntaxhighlight lang="yaml"> | <syntaxhighlight lang="yaml"> | ||
Line 337: | Line 337: | ||
name: nextcloud | name: nextcloud | ||
annotations: | annotations: | ||
cert-manager.io/issuer: letsencrypt-prod | |||
nginx.ingress.kubernetes.io/proxy-body-size: 10g | nginx.ingress.kubernetes.io/proxy-body-size: 10g | ||
spec: | spec: | ||
tls: | |||
- secretName: cloud-davidl-me-tls | |||
hosts: | |||
- cloud.davidl.me | |||
rules: | rules: | ||
- host: cloud.davidl.me | |||
http: | |||
paths: | |||
- path: / | |||
pathType: Prefix | |||
backend: | |||
service: | |||
name: nextcloud-app-service | |||
port: | |||
number: 80 | |||
</syntaxhighlight> | </syntaxhighlight> | ||
}} | }} | ||
If your backend uses HTTPS, you will need to add the annotation: <code>nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"</code> | |||
==Autoscaling== | ==Autoscaling== |