zabbix-community / helm-zabbix

Helm chart for Zabbix
https://artifacthub.io/packages/helm/zabbix-community/zabbix
Apache License 2.0
79 stars 45 forks source link

[zabbix-community/zabbix] Ingress won't created #28

Closed Anton-Kartashev closed 1 year ago

Anton-Kartashev commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

I have set ingress.enabled=true and this error occurs. Using helm chart of ingress-nginx-4.4.3

Version of Helm and Kubernetes:

version.BuildInfo{Version:"v3.10.1", GitCommit:"9f88ccb6aee40b9a0535fcc7efea6055e1ef72c9", GitTreeState:"clean", GoVersion:"go1.18.7"}

Kubernetes v1.23.16

What happened:

Error: UPGRADE FAILED: failed to create resource: admission webhook "validate.nginx.ingress.kubernetes.io" denied the request:

Error: exit status 1 2023/02/03 11:19:30 [warn] 301#301: the "http2_max_field_size" directive is obsolete, use the "large_client_header_buffers" directive instead in /tmp/nginx/nginx-cfg123959980:144 nginx: [warn] the "http2_max_field_size" directive is obsolete, use the "large_client_header_buffers" directive instead in /tmp/nginx/nginx-cfg123959980:144 2023/02/03 11:19:30 [warn] 301#301: the "http2_max_header_size" directive is obsolete, use the "large_client_header_buffers" directive instead in /tmp/nginx/nginx-cfg123959980:145 nginx: [warn] the "http2_max_header_size" directive is obsolete, use the "large_client_header_buffers" directive instead in /tmp/nginx/nginx-cfg123959980:145 2023/02/03 11:19:30 [warn] 301#301: the "http2_max_requests" directive is obsolete, use the "keepalive_requests" directive instead in /tmp/nginx/nginx-cfg123959980:146 nginx: [warn] the "http2_max_requests" directive is obsolete, use the "keepalive_requests" directive instead in /tmp/nginx/nginx-cfg123959980:146 2023/02/03 11:19:30 [emerg] 301#301: duplicate location "/" in /tmp/nginx/nginx-cfg123959980:574 nginx: [emerg] duplicate location "/" in /tmp/nginx/nginx-cfg123959980:574 nginx: configuration file /tmp/nginx/nginx-cfg123959980 test failed

What you expected to happen:

Create ingress route.

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know:

Anton-Kartashev commented 1 year ago
Ingress config:

# Ingress configurations
ingress:
  # -- Enables Ingress
  enabled: true
  # -- Ingress annotations
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt
    kubernetes.io/tls-acme: "true"
    # kubernetes.io/ingress.class: nginx
  # -- Ingress hosts
  hosts:
    - host: {domain}
      paths:
        - path: /
          pathType: ImplementationSpecific
  # -- Ingress TLS configuration
  tls:
   - secretName: zabbix-tls
     hosts:
       - {domain}
  # For Kubernetes >= 1.18 you should specify the ingress-controller via the field ingressClassName
  # See https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#specifying-the-class-of-an-ingress
  ingressClassName: nginx-zabbix
  # -- pathType is only for k8s >= 1.1=
  # pathType: Prefix
Anton-Kartashev commented 1 year ago

Hmm, this bug related new version of nginx ingress, downgraded to previous.