<p>I'm trying to deploy Traefik as an ingress controller on my GKE cluster.
It's a basic cluster with 3 nodes.</p>

<p>I'm used to deploy Traefik using manifest on a Kubernetes cluster deployed by Kubespray, but we are migrating some of our infrastructures to GCP.</p>

<p>So I tried to deploy Traefik using the <a href="https://github.com/kubernetes/charts/tree/master/stable/traefik" rel="nofollow noreferrer">community helm chart</a> with the following configuration:</p>

<pre><code>image: traefik
imageTag: 1.6.2

serviceType: LoadBalancer
loadBalancerIP: X.X.X.X

kubernetes:
  ingressClass: traefik

ssl:
  enabled: false
  enforced: false
  insecureSkipVerify: false

acme:
  enabled: false
  email: hello@mydomain.com
  staging: true
  logging: false
  challengeType: http-01

dashboard:
  enabled: true
  domain: traefik.mydomain.com
  ingress:
    annotations:
      kubernetes.io/ingress.class: traefik

gzip:
  enabled: true
accessLogs:
  enabled: true
  format: common 
</code></pre>

<p>And then launch it with the following command:</p>

<pre><code>helm install --namespace kube-system --name traefik --values values.yaml stable/traefik
</code></pre>

<p>All is well deployed on my K8S cluster, except the dashboard-ingress with the following error:</p>

<pre><code>kevin@MBP-de-Kevin ~/W/g/s/traefik&gt; kubectl describe ingress traefik-dashboard -n kube-system
Name:             traefik-dashboard
Namespace:        kube-system
Address:
Default backend:  default-http-backend:80 (10.20.2.6:8080)
Rules:
  Host                      Path  Backends
  ----                      ----  --------
  traefik.mydomain.com
                               traefik-dashboard:80 (10.20.1.14:8080)
Annotations:
Events:
  Type     Reason  Age   From                     Message
  ----     ------  ----  ----                     -------
  Warning  Sync    4m    loadbalancer-controller  googleapi: Error 400: Invalid value for field 'namedPorts[2].port': '0'. Must be greater than or equal to 1, invalid
</code></pre>

<p>Any idea where is my error?</p>

<p>Thanks a lot!</p>

Kévin Printz
<pre><code>Invalid value for field 'namedPorts[0].port': '0'
</code></pre>

<p>This error happens when the <code>Service</code> that's being used by GKE Ingress is of type <code>ClusterIP</code> (and not <code>NodePort</code>). GKE Ingress requires backing Services to be of type NodePort.</p>
