<p dir="auto"><strong>Is this a request for help?</strong> (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.):</p>
<p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.):</p>
<hr>
<p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one): BOTH</p>

<p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):<br>
1.5 custom built master</p>
<p dir="auto"><strong>Environment</strong>:</p>
<ul dir="auto">
<li><strong>Cloud provider or hardware configuration</strong>: azure</li>
<li><strong>OS</strong> (e.g. from /etc/os-release): CentOS 7.2</li>
<li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>): Linux ma-kub8ms0 3.10.0-327.36.3.el7.x86_64 <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="35192559" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/1" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/1/hovercard" href="https://github.com/kubernetes/kubernetes/issues/1">#1</a> SMP Mon Oct 24 16:09:20 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux</li>
<li><strong>Install tools</strong>: ansible + kubeadm</li>
<li><strong>Others</strong>:</li>
</ul>
<p dir="auto"><strong>What happened</strong>:<br>
When passing --cloud-provider to kubeadm, the flag is only passed to the controller manager. It is however not passed to the kubelet, which makes Azure Disk mounting (and probably other cloud features?) not work. Also, the --cloud-config flag is not passed into the kubelet.</p>
<p dir="auto">It looks like the kubelet is able to figure out the appropriate cloud provider (azure) by itself. Not sure how it does this, maybe it gets a hint from the controller manager. Nevertheless, if users provide a cloud provider to kubeadm, this one should be explicitly passed to all services which offer such an option. Also, the (correct) auto guessing does not help when there is no cloud config given to the kubelet.</p>
<p dir="auto">I currently have to provide a custom systemd dropin which overrides the KUBELET_EXTRA_ARGS env var.</p>
<p dir="auto">An idea how to fix this: Add an optional environment file (/etc/kubernetes/kubeadm-kubelet-args.env) to the 10-kubeadm.conf dropin. The kubeadm could then write appropriate cloud-config (and other?) flags to this file.</p>
<p dir="auto"><strong>Is this a request for help?</strong> (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.): no</p>
<p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.): kubeadm</p>
<hr>
<p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one): BUG REPORT</p>

<p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ kubectl version
Client Version: version.Info{Major:&quot;1&quot;, Minor:&quot;4&quot;, GitVersion:&quot;v1.4.0&quot;, GitCommit:&quot;a16c0a7f71a6f93c7e0f222d961f4675cd97a46b&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2016-09-26T18:16:57Z&quot;, GoVersion:&quot;go1.6.3&quot;, Compiler:&quot;gc&quot;, Platform:&quot;linux/amd64&quot;}
Server Version: version.Info{Major:&quot;1&quot;, Minor:&quot;4&quot;, GitVersion:&quot;v1.4.0&quot;, GitCommit:&quot;a16c0a7f71a6f93c7e0f222d961f4675cd97a46b&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2016-09-26T18:10:32Z&quot;, GoVersion:&quot;go1.6.3&quot;, Compiler:&quot;gc&quot;, Platform:&quot;linux/amd64&quot;}"><pre class="notranslate"><code class="notranslate">$ kubectl version
Client Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.0", GitCommit:"a16c0a7f71a6f93c7e0f222d961f4675cd97a46b", GitTreeState:"clean", BuildDate:"2016-09-26T18:16:57Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.0", GitCommit:"a16c0a7f71a6f93c7e0f222d961f4675cd97a46b", GitTreeState:"clean", BuildDate:"2016-09-26T18:10:32Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}
</code></pre></div>
<p dir="auto"><strong>Environment</strong>: fresh install by kubeadm on Ubuntu 16.04</p>
<ul dir="auto">
<li><strong>Cloud provider or hardware configuration</strong>: VirtualBox VM, host = x86_64 = guest</li>
<li><strong>OS</strong> (e.g. from /etc/os-release): 16.04 LTS (Xenial Xerus)</li>
<li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>): Linux mvespa4-2 4.4.0-43-generic <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="35518434" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/63" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/63/hovercard" href="https://github.com/kubernetes/kubernetes/pull/63">#63</a>-Ubuntu SMP Wed Oct 12 13:48:03 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux</li>
<li><strong>Install tools</strong>: apt, kubeam</li>
<li><strong>Others</strong>:</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ sudo docker info
Containers: 14
 Running: 12
 Paused: 0
 Stopped: 2
Images: 8
Server Version: 1.12.2
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 49
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: null host bridge overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options: apparmor seccomp
Kernel Version: 4.4.0-43-generic
Operating System: Ubuntu 16.04 LTS
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 7.796 GiB
Name: mvespa4-2
ID: 33RL:MPT4:RYCF:HH2K:POGH:MPGE:NID7:VVV6:IMYC:2NYU:BECI:YQQZ
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
WARNING: No swap limit support
Insecure Registries:
 127.0.0.0/8"><pre class="notranslate"><code class="notranslate">$ sudo docker info
Containers: 14
 Running: 12
 Paused: 0
 Stopped: 2
Images: 8
Server Version: 1.12.2
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 49
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: null host bridge overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options: apparmor seccomp
Kernel Version: 4.4.0-43-generic
Operating System: Ubuntu 16.04 LTS
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 7.796 GiB
Name: mvespa4-2
ID: 33RL:MPT4:RYCF:HH2K:POGH:MPGE:NID7:VVV6:IMYC:2NYU:BECI:YQQZ
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
WARNING: No swap limit support
Insecure Registries:
 127.0.0.0/8
</code></pre></div>
<p dir="auto"><strong>What happened</strong>:<br>
I am following the instructions at <a href="http://kubernetes.io/docs/getting-started-guides/kubeadm/" rel="nofollow">http://kubernetes.io/docs/getting-started-guides/kubeadm/</a> .  I have done the first two steps.  I discovered that the installed version of kubernetes is 1.4.0.  For example, the manifest for the API server says the image to use is <code class="notranslate">gcr.io/google_containers/kube-apiserver-amd64:v1.4.0</code>.<br>
FYI:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ dpkg -l 'kube*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                    Version          Architecture     Description
+++-=======================-================-================-====================================================
ii  kubeadm                 1.5.0-alpha.0-15 amd64            Kubernetes Cluster Bootstrapping Tool
ii  kubectl                 1.4.0-00         amd64            Kubernetes Command Line Tool
ii  kubelet                 1.4.0-00         amd64            Kubernetes Node Agent
ii  kubernetes-cni          0.3.0.1-07a8a2-0 amd64            Kubernetes CNI"><pre class="notranslate"><code class="notranslate">$ dpkg -l 'kube*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                    Version          Architecture     Description
+++-=======================-================-================-====================================================
ii  kubeadm                 1.5.0-alpha.0-15 amd64            Kubernetes Cluster Bootstrapping Tool
ii  kubectl                 1.4.0-00         amd64            Kubernetes Command Line Tool
ii  kubelet                 1.4.0-00         amd64            Kubernetes Node Agent
ii  kubernetes-cni          0.3.0.1-07a8a2-0 amd64            Kubernetes CNI
</code></pre></div>
<p dir="auto"><strong>What you expected to happen</strong>:<br>
The latest release is currently 1.4.1 and <a href="http://kubernetes.io/docs/admin/kubeadm/#kubeadm-init" rel="nofollow">http://kubernetes.io/docs/admin/kubeadm/#kubeadm-init</a> says I should expect that to be the version I got (it says "--use-kubernetes-version (default ‘v1.4.1’) the kubernetes version to initialise").</p>
<p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):<br>
Follow the first two steps of the cited doc, starting from a fresh Ubuntu 16.04 machine with Docker 1.12.2.</p>
<p dir="auto"><strong>Anything else do we need to know</strong>:</p>