<p>I'm trying to configure the spinnaker to deploy applications in kubernetes environment. </p>

<p>I followed a <a href="http://www.spinnaker.io/docs/kubernetes-source-to-prod" rel="nofollow">documentation</a>, 
at <a href="http://www.spinnaker.io/docs/kubernetes-source-to-prod#section-3-create-a-demo-server-group" rel="nofollow">step-3</a> the containers are not showing up as shown in the <a href="https://files.readme.io/JRMxxbaSQ1mmD5VH8EtD_firstSG1.png" rel="nofollow">screenshot</a>. Then I moved to next <a href="http://www.spinnaker.io/docs/kubernetes-source-to-prod#section-4-git-to-_dev_-pipeline" rel="nofollow">step</a>(Pipeline creation), when I select <code>type: Docker</code> in the <code>Automated Trigger</code>, again the <code>Repo name</code> is not showing up as shown in <a href="https://files.readme.io/ZV0WoYPyTQSwLJ1CvysC_dockertrigger.png" rel="nofollow">screenshot</a>. </p>

<p><strong>So, I'm suspecting there is problem with spinnaker and docker hub repo(Authentication/Misconfiguration?)</strong></p>

<p>I have copied the Kubernetes Authentication config file to <code>~/.kube/config</code>. I think there is no problem with spinnaker and kubernetes. When I create a <code>Load Balancer</code> in spinnaker I can see <code>Kube Services</code> are creating (test-dev &amp; test-prod)</p>

<pre><code>root@veeru:~# kubectl get services
NAME                CLUSTER-IP      EXTERNAL-IP   PORT(S)                      AGE
kubernetes          192.168.3.1     &lt;none&gt;        443/TCP                      91d
test-dev            192.168.3.113   &lt;none&gt;        80/TCP                       6h
test-prod           192.168.3.185                 80/TCP                       6h
</code></pre>

<p>My <code>spinnaker-local.yml</code></p>

<pre><code>&lt;Content removed for brevity&gt;

  kubernetes:
    # For more information on configuring Kubernetes clusters (kubernetes), see
    # http://www.spinnaker.io/v1.0/docs/target-deployment-setup#section-kubernetes-cluster-setup

    # NOTE: enabling kubernetes also requires enabling dockerRegistry.
    enabled: true
    primaryCredentials:
      # These credentials use authentication information at ~/.kube/config
      # by default.
      name: veerendrav2
      namespace: default
      dockerRegistryAccount: veerendrav2

  dockerRegistry:
    # If you want to deploy containers to a container management solution,
    # you must specifiy where these container images exist first.

    # NOTE: Enabling dockerRegistry is independent of other providers.
    # However, for convienience, we tie docker and kubernetes together
    # since kubernetes (and only kubernetes) depends on this docker provider
    # configuration.
    enabled: true

    primaryCredentials:
      name: veerendrav2
      address: https://hub.docker.com
      repository: veerendrav2/spin-kub-demo

&lt;Content removed for brevity&gt; 
</code></pre>

<p>My <code>/opt/spinnaker/config/clouddriver-local.yml</code></p>

<pre><code>dockerRegistry:
  enabled: true
  accounts:
    - name: veerendrav2
      address: https://hub.docker.com/ # Point to registry of choice
      username: veerendrav2
      password: password
      repositories:
        - veerendrav2/spin-kub-demo
</code></pre>

<p>My Sample application <a href="https://github.com/veerendra2/spin-kub-demo" rel="nofollow">github repo</a> and <a href="https://hub.docker.com/r/veerendrav2/spin-kub-demo/" rel="nofollow">docker hub repo</a></p>

<p>Thanks</p>

<p>In <code>/opt/spinnaker/config/clouddriver-local.yml</code> you likely need to change the <code>dockerRegistry.accounts[0].address</code> field to <code>https://index.docker.io</code>, since DockerHub's registry isn't hosted on <code>hub.docker.com</code>, but on <code>index.docker.io</code>.</p>
