chore: update ingress configurations
- Enable snippet annotations for nginx ingress controller - Comment out a previous configuration snippet that redirects JPG files This update allows the use of snippet annotations, giving more control over ingress configurations. The previously commented snippet suggested a redirect for JPG files but is now ignored to simplify configuration and focus on the current requirements.
This commit is contained in:
parent
3cc13338d3
commit
1eca4d3fd1
@ -6,6 +6,10 @@ metadata:
|
||||
namespace: imagehost
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: "dnspod-cluster-issuer"
|
||||
#nginx.ingress.kubernetes.io/configuration-snippet: |
|
||||
# location ~ ^/([^/]+\.jpg)$ {
|
||||
# return 301 $scheme://$host/i/$1;
|
||||
# }
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
tls:
|
||||
|
@ -98,7 +98,7 @@ controller:
|
||||
# their own *-snippet annotations, otherwise this is forbidden / dropped
|
||||
# when users add those annotations.
|
||||
# Global snippets in ConfigMap are still respected
|
||||
allowSnippetAnnotations: false
|
||||
allowSnippetAnnotations: true
|
||||
# -- Required for use with CNI based kubernetes installations (such as ones set up by kubeadm),
|
||||
# since CNI and hostport don't mix yet. Can be deprecated once https://github.com/kubernetes/kubernetes/issues/23920
|
||||
# is merged
|
||||
|
Loading…
Reference in New Issue
Block a user