Jump to content

Kubernetes: Difference between revisions

252 bytes added ,  20 January 2022
Line 221: Line 221:
}}
}}
To set settings per-ingress, add the following to your ingress definition:
To set settings per-ingress, add the following to your ingress definition:
{{hidden | ingress |
{{hidden | example ingress |
<syntaxhighlight lang="yaml">
<syntaxhighlight lang="yaml">
apiVersion: networking.k8s.io/v1
apiVersion: networking.k8s.io/v1
kind: Ingress
kind: Ingress
metadata:
metadata:
  name: nextcloud
   annotations:
   annotations:
     nginx.ingress.kubernetes.io/proxy-body-size: 10g
     nginx.ingress.kubernetes.io/proxy-body-size: 10g
spec:
  rules:
  - host: "cloud.davidl.me"
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: nextcloud-app-service
            port:
              number: 80
</syntaxhighlight>
</syntaxhighlight>
}}
}}