Merge pull request #1324 from lukemarsden/official-packages
Official packagesreviewable/pr1303/r1^2
commit
42a8241539
|
@ -55,26 +55,34 @@ For each host in turn:
|
||||||
* SSH into the machine and become `root` if you are not already (for example, run `sudo su -`).
|
* SSH into the machine and become `root` if you are not already (for example, run `sudo su -`).
|
||||||
* If the machine is running Ubuntu 16.04, run:
|
* If the machine is running Ubuntu 16.04, run:
|
||||||
|
|
||||||
# apt-get install -y docker.io socat apt-transport-https
|
# curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
|
||||||
# curl -s -L \
|
# cat <<EOF > /etc/apt/sources.list.d/kubernetes.list
|
||||||
https://storage.googleapis.com/kubeadm/kubernetes-xenial-preview-bundle.txz | tar xJv
|
deb http://apt.kubernetes.io/ kubernetes-xenial main
|
||||||
# dpkg -i kubernetes-xenial-preview-bundle/*.deb
|
EOF
|
||||||
|
# apt-get update
|
||||||
|
# apt-get install -y kubelet kubeadm kubectl kubernetes-cni
|
||||||
|
|
||||||
If the machine is running CentOS 7, run:
|
If the machine is running CentOS 7, run:
|
||||||
|
|
||||||
# cat <<EOF > /etc/yum.repos.d/k8s.repo
|
# cat <<EOF > /etc/yum.repos.d/kubernetes.repo
|
||||||
[kubelet]
|
[kubernetes]
|
||||||
name=kubelet
|
name=Kubernetes
|
||||||
baseurl=http://files.rm-rf.ca/rpms/kubelet/
|
baseurl=http://yum.kubernetes.io/repos/kubernetes-el7-x86_64
|
||||||
enabled=1
|
enabled=1
|
||||||
gpgcheck=0
|
gpgcheck=1
|
||||||
|
repo_gpgcheck=1
|
||||||
|
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg
|
||||||
|
https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
|
||||||
EOF
|
EOF
|
||||||
# yum install docker kubelet kubeadm kubectl kubernetes-cni
|
# setenforce 0
|
||||||
|
# yum install -y kubelet kubeadm kubectl kubernetes-cni
|
||||||
# systemctl enable docker && systemctl start docker
|
# systemctl enable docker && systemctl start docker
|
||||||
# systemctl enable kubelet && systemctl start kubelet
|
# systemctl enable kubelet && systemctl start kubelet
|
||||||
|
|
||||||
The kubelet is now restarting every few seconds, as it waits in a crashloop for `kubeadm` to tell it what to do.
|
The kubelet is now restarting every few seconds, as it waits in a crashloop for `kubeadm` to tell it what to do.
|
||||||
|
|
||||||
|
Note: `setenforce 0` will no longer be necessary on CentOS once [#33555](https://github.com/kubernetes/kubernetes/pull/33555) is included in a released version of `kubeadm`.
|
||||||
|
|
||||||
### (2/4) Initializing your master
|
### (2/4) Initializing your master
|
||||||
|
|
||||||
The master is the machine where the "control plane" components run, including `etcd` (the cluster database) and the API server (which the `kubectl` CLI communicates with).
|
The master is the machine where the "control plane" components run, including `etcd` (the cluster database) and the API server (which the `kubectl` CLI communicates with).
|
||||||
|
@ -82,7 +90,7 @@ All of these components run in pods started by `kubelet`.
|
||||||
|
|
||||||
To initialize the master, pick one of the machines you previously installed `kubelet` and `kubeadm` on, and run:
|
To initialize the master, pick one of the machines you previously installed `kubelet` and `kubeadm` on, and run:
|
||||||
|
|
||||||
# kubeadm init --use-kubernetes-version v1.4.0-beta.11
|
# kubeadm init
|
||||||
|
|
||||||
This will download and install the cluster database and "control plane" components.
|
This will download and install the cluster database and "control plane" components.
|
||||||
This may take several minutes.
|
This may take several minutes.
|
||||||
|
|
Loading…
Reference in New Issue