<p>Here is my ingress.yml file</p>
<pre><code>spec:
  rules:
  - host: {{- if .Values.ingress.host }} {{ tpl .Values.ingress.host . }} {{- end }}
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: ssl-redirect
            port:
              name: use-annotation
      {{- range $port := .Values.container.app.port }}
      - path: {{ tpl $port.path $ }}
        pathType: Prefix
        backend:
          service:
            name: {{ $.Release.Name }}
            port:
              number: {{ int $port.port }}
      {{- end }}
{{ end }}
</code></pre>
<p>I want to override this rules some service here is what I try to do in my values.yml file</p>
<pre><code>ingress:
  scheme: internal
  host: test.com
  paths:
    - path: /
      pathType: Prefix
      backend:
        service:
          name: ssl-redirect
          port:
            name: use-annotation
    - path: /
      pathType: Prefix
      backend:
        service:
          name: test
          port:
            number: 3000
</code></pre>
<p>but after I deploy it's not override at all may be in wrong format not sure</p>
<h4>UPDATE</h4>
<p>I try to this way but It still didn't override rules in ingress</p>
<pre><code>hosts:
  - host: test.com
    paths:
      - path: /test
        pathType: Prefix
        backend:
          service:
            name: ssl-redirect
            port:
              name: use-annotation
      - path: /test
        pathType: Prefix
        backend:
          service:
            name: test-dev
            port:
              number: 3000
</code></pre>

new dev
<p><code>ingress.yaml</code> should be something like</p>
<pre><code>kind: Ingress
metadata:
  name: {{ $name }}
  labels:
    app.kubernetes.io/instance: {{ .Release.Name }}
    app.kubernetes.io/managed-by: {{ .Release.Service }}
  {{- with $_annotations }}
  annotations:
    {{- toYaml . | nindent 4 }}
  {{- end }}
spec:
{{- if .Values.ingress.tls }}
  tls:
  {{- range .Values.ingress.tls }}
    - hosts:
      {{- range .hosts }}
        - {{ . | quote }}
      {{- end }}
      secretName: {{ .secretName }}
  {{- end }}
{{- end }}
  rules:
  {{- range .Values.ingress.hosts }}
    - host: {{ .host | quote }}
      http:
        paths:
        {{- range .paths }}
          - path: {{ . }}
            backend:
              serviceName: {{ $name }}
              servicePort: 80
        {{- end }}
  {{- end }}
{{- end }}
</code></pre>
<p><strong>values.yaml</strong></p>
<pre><code>ingress:
  enabled: false
  annotations: {}
  # kubernetes.io/ingress.class: nginx
  # kubernetes.io/tls-acme: &quot;true&quot;
  hosts:
    - host: test.example.io
      paths: [/path]

  # tls: []
  #  - secretName: chart-example-tls
  #    hosts:
  #      - chart-example.local
</code></pre>
<p><strong>Another example :</strong></p>
<p><strong>Ingress.yaml</strong> : <a href="https://github.com/helm/charts/blob/master/stable/ghost/templates/ingress.yaml" rel="nofollow noreferrer">https://github.com/helm/charts/blob/master/stable/ghost/templates/ingress.yaml</a></p>
<p><strong>values.yaml</strong> : <a href="https://github.com/helm/charts/blob/master/stable/ghost/values.yaml" rel="nofollow noreferrer">https://github.com/helm/charts/blob/master/stable/ghost/values.yaml</a></p>
