{{- if .Values.varnish.enabled -}}
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: {{ template "name" . }}-varnish
  labels:
    app: {{ template "name" . }}-varnish
    chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
    release: {{ .Release.Name }}
    heritage: {{ .Release.Service }}
spec:
  replicas: {{ .Values.varnish.replicaCount }}
  template:
    metadata:
      labels:
        app: {{ template "name" . }}-varnish
        release: {{ .Release.Name }}
    spec:
      containers:
        - name: {{ .Chart.Name }}-varnish
          image: "{{ .Values.varnish.repository }}:{{ .Values.varnish.tag }}"
          imagePullPolicy: {{ .Values.varnish.pullPolicy }}
          command: ["varnishd"]
          args: ["-F", "-f", "/usr/local/etc/varnish/default.vcl", "-p", "http_resp_hdr_len=65536", "-p", "http_resp_size=98304"]
          ports:
            - containerPort: 80
            livenessProbe:
              httpGet:
                path: /healthz
            readinessProbe:
              httpGet:
                path: /healthz
          resources:
{{ toYaml .Values.resources | indent 12 }}
    {{- if .Values.nodeSelector }}
      nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
    {{- end }}
{{- end -}}

{{- if .Values.varnish.enabled -}}
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: {{ template "name" . }}-varnish
  labels:
    app: {{ template "name" . }}-varnish
    chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
    release: {{ .Release.Name }}
    heritage: {{ .Release.Service }}
spec:
  replicas: {{ .Values.varnish.replicaCount }}
  template:
    metadata:
      labels:
        app: {{ template "name" . }}-varnish
        release: {{ .Release.Name }}
    spec:
      containers:
        - name: {{ .Chart.Name }}-varnish
          image: "{{ .Values.varnish.repository }}:{{ .Values.varnish.tag }}"
          imagePullPolicy: {{ .Values.varnish.pullPolicy }}
          command: ["varnishd"]
          args: ["-F", "-f", "/usr/local/etc/varnish/default.vcl", "-p", "http_resp_hdr_len=65536", "-p", "http_resp_size=98304"]
          ports:
            - containerPort: 80
          livenessProbe:
            httpGet:
              path: /healthz
          readinessProbe:
            httpGet:
              path: /healthz
          resources:
{{ toYaml .Values.resources | indent 12 }}
    {{- if .Values.nodeSelector }}
      nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
    {{- end }}
{{- end -}}

Fix typo in varnish deployment
Fix typo in varnish deployment
