Package Details: kubernetes-bin 1.14.0-0

Git Clone URL: https://aur.archlinux.org/kubernetes-bin.git (read-only)
Package Base: kubernetes-bin
Description: Production-Grade Container Scheduling and Management - binary version.
Upstream URL: http://kubernetes.io/
Keywords: kubernetes
Licenses: Apache
Conflicts: kubeadm-bin, kubeadm-git, kubectl, kubectl-bin, kubelet-bin, kubernetes
Provides: hyperkube, kube-apiserver, kube-controller-manager, kube-proxy, kube-scheduler, kubeadm, kubectl, kubelet, kubernetes
Submitter: moscar
Maintainer: duxet (icebal)
Last Packager: icebal
Votes: 13
Popularity: 0.626813
First Submitted: 2017-04-29 15:27
Last Updated: 2019-04-09 17:42

Dependencies (1)

Required by (15)

Sources (7)

Pinned Comments

icebal commented on 2019-02-07 00:43

updated to 1.13.3

tunggad commented on 2018-12-26 12:27

To save you time searching the net for solutions why your kubeadm init could not run successfully, it complains about kubelet, that it is not running or not healthy. This AUR package is not intented to use kubeadm init to setup a cluster, it's intention to setup a cluster from scratch, where all control plane components (kube-apiserver, kube-scheduler, kube-controller-manager) and kube-proxy run as systemd service. But in a cluster setup by kubeadm init these components will be deployed as Pods (kube-system Pods). So if you want to use this AUR package to setup a cluster with kubeadm init, do the followings tweaks:

I tried to mimic the unit file and the drop-in file /etc/systemd/system/kubelet.service.d/10-kubeadm.conf, normally available in DEB or RPM package of other distros, but missing in this AUR package, changing the systemd unit file and it's referenced EnvironmentFiles. The result looks like that:

--- /usr/lib/systemd/system/kubelet.service ---

[Unit]

Description=Kubernetes Kubelet Server

Documentation=https://github.com/GoogleCloudPlatform/kubernetes

[Service] WorkingDirectory=/var/lib/kubelet

EnvironmentFile=-/etc/kubernetes/config

EnvironmentFile=-/etc/kubernetes/kubelet

ExecStart=/usr/bin/kubelet \ $KUBE_LOGTOSTDERR \ $KUBE_LOG_LEVEL \ $KUBELET_API_SERVER \ $KUBELET_ADDRESS \ $KUBELET_PORT \ $KUBELET_HOSTNAME \ $KUBE_ALLOW_PRIV \ $KUBELET_ARGS

Restart=always

StartLimitInterval=0

RestartSec=10

[Install]

WantedBy=multi-user.target

--- EnvironmentFile: /etc/kubernetes/config ---

logging to stderr means we get it in the systemd journal

KUBE_LOGTOSTDERR="--logtostderr=true"

journal message level, 0 is debug

KUBE_LOG_LEVEL="--v=0"

--- EnvironmentFile: /etc/kubernetes/kubelet ---

KUBELET_ARGS="--bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf --config=/var/lib/kubelet/config.yaml --cgroup-driver=cgroupfs --network-plugin=cni --pod-infra-container-image=k8s.gcr.io/pause:3.1"

systemctl status kubelet should look like that:

● kubelet.service - Kubernetes Kubelet Server Loaded: loaded (/usr/lib/systemd/system/kubelet.service; enabled; vendor preset: disabled) Active: active (running) since Sun 2018-12-23 22:54:48 UTC; 11h ago Docs: https://github.com/GoogleCloudPlatform/kubernetes Main PID: 325 (kubelet) Tasks: 24 (limit: 4915) Memory: 119.3M CGroup: /system.slice/kubelet.service └─325 /usr/bin/kubelet --logtostderr=true --v=0 --bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf --config=/var/lib/kubelet/config.yaml --cgroup-driver=cgroupfs --network-plugin=cni --pod-infra-container-image=k8s.gcr.io/pause:3.1

Run daemon-reload for the above changes to take effects

systemctl daemon-reload

Disable all of the following systemd services installed by this AUR package:

systemctl disable kube-apiserver
systemctl disable kube-controller-manager
systemctl disable kube-scheduler
systemctl disable kube-proxy

======> NOW YOU ARE FINE TO execute #kubeadm init

Without these tweaks your kubeadm init would not be able to start the kubelet.service it needs to setup the cluster for the first time and CNI networking addons (Calico or Flannel) would not work.

Also switch off all swap partitions if you have any, otherwise kubelet would not start! #sudo swapoff -a

Latest Comments

1 2 3 Next › Last »

slimjim2234 commented on 2019-05-25 02:46

install: cannot stat 'docs/man/man1/*': No such file or directory

zephrax commented on 2019-04-26 12:41

==> Starting package()... install: cannot stat 'docs/man/man1/*': No such file or directory ==> ERROR: A failure occurred in package(). Aborting... Error making: kubernetes-bin

ocelot commented on 2019-04-15 02:59

Broken with latest release.

install: cannot stat 'docs/man/man1/*': No such file or directory ==> ERROR: A failure occurred in package(). Aborting... Error making: kubernetes-bin

dschaefer79 commented on 2019-04-11 12:53

When I try to install kubernetes-bin I have this error version 1.4.0

==> Entering fakeroot environment... ==> Starting package()... install: cannot stat 'docs/man/man1/*': No such file or directory ==> ERROR: A failure occurred in package(). Aborting... Error making: kubernetes-bin

snqlby commented on 2019-04-11 07:23

==> Extracting sources... -> Extracting v1.14.0.tar.gz with bsdtar -> Extracting 0.7.0.tar.gz with bsdtar -> Extracting kubernetes-bin-1.14.0.tar.gz with bsdtar ==> Removing existing $pkgdir/ directory... ==> Entering fakeroot environment... ==> Starting package()... install: cannot stat 'docs/man/man1/*': No such file or directory ==> ERROR: A failure occurred in package(). Aborting... :: Unable to build kubernetes-bin - makepkg exited with code: 4 :: kubernetes-bin has NOT been upgraded!

I can't build this.

mbazs commented on 2019-04-10 20:58

Second: antoinemartin commented on 2019-04-09 23:52

install: cannot stat 'docs/man/man1/*': No such file or directory

antoinemartin commented on 2019-04-09 21:52

Hello,

The package doesn't build anymore because the binary tarball doesn't contain the man pages anymore.

It builds again by applying the following patch:

diff --git a/PKGBUILD b/PKGBUILD index 45045c8..9cc3b69 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -58,10 +58,6 @@ package() { install -Dm755 $srcdir/kubernetes/server/bin/$bin $pkgdir/usr/bin/$bin done

  • <h1>install manpages</h1>
  • install -d $pkgdir/usr/share/man/man1/
  • <h2>install -pm 644 docs/man/man1/* $pkgdir/usr/share/man/man1</h2>

    # install the place the kubelet defaults to put volumes install -d $pkgdir/var/lib/kubelet

icebal commented on 2019-02-07 00:43

updated to 1.13.3

icebal commented on 2019-01-12 23:29

missed that one, fixed and updated to 1.13.2 as well!

dschaefer79 commented on 2019-01-10 12:31

the sha512sums=('7b6a81c9f1b852b1e889c1b62281569a4b8853c79e5675b0910d941dfa7863c97f244f6d607aae3faf60bccd596dedb9d136b7fffeae199876e780904fd9f31e'

is wrong, I've modified it with this one

de3858357b2b4444bccc0599c7d0edd3e6ec1a80267ef96883ebcfb06c518ce467dd8720b48084644677a42b8e3ffad9a7d4745b40170ce9dfe5b43310979be1

and makepkg -Acs and it's working