Package Details: kubeadm 1.15.3-1

Git Clone URL: https://aur.archlinux.org/kubernetes.git (read-only)
Package Base: kubernetes
Description: Kubernetes Cluster Bootstrapping Tool
Upstream URL: http://kubernetes.io/
Licenses: Apache
Submitter: irtimmer
Maintainer: irtimmer
Last Packager: irtimmer
Votes: 48
Popularity: 1.817644
First Submitted: 2015-05-29 17:48
Last Updated: 2019-08-21 20:15

Pinned Comments

irtimmer commented on 2019-08-21 20:20

NOTICE: Since version 1.15.3 this package(s) only provides the required bits to setup a cluster using kubeadm (similiar to the debs/rpms provided by the upstream project) as documentation about setting up a cluster from scratch has removed and provided systemd services were out-of-date. Also there is now only 4GB of ram required to build the package.

Latest Comments

1 2 3 4 5 6 ... Next › Last »

newsboost commented on 2019-09-21 11:10

Thanks ayekat for the help/explanation! I'm slowly learning kubernetes in my sparetime incl the difference between kubectl, kubeadm and kubelet (work in progress), I might try with go 1.12 later, when I have more time than now...

ayekat commented on 2019-09-20 21:22

@newsboost: Kubernetes currently does not build with Go 1.13. Try buiding with Go 1.12 for the time being.

Also, some component of Go has the very annoying habit of creating directory structures read-only if it fails halfway through. One workaround is to recursively add back write permissions with chmod -R u+w … before trying to delete them.

--edit: Also, kubectl is not the same as kubeadm and kubelet. There's a reason this one here exists (and you attempted to build it, I assume?)

newsboost commented on 2019-09-19 01:29

Not sure if I misunderstood anything, but I cannot install - see errors/output: https://pastebin.com/jqZbtQYa (I get errors during install, e.g. "go/build: importGo k8s.io/kubernetes: exit status 1 can't load package: package k8s.io/kubernetes: cannot find module providing package k8s.io/kubernetes", "can't load package: package k8s.io/kubernetes/vendor/k8s.io/code-generator/cmd/deepcopy-gen: no matching versions for query "latest"", "!!! [0919 03:19:53] 1: hack/make-rules/build.sh:27 kube::golang::build_binaries(...) make[1]: [Makefile.generated_files:200: _output/bin/deepcopy-gen] Error 1", "can't load package: package k8s.io/kubernetes/vendor/k8s.io/code-generator/cmd/defaulter-gen: no matching versions for query "latest"", "make: [Makefile:557: generated_files] Error 2" and it ends with ""==> ERROR: A failure occurred in build(). Aborting... Error making: kubernetes (kubelet)") - if I try again, I get:

190812203447-cdfb69ac37fc/http/httpproxy/go19_test.go': Permission denied
rm: cannot remove '/home/martin/.cache/yay/kubernetes/src/_output/local/go/pkg/mod/golang.org/x/net@v0.0.0-20190812203447-cdfb69ac37fc/http/httpproxy/export_test.go': Permission denied
rm: cannot remove '/home/martin/.cache/yay/kubernetes/src/_output/local/go/pkg/mod/golang.org/x/net@v0.0.0-20190812203447-cdfb69ac37fc/.gitignore': Permission denied
rm: cannot remove '/home/martin/.cache/yay/kubernetes/src/_output/local/go/pkg/mod/golang.org/x/net@v0.0.0-20190812203447-cdfb69ac37fc/netutil/listen.go': Permission denied
rm: cannot remove '/home/martin/.cache/yay/kubernetes/src/_output/local/go/pkg/mod/golang.org/x/net@v0.0.0-20190812203447-cdfb69ac37fc/netutil/listen_test.go': Permission denied
rm: cannot remove '/home/martin/.cache/yay/kubernetes/src/_output/local/go/pkg/mod/golang.org/x/net@v0.0.0-20190812203447-cdfb69ac37fc/CONTRIBUTORS': Permission denied

==> ERROR: An unknown error has occurred. Exiting...
Error making: kubernetes (kubelet)

I'll try "pacman -S cubectl" instead...

irtimmer commented on 2019-08-21 20:20

NOTICE: Since version 1.15.3 this package(s) only provides the required bits to setup a cluster using kubeadm (similiar to the debs/rpms provided by the upstream project) as documentation about setting up a cluster from scratch has removed and provided systemd services were out-of-date. Also there is now only 4GB of ram required to build the package.

annguyenfoss commented on 2019-08-12 10:11

Anyone knows why this package is orphaned now? I can adopt and update it, but I need to know the root cause. Thanks

@irtimmer: Can you please help me out?

zrhoffman commented on 2019-06-23 23:26

The kubernetes AUR package conflicts with community/kubectl.

NonerKao commented on 2019-01-11 09:26

I have done a patch to trim this package at: https://github.com/NonerKao/aur-kubernetes

With my patch, one can build the package without too much pain using the zram tricks easily, install, and then

# kubeadm init ... (according to your custom settings here)

DO NOT start kubelet service until kubeadm starts to complain about the health of :10248. This flow turns out to be perfect for me.

I am also considering expanding the wiki page. Details here: https://wiki.archlinux.org/index.php/Talk:Kubernetes

NonerKao commented on 2019-01-10 03:19

Thanks to @tunggad, the comment is extremely helpful. Verified 1.13.1.

tunggad commented on 2018-12-26 12:28

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 for setup a cluster by using kubeadm init, it's intented 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, by making following modifications to 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 by executing following commands:

$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

simisimis commented on 2018-11-28 12:38

found this tip somewhere on internet that made installing kubernetes possible on my laptop. When building it, command free showed swap usage peaking at 10G+

# modprobe zram

# echo lz4 > /sys/block/zram0/comp_algorithm

# echo 16G > /sys/block/zram0/disksize

# mkswap --label zram0 /dev/zram0

# swapon --priority 100 /dev/zram0