<p>I know this is some kind of syntax/yaml structure related error but the message is so cryptic I have no idea what the issue is:</p>

<pre><code>Error: render error in "mychart/templates/ingress.yaml": template: mychart/templates/ingress.yaml:35:37: executing "mychart/templates/ingress.yaml" at &lt;.Values.network.appP...&gt;: can't evaluate field Values in type interface {}
</code></pre>

<p>This is in my values.yaml:</p>

<pre><code>network:
  appPort: 4141
</code></pre>

<p>This is the ingress.yaml:</p>

<pre><code>{{- $fullName := include "mychart.fullname" . -}}
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: {{ $fullName }}
  labels:
    app.kubernetes.io/name: {{ include "mychart.name" . }}
    helm.sh/chart: {{ include "mychart.chart" . }}
    app.kubernetes.io/instance: {{ .Release.Name }}
    app.kubernetes.io/managed-by: {{ .Release.Service }}
  {{- with .Values.ingress.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: {{ $fullName }}
              servicePort: {{ .Values.network.appPort }}
        {{- end }}
  {{- end }}
</code></pre>

<p>Why doesn't <code>{{ .Values.network.appPort }}</code> work? I have used values with this same structure in other places</p>

<p>Isn't it just scope issue? </p>

<p>Try something as below</p>

<pre><code>{{- $fullName := include "mychart.fullname" . -}}
{{- $networkAppPort  := .Values.network.appPort -}}
...
.... omitted code
...
      http:
        paths:
        {{- range .paths }}
          - path: {{ . }}
            backend:
              serviceName: {{ $fullName }}
              servicePort: {{ $networkAppPort }}
        {{- end }}
  {{- end }}
</code></pre>
