-1

With this setup I was able to get 'global' settings for haproxy ingress controller. Can I modify this settings to change configuration on a host or path level?

apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: gn-ingress namespace: gn annotations: kubernetes.io/ingress.class: haproxy haproxy.org/backend-config-snippet: | timeout server 600s timeout client 600s timeout http-request 60s spec: rules: - host: "myhost1.org" http: paths: - path: / pathType: Prefix backend: service: name: myhost port: number: 80 

1 Answer 1

0

Annotations can only be applied to the whole kubernetes resource because they are part of the resource metadata. One way to solve this is to create separate Ingress resources for each host or path with specific settings.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.