Skip to content

Conversation

@wilmardo
Copy link
Contributor

Used the template and values that come with helm create chart to keep it inline with other charts with two small adaptions:

  • added servicePort to the HTTPRoute values
  • added labels to the HTTPRoute

Both to keep it functionally the same as the current ingress approach.

Output looks like this with it enabled:

# Source: haproxy/templates/httproute.yaml
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
  name: release-name-haproxy
  labels:
    helm.sh/chart: haproxy-1.26.1
    app.kubernetes.io/name: haproxy
    app.kubernetes.io/instance: release-name
    app.kubernetes.io/version: "3.2.6"
    app.kubernetes.io/managed-by: Helm
spec:
  parentRefs:
    - name: gateway
      sectionName: http
  hostnames:
    - chart-example.local
  rules:
    - matches:
        - path:
            type: PathPrefix
            value: /
      backendRefs:
        - name: release-name-haproxy
          port: 80

Signed-off-by: wilmarguida <w.denouden@guida.nl>
@dkorunic dkorunic self-assigned this Nov 21, 2025
@dkorunic dkorunic added the enhancement New feature or request label Nov 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants